FreeRDP/winpr/libwinpr/wtsapi/test/TestWtsApiExtraLogoffSession.c

23 lines
393 B
C
Raw Normal View History

#include <winpr/crt.h>
#include <winpr/error.h>
#include <winpr/wtsapi.h>
int TestWtsApiExtraLogoffSession(int argc, char* argv[])
{
BOOL bSuccess;
HANDLE hServer;
hServer = WTS_CURRENT_SERVER_HANDLE;
bSuccess = WTSLogoffSession(hServer, WTS_CURRENT_SESSION, FALSE);
if (!bSuccess)
{
2019-11-06 17:24:51 +03:00
printf("WTSLogoffSession failed: %" PRIu32 "\n", GetLastError());
return -1;
}
return 0;
}