3 #include <winpr/error.h>
4 #include <winpr/wtsapi.h>
6 int TestWtsApiExtraLogoffSession(
int argc,
char* argv[])
12 HANDLE hServer = WTS_CURRENT_SERVER_HANDLE;
13 BOOL bSuccess = WTSLogoffSession(hServer, WTS_CURRENT_SESSION, FALSE);
17 printf(
"WTSLogoffSession failed: %" PRIu32
"\n", GetLastError());