// Use this instead: #define _WIN32_WINNT 0x0500 #include int CALLBACK WinMain(HINSTANCE a, HINSTANCE s, LPSTR d, int f) { LockWorkStation(); return 0; }