Export (0) Print
Expand All
Expand Minimize

OpenTokenByLogonId function

Opens the user access token associated with the specified user logon.

Syntax


NTSTATUS NTAPI OpenTokenByLogonId(
  _In_   PLUID LogonId,
  _Out_  HANDLE *RetTokenHandle
);

Parameters

LogonId [in]

A pointer to a LUID structure that identifies the user for which to open the access token.

RetTokenHandle [out]

A pointer to the handle to the token this function opens.

Return value

If the function succeeds, return STATUS_SUCCESS, or an informational status code.

If the function fails, return an NTSTATUS error code that indicates the reason it failed.

Remarks

A pointer to the OpenTokenByLogonId 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

SpInitialize

 

 

Community Additions

ADD
Show:
© 2014 Microsoft