Expand Minimize
This topic has not yet been rated - Rate this topic

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

 

 

Send comments about this topic to Microsoft

Build date: 1/2/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.