INapComponentInfo::ConvertErrorCodeToMessageId method

Note

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

The INapComponentInfo::ConvertErrorCodeToMessageId callback method is used by the NAP System to request the health client convert an HRESULT error code into a message ID.

Syntax

HRESULT ConvertErrorCodeToMessageId(
  [in]  HRESULT   errorCode,
  [out] MessageId *msgId
);

Parameters

errorCode [in]

The error code from the NAP System that is to be converted into a MessageId.

msgId [out]

A pointer to a MessageId that contains the resource ID of the corresponding localized string.

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

The returned MessageId is used by the NAP System to retrieve a localized string.

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