Author: akhaldi
Date: Sat Oct 25 22:37:02 2014
New Revision: 65000
URL:
http://svn.reactos.org/svn/reactos?rev=65000&view=rev
Log:
[ADVAPI32]
* Update OpenThreadToken().
CORE-8540
Modified:
trunk/reactos/dll/win32/advapi32/wine/security.c
Modified: trunk/reactos/dll/win32/advapi32/wine/security.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/wine/se…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] Sat Oct 25 22:37:02
2014
@@ -364,28 +364,29 @@
return TRUE;
}
-/*
- * @implemented
+/******************************************************************************
+ * OpenThreadToken [ADVAPI32.@]
+ *
+ * Opens the access token associated with a thread handle.
+ *
+ * PARAMS
+ * ThreadHandle [I] Handle to process
+ * DesiredAccess [I] Desired access to the thread
+ * OpenAsSelf [I] ???
+ * TokenHandle [O] Destination for the token handle
+ *
+ * RETURNS
+ * Success: TRUE. TokenHandle contains the access token.
+ * Failure: FALSE.
+ *
+ * NOTES
+ * See NtOpenThreadToken.
*/
BOOL WINAPI
-OpenThreadToken(HANDLE ThreadHandle,
- DWORD DesiredAccess,
- BOOL OpenAsSelf,
- PHANDLE TokenHandle)
-{
- NTSTATUS Status;
-
- Status = NtOpenThreadToken(ThreadHandle,
- DesiredAccess,
- OpenAsSelf,
- TokenHandle);
- if (!NT_SUCCESS(Status))
- {
- SetLastError(RtlNtStatusToDosError(Status));
- return FALSE;
- }
-
- return TRUE;
+OpenThreadToken( HANDLE ThreadHandle, DWORD DesiredAccess,
+ BOOL OpenAsSelf, HANDLE *TokenHandle)
+{
+ return set_ntstatus( NtOpenThreadToken(ThreadHandle, DesiredAccess, OpenAsSelf,
TokenHandle));
}
/*