怎么实现 CTRL+ALT+del中的"锁定计算机"功能? 
就是保持当前操作.但要求输入用户登陆口令的那个.
谢谢

解决方案 »

  1.   

    98下调用屏保加个密码就可以了.
    2000下,是不是有API呢?我不清楚啊.
      

  2.   

    http://www.csdn.net/develop/article/15/15645.shtm
    去看看
      

  3.   

    我写过屏幕保护的小函数
    在win2k下能满足的要求
    98下不可以。
      

  4.   

    PostMessage( HWND_BROADCAST, WM_SYSCOMMAND, SC_SCREENSAVE, 0);
      

  5.   

    捕捉VK_CONTROL
    VK_MENU
    VK_DELETE
      

  6.   

    能过调用函数exitwindowsex或者exitwindows,都能实现锁住计算机的功能,
    具体我也不会帮你顶一下
      

  7.   

    LockWorkStation
    [This is preliminary documentation and subject to change.] The LockWorkStation function locks the workstation's display, protecting it from unauthorized use. BOOL LockWorkStation(VOID);Parameters
    This function has no parameters.Return Values
    If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, callGetLastError. Res
    This function has the same result as pressing Ctrl+Alt+Del and clicking Lock Workstation. To unlock the workstation, the user must log in. Common reasons for failure include no user is logged on, the workstation is already locked, the process is not running on the interactive desktop, or the request is denied by the Graphical Identification and Authentication (GINA) DLL. QuickInfo
      Windows NT: Requires version 5.0 or later.
      Windows: Unsupported.
      Windows CE: Unsupported.
      Header: Declared in winuser.h.
      Import Library: Use user32.lib