怎么锁Win2K/WinXP的屏幕? 哪里有例子?谢谢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不知道楼主要求怎么个锁定法?这是用 Ctrl + Alt + Del 锁定的方法:#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;} CBCGPDockingControlBar怎么让窗口重叠显示啊?! ShellExecute错误 谁能进来帮我看看!SetupDiEnumDeviceInterfaces函数出错~ IOCP断点调试 谁有intel的ijl库发给我一份吧? 如何用vc++写一个程序能够时时检测到计算机上有打印机接入了?? 我想编个socket5代理服务器 DDK编译问题 如何把硬盘的驱动器显示在Combobox框中最好是带系统图标 MFC中如何在对话框的指定文本框中添加属性页 两个基础的概念问题,看看谁会? 如何查找文件的路径。
这是用 Ctrl + Alt + Del 锁定的方法:#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;
}