Create lock_workstation.c

This commit is contained in:
janbodnar 2016-01-31 13:53:14 +01:00
parent d07744be62
commit 220f68b976

17
system/lock_workstation.c Normal file
View File

@ -0,0 +1,17 @@
#include <windows.h>
#include <wchar.h>
#pragma comment(lib, "user32.lib")
int wmain(void) {
int r = LockWorkStation();
if( r == 0 ) {
wprintf(L"LockWorkStation() failed %d\n", GetLastError());
return 1;
}
return 0;
}