Stubplement WTSQueryUserToken.
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 6 Mar 2010 23:14:36 +0000 (23:14 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 6 Mar 2010 23:14:36 +0000 (23:14 +0000)
Patch by Olaf Siejka.

svn path=/trunk/; revision=45969

reactos/dll/win32/wtsapi32/wtsapi32.c
reactos/dll/win32/wtsapi32/wtsapi32.spec

index fc40494..880f3c9 100644 (file)
@@ -487,6 +487,36 @@ BOOL WINAPI WTSQuerySessionInformationW(
     return FALSE;
 }
 
+/************************************************************
+ *                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.@)
  */
index 059b6da..2be9df0 100644 (file)
@@ -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