SLGetAuthenticationResult function (slpublic.h)

Gets the authentication results.

Syntax

HRESULT SLGetAuthenticationResult(
  [in]  HSLC  hSLC,
  [out] UINT  *pcbValue,
  [out] PBYTE *ppbValue
);

Parameters

[in] hSLC

Type: HSLC

The handle to the current SLC context.

[out] pcbValue

Type: UINT*

A pointer to the size, in bytes, of the authentication result.

[out] ppbValue

Type: PBYTE*

A pointer to the authentication result. When finished using the memory, free it by calling the LocalFree function.

Return value

Type: HRESULT WINAPI

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

Return code/value Description
SL_E_AUTHN_MISMATCHED_KEY
0xC004F078
The key used in the SLSetAuthenticationData function call is incorrect.
SL_E_AUTHN_CANT_VERIFY
0xC004F07A
The authentication cannot be completed.
SL_E_AUTHN_CHALLENGE_NOT_SET
0xC004F079
The authentication data (challenge) is not set.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header slpublic.h
Library Slc.lib
DLL Slc.dll