You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
258 B
18 lines
258 B
9 years ago
|
#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;
|
||
|
}
|