Skip to main content

Windows Dev Center

SLSetAuthenticationData function

Sets authentication data.

Syntax


HRESULT WINAPI SLSetAuthenticationData(
  _In_           HSLC hSLC,
  _In_opt_       UINT cbValue,
  _In_opt_ const BYTE pbValue
);

Parameters

hSLC [in]

Type: HSLC

The handle to the current SLC context.

cbValue [in, optional]

Type: UINT

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

pbValue [in, optional]

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/valueDescription
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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Slpublic.h

Library

Slc.lib

DLL

Slc.dll