3.2.4.7 GetNumberOfAntispywareProducts Abstract Interface

This abstract interface is called to initialize the AntispywareStatus ADM element described in section 3.2.1 and the NumberOfAntispywareProducts ADM element described in section 3.2.1.

 DWORD GetNumberOfAntispywareProducts(
     [out] DWORD *pNumberOfAntispywareProducts);

pNumberOfAntispywareProducts: A pointer to a DWORD variable that receives the number of antispyware products in the system.

Return Values

Value

Description

S_OK (0x00000000)

The number of installed antispyware products was successfully set in the pNumberOfAntispywareProducts parameter.

E_MSSHAV_PRODUCT_NOT_INSTALLED (0xC0FF0002)

No antispyware products are installed. No value was set in the pNumberOfAntispywareProducts parameter.

E_MSSHAV_WSC_SERVICE_DOWN (0xC0FF0003)

The WSC service is not available to report status. No value was set in the pNumberOfAntispywareProducts parameter.

E_MSSHAV_WSC_SERVICE_NOT_STARTED_SINCE_BOOT (0xC0FF0018)

The WSC service on the client has not started since the computer started. No value was set in the pNumberOfAntispywareProducts parameter.