Uwaga
Dostęp do tej strony wymaga autoryzacji. Może spróbować zalogować się lub zmienić katalogi.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
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 |
---|---|
|
Operation successful. |
|
Permissions error, access denied. |
|
System resource limit, could not perform the operation. |
|
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 |
|
IDL |
|
DLL |
|