Debian Codegraph @

winpr/libwinpr/wtsapi/test/TestWtsApiExtraLogoffSession.c

raw
1
2 #include <winpr/crt.h>
3 #include <winpr/error.h>
4 #include <winpr/wtsapi.h>
5
6 int TestWtsApiExtraLogoffSession(int argc, char* argv[])
7 {
8
9 WINPR_UNUSED(argc);
10 WINPR_UNUSED(argv);
11
12 HANDLE hServer = WTS_CURRENT_SERVER_HANDLE;
13 BOOL bSuccess = WTSLogoffSession(hServer, WTS_CURRENT_SESSION, FALSE);
14
15 if (!bSuccess)
16 {
17 printf("WTSLogoffSession failed: %" PRIu32 "\n", GetLastError());
18 return -1;
19 }
20
21 return 0;
22 }