INapComponentInfo::GetIcon method

Note

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

The INapComponentInfo::GetIcon callback method is used by the NAP System to get the icon of a health client.

Syntax

HRESULT GetIcon(
  [out] CountedString **dllFilePath,
  [out] UINT32        *iconResourceId
);

Parameters

dllFilePath [out]

A pointer to a pointer to a CountedString used to return the file path of the DLL that contains the icon.

iconResourceId [out]

A pointer to value used to return the resource ID of the icon to be used.

Return value

Return one of these 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

Icons should be localized according to the calling thread's language-id.

Requirements

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

See also

INapComponentInfo