INapSystemHealthAgentBinding::FlushCache method

Note

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

The INapSystemHealthAgentBinding::FlushCache method is called by an SHA to flush its SoH cache.

Syntax

HRESULT FlushCache();

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.
RPC_E_DISCONNECTED
The NapAgent has been stopped. This object will recover automatically and rebind to the NapAgent, once it restarts.

Remarks

The NapAgent maintains a cache of recent SoHs provided by different SHAs. This cache is useful to optimize boot-time performance, when SHAs may or may not be bound to the system.

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