INapSystemHealthAgentBinding::Uninitialize method

Note

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

The INapSystemHealthAgentBinding::Uninitialize method causes the NapAgent to release all its references to system health agent COM pointers.

Syntax

HRESULT Uninitialize();

Parameters

This method has no parameters.

Return value

Other COM-specific error codes also may be returned.

Return code Description
S_OK
Operation succeeded.
E_ACCESSDENIED
Permissions error, access denied.
E_OUTOFMEMORY
System resource limit, could not perform the operation.
NAP_E_NOT_INITIALIZED
The SHA has not been previously initialized.
RPC_E_DISCONNECTED
The NapAgent has been stopped. This object will recover automatically and rebind to the NapAgent, once it restarts.

Remarks

The NapAgent blocks execution of this method call until all existing calls on the Binding and Callback interfaces complete.

The SHA must call Initialize before calling this method or any other method of the INapSystemHealthAgentBinding2 interface.

Requirements

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

See also

INapSystemHealthAgentBinding