有没有禁用注销,锁定和任务管理器中按CTRL + ALT + DEL在C#中的方法 [英] Is there any method to disable logoff,lock and taskmanager in ctrl+alt+del in C#

查看:237
本文介绍了有没有禁用注销,锁定和任务管理器中按CTRL + ALT + DEL在C#中的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行我的窗口的应用程序。如果用户按下CTRL + ALT + DEL,我需要有禁用这些buttons..is任何方法

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

推荐答案

您不能禁用。他们,但也许你想禁用任务管理器,或锁定

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

您也可以考虑

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

这篇关于有没有禁用注销,锁定和任务管理器中按CTRL + ALT + DEL在C#中的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆