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