Undocumented functions of NTDLL

2OO1, 1 March


NtCreateToken
NtCreateToken

NTSYSAPI 
NTSTATUS
NTAPI

NtCreateToken(
OUT PHANDLE TokenHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, IN TOKEN_TYPE TokenType, IN PLUID AuthenticationId, IN PLARGE_INTEGER ExpirationTime, IN PTOKEN_USER TokenUser, IN PTOKEN_GROUPS TokenGroups, IN PTOKEN_PRIVILEGES TokenPrivileges, IN PTOKEN_OWNER TokenOwner, IN PTOKEN_PRIMARY_GROUP TokenPrimaryGroup, IN PTOKEN_DEFAULT_DACL TokenDefaultDacl, IN PTOKEN_SOURCE TokenSource );



Function NtCreateToken creates Token Object.



Requirements:
Library: ntdll.lib
Privilege: SE_CREATE_TOKEN_PRIVILEGE


See also:
NtAllocateLocallyUniqueId
NtDuplicateToken
NtOpenProcessToken
NtOpenThreadToken
NtQueryInformationToken
NtSetInformationToken