INapCertRelyingParty::UnSubscribeCertByGroup method

Note

The Network Access Protection platform is not available starting with Windows 10

The UnSubscribeCertByGroup method unsubscribes from a health certificate server (HCS).

Syntax

HRESULT UnSubscribeCertByGroup(
  [in]        EnforcementEntityId   id,
  [in] const  VARIANT             * reserved
);

Parameters

id [in]

An EnforcementEntityId that contains the ID of the enforcement client that is unsubscribing.

reserved [in]

Must be NULL.

Return value

Returns one of the following error codes based on the result of this operation.

Return code Description
S_OK
The operation is successful.
E_ACCESSDENIED
Permissions error, access denied.
E_OUTOFMEMORY
System resource limit, could not perform the operation.

Remarks

If there are no other subscribers to the HCS, the NapAgent will delete the corresponding health certificates from the local machine store.

Before calling this method, call SubscribeCertByGroup.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
NapCertRelyingParty.h
IDL
NapCertRelyingParty.idl

See also

INapCertRelyingParty