Is there any method to disable logoff,lock and taskmanager in ctrl+alt+del in C#

前端 未结 4 1367
逝去的感伤
逝去的感伤 2020-12-19 23:49

On running my window application. if the user press ctrl+alt+del i need to disable these buttons..is there any method

4条回答
  •  情深已故
    2020-12-20 00:48

    You can not disabled them, but maybe you like to disable the task manager, and or the lock down.

    Disable Lock Workstation button:
    Hive: HKEY_CURRENT_USER
    Key: Software\Microsoft\Windows\CurrentVersion\Policies\System 
    Name: DisableLockWorkstation 
    Type: REG_DWORD
    Value: 1 disable
    
    Disable Task Manager button: 
    Hive: HKEY_CURRENT_USER
    Key: Software\Microsoft\Windows\CurrentVersion\Policies\System 
    Name: DisableTaskMgr
    Type: REG_DWORD
    Value: 1 disable
    

    Also you can consider

    Disable Change Password button: 
    Hive: HKEY_CURRENT_USER
    Key: Software\Microsoft\Windows\CurrentVersion\Policies\System 
    Name: DisableChangePassword 
    Type: REG_DWORD
    Value: 1 disable
    
    Disable Logoff button: 
    Hive: HKEY_CURRENT_USER
    Key: Software\Microsoft\Windows\CurrentVersion\Policies\Explorer Note: change from System to Explorer
    Name: NoLogoff
    Type: REG_DWORD
    Value: 1 disable
    

提交回复
热议问题