Author: spetreolle
Date: Sun Mar 7 00:14:36 2010
New Revision: 45969
URL:
http://svn.reactos.org/svn/reactos?rev=45969&view=rev
Log:
Stubplement WTSQueryUserToken.
Patch by Olaf Siejka.
Modified:
trunk/reactos/dll/win32/wtsapi32/wtsapi32.c
trunk/reactos/dll/win32/wtsapi32/wtsapi32.spec
Modified: trunk/reactos/dll/win32/wtsapi32/wtsapi32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wtsapi32/wtsapi3…
==============================================================================
--- trunk/reactos/dll/win32/wtsapi32/wtsapi32.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wtsapi32/wtsapi32.c [iso-8859-1] Sun Mar 7 00:14:36 2010
@@ -488,6 +488,36 @@
}
/************************************************************
+ * WTSQueryUserToken (WTSAPI32.@)
+ *
+ * Obtains the primary access token of the logged-on user specified by the session ID.
+ *
+ * PARAMS
+ * SessionId [in] -- RDP session identifier
+ * phToken [out] -- pointer to the token handle for the logged-on user
+ *
+ *
+ * RETURNS
+ * - On success - pointer to the primary token of the user
+ * - On failure - zero
+ *
+ *
+ * NOTES
+ * - token handle should be closed after use with CloseHandle
+ * - on Failure, extended error information is available via GetLastError
+ *
+ */
+BOOL WINAPI WTSQueryUserToken(
+ ULONG SessionId,
+ PHANDLE phToken)
+{
+ *phToken = (HANDLE)0;
+ SetLastError(ERROR_NO_TOKEN);
+ FIXME("Stub %d\n", SessionId);
+ return FALSE;
+}
+
+/************************************************************
* WTSWaitSystemEvent (WTSAPI32.@)
*/
BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD Mask, DWORD* Flags)
Modified: trunk/reactos/dll/win32/wtsapi32/wtsapi32.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wtsapi32/wtsapi3…
==============================================================================
--- trunk/reactos/dll/win32/wtsapi32/wtsapi32.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wtsapi32/wtsapi32.spec [iso-8859-1] Sun Mar 7 00:14:36 2010
@@ -14,6 +14,7 @@
@ stdcall WTSQuerySessionInformationW(long long long ptr ptr)
@ stub WTSQueryUserConfigA
@ stub WTSQueryUserConfigW
+@ stdcall WTSQueryUserToken(long ptr)
@ stdcall WTSRegisterSessionNotification(long long)
@ stub WTSSendMessageA
@ stub WTSSendMessageW