Commit 3bacfc30 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

wtsapi32/tests: Add WTSQueryUserToken parameter test.

parent d9497e75
...@@ -105,8 +105,20 @@ static void test_WTSQuerySessionInformationW(void) ...@@ -105,8 +105,20 @@ static void test_WTSQuerySessionInformationW(void)
WTSFreeMemory(buf); WTSFreeMemory(buf);
} }
static void test_WTSQueryUserToken(void)
{
BOOL ret;
SetLastError(0xdeadbeef);
ret = WTSQueryUserToken(WTS_CURRENT_SESSION, NULL);
ok(!ret, "expected WTSQueryUserToken to fail\n");
todo_wine
ok(GetLastError()==ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got: %d\n", GetLastError());
}
START_TEST (wtsapi) START_TEST (wtsapi)
{ {
test_WTSEnumerateProcessesW(); test_WTSEnumerateProcessesW();
test_WTSQuerySessionInformationW(); test_WTSQuerySessionInformationW();
test_WTSQueryUserToken();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment