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. |
|
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 |
|
|
|
|
|
|
Creates tokens while processing calls to SpAcceptLsaModeContext.
A pointer to a logon session identifier for the new token. This identifier is obtained from a previous call to CreateLogonSession.
A pointer to a TOKEN_SOURCE structure that specifies the source for this token. Specify the package name.
A SECURITY_LOGON_TYPE value that indicates the type of logon.
A SECURITY_IMPERSONATION_LEVEL value that indicates the extent to which a server process can impersonate a client process.
Specifies the type of structure in the TokenInformation parameter.
Value | Meaning |
---|---|
|
|
|
A pointer to the token information. The type of structure pointed to by TokenInformation is indicated by the TokenInformationType parameter.
A pointer to a TOKEN_GROUPS structure that specifies groups not contained in TokenInformation.
A pointer to a UNICODE_STRING structure that contains the name of the client's workstation, normally a NetBIOS name.
A pointer to a UNICODE_STRING structure that contains the path to the user's profile, if any.
Data that specifies information about the current logon session. The format of this data is specified by the value of the SessionInformationType parameter.
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.
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.
A pointer to a variable that receives error information.
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.
A pointer to the CreateTokenEx function is available in the LSA_SECPKG_FUNCTION_TABLE structure received by the SpInitialize function.