mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-24 11:25:30 +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;
|
|
}
|