mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
* fix uninitialized variable warnings * modivy ndr_context_* functions to utilize WINPR_ATTR_MALLOC * build_krbtgt use winpr_asprintf * add proper Stream_Write_UINT64_BE
23 lines
414 B
C
23 lines
414 B
C
|
|
#include <winpr/crt.h>
|
|
#include <winpr/error.h>
|
|
#include <winpr/wtsapi.h>
|
|
|
|
int TestWtsApiExtraLogoffSession(int argc, char* argv[])
|
|
{
|
|
|
|
WINPR_UNUSED(argc);
|
|
WINPR_UNUSED(argv);
|
|
|
|
HANDLE hServer = WTS_CURRENT_SERVER_HANDLE;
|
|
BOOL bSuccess = WTSLogoffSession(hServer, WTS_CURRENT_SESSION, FALSE);
|
|
|
|
if (!bSuccess)
|
|
{
|
|
printf("WTSLogoffSession failed: %" PRIu32 "\n", GetLastError());
|
|
return -1;
|
|
}
|
|
|
|
return 0;
|
|
}
|