SLSetAuthenticationData function (slpublic.h)

Sets authentication data.

Syntax

HRESULT SLSetAuthenticationData(
  [in]           HSLC       hSLC,
  [in, optional] UINT       cbValue,
  [in, optional] const BYTE *pbValue
);

Parameters

[in] hSLC

Type: HSLC

The handle to the current SLC context.

[in, optional] cbValue

Type: UINT

The size, in bytes, of the authentication data in pbValue.

[in, optional] pbValue

Type: const BYTE

A pointer to the authentication data.

Return value

Type: HRESULT WINAPI

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

Return code/value Description
ERROR_INVALID_DATA
0x8007000D
The format of authentication data is not valid.
SL_E_AUTHN_WRONG_VERSION
0xC004F077
The security version is wrong.
SL_E_NOT_SUPPORTED
0xC004F016
The authentication data format is not supported.

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