코드/c/c++ 윈도우 화면 잠금 Window + L WeZZ 2013. 6. 25. 11:22 #include <windows.h> #define IsWin2000Plus() ((DWORD)(LOBYTE(LOWORD(GetVersion()))) >= 5) int (__stdcall * MyLockWorkStation)(); int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HINSTANCE hinstLib; if (IsWin2000Plus()) { hinstLib = LoadLibrary("USER32.DLL"); if (hinstLib) { MyLockWorkStation = (int (__stdcall *)()) GetProcAddress(hinstLib, "LockWorkStation"); if (MyLockWorkStation != NULL) (MyLockWorkStation) (); } FreeLibrary(hinstLib); } else MessageBox(NULL, "This application requires" " Windows 2000 Professional or higher!", "Lock Workstation", MB_OK); return 0; } http://www.codeproject.com/Articles/10600/Lock-workstation 저작자표시 비영리