如题。

解决方案 »

  1.   


      The LockWorkStation function locks the workstation's display, 
      protecting it from unauthorized use. 
      This function has the same result as pressing Ctrl+Alt+Del and 
      clicking Lock Workstation. 
      To unlock the workstation, the user must log in.   Windows NT/2000/XP: Included in Windows 2000 and later. 
      Windows 95/98/Me: Unsupported. 

    procedure TForm1.Button1Click(Sender: TObject); 
    begin 
      LockWorkStation; 
    end; 
      

  2.   

    找到 desktop 的 handle, 将其 disableWindow 就可
      

  3.   

    这些方法都不行,win键仍然可以使用。