mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-13 23:35:31 +00:00
18 lines
258 B
C
18 lines
258 B
C
#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;
|
|
}
|