怎样模拟键盘按Ctrl+Del+Alt锁定计算机?

解决方案 »

  1.   

    ::Quote MSDN::LockWorkStation
    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, call GetLastError. 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. nt/2000/xp only
      

  2.   

       试下这个API   LockWorkstation.