Skip to content

Latest commit

 

History

History
166 lines (115 loc) · 5.56 KB

nc-ntsecpkg-lsa_create_token_ex.md

File metadata and controls

166 lines (115 loc) · 5.56 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NC:ntsecpkg.LSA_CREATE_TOKEN_EX
LSA_CREATE_TOKEN_EX (ntsecpkg.h)
Creates tokens while processing calls to SpAcceptLsaModeContext.
CreateTokenEx
CreateTokenEx callback function [Security]
LSA_CREATE_TOKEN_EX
LSA_CREATE_TOKEN_EX callback
LsaTokenInformationNull
LsaTokenInformationV1
ntsecpkg/CreateTokenEx
security.createtokenex
security\createtokenex.htm
security
1f12d8a4-6cbd-43e3-98a7-eaf3d30a053e
12/05/2018
CreateTokenEx, CreateTokenEx callback function [Security], LSA_CREATE_TOKEN_EX, LSA_CREATE_TOKEN_EX callback, LsaTokenInformationNull, LsaTokenInformationV1, ntsecpkg/CreateTokenEx, security.createtokenex
ntsecpkg.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
LSA_CREATE_TOKEN_EX
ntsecpkg/LSA_CREATE_TOKEN_EX
c++
APIRef
kbSyntax
UserDefined
Ntsecpkg.h
CreateTokenEx

LSA_CREATE_TOKEN_EX callback function

-description

Creates tokens while processing calls to SpAcceptLsaModeContext.

-parameters

-param LogonId [in]

A pointer to a logon session identifier for the new token. This identifier is obtained from a previous call to CreateLogonSession.

-param TokenSource [in]

A pointer to a TOKEN_SOURCE structure that specifies the source for this token. Specify the package name.

-param LogonType [in]

A SECURITY_LOGON_TYPE value that indicates the type of logon.

-param ImpersonationLevel [in]

A SECURITY_IMPERSONATION_LEVEL value that indicates the extent to which a server process can impersonate a client process.

-param TokenInformationType [in]

Specifies the type of structure in the TokenInformation parameter.

Value Meaning
LsaTokenInformationNull

LSA_TOKEN_INFORMATION_NULL

LsaTokenInformationV1

LSA_TOKEN_INFORMATION_V1

-param TokenInformation [in]

A pointer to the token information. The type of structure pointed to by TokenInformation is indicated by the TokenInformationType parameter.

-param TokenGroups [in]

A pointer to a TOKEN_GROUPS structure that specifies groups not contained in TokenInformation.

-param Workstation [in]

A pointer to a UNICODE_STRING structure that contains the name of the client's workstation, normally a NetBIOS name.

-param ProfilePath [in]

A pointer to a UNICODE_STRING structure that contains the path to the user's profile, if any.

-param SessionInformation [in]

Data that specifies information about the current logon session. The format of this data is specified by the value of the SessionInformationType parameter.

-param SessionInformationType [in]

A value of the SECPKG_SESSIONINFO_TYPE enumeration that specifies the format of the SessionInformation parameter. Currently, the only defined value is SecSessionPrimaryCred, which specifies that the value of the SessionInformation parameter is a SECPKG_PRIMARY_CRED structure.

-param Token [out]

A pointer that receives the address of a handle to the new token. When you have finished using the handle, close it by calling the CloseHandle function.

-param SubStatus [out]

A pointer to a variable that receives error information.

-returns

If the function succeeds, the return value is STATUS_SUCCESS.

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

-remarks

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

-see-also

SpInitialize