Undocumented functions of NTDLL

2OO1, 1 March


Gridstore - NonStop Storage

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.



  • TokenHandle
  •     Result of call - pointer to HANDLE to Token Object.
  • DesiredAccess
  •     Can be one or more of following:
  • ObjectAttributes
  •     Pointer to OBJECT_ATTRIBUTES structure.
  • TokenType
  •     (?), see TOKEN_TYPE enumeration type.
  • AuthenticationId
  •     (?), see NtAllocateLocallyUniqueId security function.
  • ExpirationTime
  •     (?), pointer to LARGE_INTEGER value contains time in 100-ns format.
  • TokenUser
  •     (?), see TOKEN_USER structure.
  • TokenGroups
  •     (?), see TOKEN_GROUPS structure.
  • TokenPrivileges
  •     (?), see TOKEN_PRIVILEGES structure.
  • TokenOwner
  •     (?), see TOKEN_OWNER structure.
  • TokenPrimaryGroup
  •     (?), see TOKEN_PRIMARY_GROUP structure.
  • TokenDefaultDacl
  •     (?), see TOKEN_DEFAULT_DACL structure.
  • TokenSource
  •     (?), see TOKEN_SOURCE structure.


    Documented by:
    Reactos



    Requirements:
    Library: ntdll.lib
    Privilege: SE_CREATE_TOKEN_PRIVILEGE


    See also:
    NtAllocateLocallyUniqueId
    NtDuplicateToken
    NtOpenProcessToken
    NtOpenThreadToken
    NtQueryInformationToken
    NtSetInformationToken