mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Added prototype for create token.
svn path=/trunk/; revision=530
This commit is contained in:
parent
380ae8a262
commit
f53177b2b2
1 changed files with 62 additions and 2 deletions
|
@ -17,8 +17,13 @@
|
||||||
|
|
||||||
|
|
||||||
//#ifndef WIN32_LEAN_AND_MEAN
|
//#ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
#define PTOKEN_USER PVOID
|
||||||
#define PTOKEN_GROUPS PVOID
|
#define PTOKEN_GROUPS PVOID
|
||||||
|
#define PTOKEN_OWNER PVOID
|
||||||
#define PTOKEN_PRIVILEGES PVOID
|
#define PTOKEN_PRIVILEGES PVOID
|
||||||
|
#define PTOKEN_PRIMARY_GROUP PVOID
|
||||||
|
#define PTOKEN_DEFAULT_DACL PVOID
|
||||||
|
#define PTOKEN_SOURCE PVOID
|
||||||
#define TOKEN_INFORMATION_CLASS CINT
|
#define TOKEN_INFORMATION_CLASS CINT
|
||||||
#define LCID ULONG
|
#define LCID ULONG
|
||||||
#define SECURITY_INFORMATION ULONG
|
#define SECURITY_INFORMATION ULONG
|
||||||
|
@ -1076,6 +1081,63 @@ ZwCreateTimer(
|
||||||
IN CINT TimerType
|
IN CINT TimerType
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* FUNCTION: Creates a token.
|
||||||
|
* ARGUMENTS:
|
||||||
|
* TokenHandle (OUT) = Caller supplied storage for the resulting handle
|
||||||
|
* DesiredAccess = Specifies the allowed or desired access to the process can
|
||||||
|
* be a combinate of STANDARD_RIGHTS_REQUIRED| ..
|
||||||
|
* ObjectAttribute = Initialized attributes for the object, contains the rootdirectory and the filename
|
||||||
|
* TokenType =
|
||||||
|
* AuthenticationId =
|
||||||
|
* ExpirationTime =
|
||||||
|
* TokenUser =
|
||||||
|
* TokenGroups =
|
||||||
|
* TokenPrivileges =
|
||||||
|
* TokenOwner =
|
||||||
|
* TokenPrimaryGroup =
|
||||||
|
* TokenDefaultDacl =
|
||||||
|
* TokenSource =
|
||||||
|
* REMARKS:
|
||||||
|
* This function does not map to a win32 function
|
||||||
|
* RETURNS: Status
|
||||||
|
*/
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
STDCALL
|
||||||
|
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
|
||||||
|
);
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
STDCALL
|
||||||
|
ZwCreateToken(
|
||||||
|
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: Returns the callers thread TEB.
|
* FUNCTION: Returns the callers thread TEB.
|
||||||
|
@ -5074,8 +5136,6 @@ NTSTATUS STDCALL NtCreatePort(PHANDLE PortHandle,
|
||||||
ACCESS_MASK DesiredAccess,
|
ACCESS_MASK DesiredAccess,
|
||||||
POBJECT_ATTRIBUTES ObjectAttributes);
|
POBJECT_ATTRIBUTES ObjectAttributes);
|
||||||
|
|
||||||
NTSTATUS STDCALL NtCreateToken(VOID);
|
|
||||||
|
|
||||||
NTSTATUS STDCALL NtGetPlugPlayEvent(VOID);
|
NTSTATUS STDCALL NtGetPlugPlayEvent(VOID);
|
||||||
NTSTATUS STDCALL NtImpersonateClientOfPort(VOID);
|
NTSTATUS STDCALL NtImpersonateClientOfPort(VOID);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue