wtsapi32/tests: Add WTSQueryUserToken parameter test.

Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gijs Vermeulen 2019-01-06 04:17:54 +01:00 committed by Alexandre Julliard
parent d9497e7572
commit 3bacfc3005
1 changed files with 12 additions and 0 deletions

View File

@ -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();
} }