Export (0) Print
Expand All
Expand Minimize

GetUserAuthData function

The GetUserAuthData function returns the authorization data for the user in a single buffer.

Syntax


NTSTATUS GetUserAuthData(
  _In_   PVOID UserHandle,
  _Out_  PUCHAR *UserAuthData,
  _Out_  PULONG UserAuthDataSize
);

Parameters

UserHandle [in]

A handle to the user account. This handle is returned by the OpenSamUser function.

UserAuthData [out]

Pointer that receives the consolidated authorization data. When you have finished using the authorization data, free the memory by calling the FreeLsaHeap function.

UserAuthDataSize [out]

Pointer that receives the size of the authorization data.

Return value

If the function succeeds, the return value is STATUS_SUCCESS.

If the function fails, the return value is an NTSTATUS code indicating the reason it failed.

Remarks

The authorization data returned by the GetUserAuthData function can be passed to the ConvertAuthDataToToken function.

A pointer to the GetUserAuthData function is available in the LSA_SECPKG_FUNCTION_TABLE structure received by the SpInitialize function.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Ntsecpkg.h

See also

ConvertAuthDataToToken
LSA_SECPKG_FUNCTION_TABLE
OpenSamUser
SpInitialize

 

 

Community Additions

ADD
Show:
© 2014 Microsoft