svn path=/trunk/; revision=70951
WINE_DEFAULT_DEBUG_CHANNEL(wtsapi);
WINE_DEFAULT_DEBUG_CHANNEL(wtsapi);
+/* FIXME: Inspect */
+#define GetCurrentProcessToken() ((HANDLE)~(ULONG_PTR)3)
+
/************************************************************
* WTSCloseServer (WTSAPI32.@)
/************************************************************
* WTSCloseServer (WTSAPI32.@)
BOOL WINAPI WTSQueryUserToken(ULONG session_id, PHANDLE token)
{
FIXME("%u %p\n", session_id, token);
BOOL WINAPI WTSQueryUserToken(ULONG session_id, PHANDLE token)
{
FIXME("%u %p\n", session_id, token);
+
+ if (!token)
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+
+ return DuplicateHandle(GetCurrentProcess(), GetCurrentProcessToken(),
+ GetCurrentProcess(), token,
+ 0, FALSE, DUPLICATE_SAME_ACCESS);
}
/************************************************************
}
/************************************************************
reactos/dll/win32/wmiutils # Synced to WineStaging-1.7.55
reactos/dll/win32/wmvcore # Synced to WineStaging-1.7.55
reactos/dll/win32/wshom.ocx # Synced to WineStaging-1.7.55
reactos/dll/win32/wmiutils # Synced to WineStaging-1.7.55
reactos/dll/win32/wmvcore # Synced to WineStaging-1.7.55
reactos/dll/win32/wshom.ocx # Synced to WineStaging-1.7.55
-reactos/dll/win32/wtsapi32 # Synced to WineStaging-1.7.55
+reactos/dll/win32/wtsapi32 # Synced to WineStaging-1.9.4
reactos/dll/win32/wuapi # Synced to WineStaging-1.7.55
reactos/dll/win32/xinput1_1 # Synced to WineStaging-1.7.55
reactos/dll/win32/xinput1_2 # Synced to WineStaging-1.7.55
reactos/dll/win32/wuapi # Synced to WineStaging-1.7.55
reactos/dll/win32/xinput1_1 # Synced to WineStaging-1.7.55
reactos/dll/win32/xinput1_2 # Synced to WineStaging-1.7.55