move implementation of NtOpenProcessToken() to NtOpenProcessTokenEx()
Modified: trunk/reactos/ntoskrnl/ps/process.c
_____
Modified: trunk/reactos/ntoskrnl/ps/process.c
--- trunk/reactos/ntoskrnl/ps/process.c 2005-01-20 00:31:52 UTC (rev
13147)
+++ trunk/reactos/ntoskrnl/ps/process.c 2005-01-20 00:44:55 UTC (rev
13148)
@@ -133,6 +133,25 @@
IN ACCESS_MASK DesiredAccess,
OUT PHANDLE TokenHandle)
{
+ return NtOpenProcessTokenEx(ProcessHandle,
+ DesiredAccess,
+ 0,
+ TokenHandle);
+}
+
+
+/*
+ * @unimplemented
+ */
+NTSTATUS
+STDCALL
+NtOpenProcessTokenEx(
+ IN HANDLE ProcessHandle,
+ IN ACCESS_MASK DesiredAccess,
+ IN ULONG HandleAttributes,
+ OUT PHANDLE TokenHandle
+ )
+{
PACCESS_TOKEN Token;
HANDLE hToken;
NTSTATUS Status;
@@ -149,7 +168,7 @@
FALSE,
&hToken);
ObDereferenceObject(Token);
-
+
if(NT_SUCCESS(Status))
{
Status = MmCopyToCaller(TokenHandle, &hToken, sizeof(HANDLE));
@@ -159,23 +178,6 @@
/*
- * @unimplemented
- */
-NTSTATUS
-STDCALL
-NtOpenProcessTokenEx(
- IN HANDLE ProcessHandle,
- IN ACCESS_MASK DesiredAccess,
- IN ULONG HandleAttributes,
- OUT PHANDLE TokenHandle
- )
-{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
-
-/*
* @implemented
*/
PACCESS_TOKEN STDCALL