/* LockWorkstation Silly program. * xlock clone xDDDDD * DS @ !dSR */ #include int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. char buf[1024]; if(!LockWorkStation()) { wsprintf (buf, "LockWorkStation failed with %d\n", GetLastError()); MessageBox(0, buf, "Error", MB_OK); } return 0; }