HOWTO: Disable Task Switching on Win32 Platforms Q226359
HOWTO: Block CTRL+ALT+DEL and ALT+TAB in Windows 95 or Windows 98 Q161133
HOWTO: Block CTRL+ALT+DEL and ALT+TAB in Windows 95 or Windows 98 Q161133
调试欢乐多
{
if (bFALG)
{
SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, NULL,0);
EnableWindow(GetDesktopWindow(),FALSE);
}
else
{
SystemParametersInfo(SPI_SCREENSAVERRUNNING, 0, NULL,0);
EnableWindow(GetDesktopWindow(),TRUE);
}
}
SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,1,NULL,0);
塞NULL进去就会解锁。
The LockWindowUpdate function disables or enables drawing in the specified window. Only one window can be locked at a time. BOOL LockWindowUpdate(
HWND hWndLock // handle to window
);
from MSDN
LockWindowUpdateLockWindowUpdate
ALT+ESC,ALT+TAB等,而ctl+alt+del要用gina锁定,具体你可以搜索"锁定屏幕",以前有人问过,不过没有回答的很全面,我就是从很多问题中得到了解决方法的,整个过程还是比较复杂的.