HOWTO: Disable Task Switching on Win32 Platforms Q226359
HOWTO: Block CTRL+ALT+DEL and ALT+TAB in Windows 95 or Windows 98 Q161133

解决方案 »

  1.   

    void Lock(BOOL bFALG)
    {
        if (bFALG)
        {
             SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, NULL,0);
             EnableWindow(GetDesktopWindow(),FALSE);
        }
        else
       {
            SystemParametersInfo(SPI_SCREENSAVERRUNNING, 0, NULL,0);
            EnableWindow(GetDesktopWindow(),TRUE);
       }
    }
      

  2.   

    好像没什么用,我用的win2k.再想一想!
      

  3.   

    try to call functions exported by msgina.dll, maybe WlxDisplayLockedNotice can do it.
      

  4.   

    98下
    SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,1,NULL,0);
      

  5.   

    to  masterz() joy8223(复杂) 怎么用
      

  6.   

    LockWindowUpdate(GetDesktopWindow());
    塞NULL进去就会解锁。
      

  7.   

    LockWindowUpdate
    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
      

  8.   

    没有用,我试过!
    LockWindowUpdateLockWindowUpdate
      

  9.   

    基本上锁屏比较困难,尢其在2000下,98下简单,用SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,1,NULL,0);就行了,2000下要用低级键盘钩子锁住
    ALT+ESC,ALT+TAB等,而ctl+alt+del要用gina锁定,具体你可以搜索"锁定屏幕",以前有人问过,不过没有回答的很全面,我就是从很多问题中得到了解决方法的,整个过程还是比较复杂的.