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.
- TokenHandle Result of call - pointer to
HANDLE to Token Object.
- DesiredAccess Can be one or more of
following:
- TOKEN_ASSIGN_PRIMARY
- TOKEN_DUPLICATE
- TOKEN_IMPERSONATE
- TOKEN_QUERY
- TOKEN_QUERY_SOURCE
- TOKEN_ADJUST_PRIVILEGES
- TOKEN_ADJUST_GROUPS
- TOKEN_ADJUST_DEFAULT
- TOKEN_ADJUST_SESSIONID
- TOKEN_ALL_ACCESS
- ObjectAttributes Pointer to
OBJECT_ATTRIBUTES structure.
- ExpirationTime (?),
pointer to LARGE_INTEGER value contains time in
100-ns format.
- 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