Hello

I have been trying to register my application in the latest Windows
Action Center using the API provided by Microsoft.

Whenever I try to do so, the API fails and gives me the error code
80070307. I try google the error but couldn't find much help for it.

Please if anyone could let me know what the error is?

Below is the sample code I am using

BSTR bStrRemediationPath = SysAllocString(L"C:\\progra~1\
\abc.exe");
BSTR bStrDisplayName = SysAllocString(L"Abhishek");

hResult = pAvStatus->Register(bStrRemediationPath, bStrDisplayName,
false, false);