ICredentialProviderCredential::ReportResult method

Translates a received error status code into the appropriate user-readable message. The Credential UI does not call this method.

Syntax

HRESULT ReportResult(
  NTSTATUS                        ntsStatus,
  NTSTATUS                        ntsSubstatus,
  LPWSTR                          *ppszOptionalStatusText,
  CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon
);

Parameters

ntsStatus

Type: NTSTATUS

The NTSTATUS value that reflects the return value of the Winlogon call to LsaLogonUser.

ntsSubstatus

Type: NTSTATUS

The NTSTATUS value that reflects the value pointed to by the SubStatus parameter of LsaLogonUser when that function returns after being called by Winlogon.

ppszOptionalStatusText

Type: LPWSTR*

A pointer to the error message that will be displayed to the user. May be NULL.

pcpsiOptionalStatusIcon

Type: CREDENTIAL_PROVIDER_STATUS_ICON*

A pointer to an icon that will shown on the credential. May be NULL.

Return Value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method is required for Logon UI.

This method is used to report the outcome of a logon attempt back to a credential. The information in ntsStatus and ntsSubstatus can also be used when credential providers want to generate custom error messages. That status text from this call will be displayed on the selected credential.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header credentialprovider.h