INapClientManagement::GetNapClientInfo method

Note

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

The GetNapClientInfo method retrieves information about the NAP client.

Syntax

HRESULT GetNapClientInfo(
  [out] BOOL          *isNapEnabled,
  [out] CountedString **clientName,
  [out] CountedString **clientDescription,
  [out] CountedString **protocolVersion
) const;

Parameters

isNapEnabled [out]

A pointer to a BOOL that is set to TRUE if NAP is enabled; otherwise it is set to FALSE.

clientName [out]

A pointer to a pointer to a CountedString structure that contains the client name.

clientDescription [out]

A pointer to a pointer to a CountedString structure that contains the client description.

protocolVersion [out]

A pointer to a pointer to a CountedString structure that contains the protocol version.

Return value

The method returns an HRESULT status code including but not limited to one of the following.

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

Requirements

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

See also

INapClientManagement