禁用控制键和Windows键 [英] Disable Control keys and windows key

查看:101
本文介绍了禁用控制键和Windows键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我已经开发了一个信息亭应用程序.

如何禁用开始菜单,Windows任务
经理,通过VB.Net的Ctl + Alt + Del按钮,

如果有人知道,请告诉我...任何建议都会很大
感谢.

谢谢,
Sanju.

Dear Friends,

i have developed a kiosk application.

How to disable the start menu ,windows task
manager,Ctl+Alt+Del buttons through VB.Net?,

If any one knows please let me know...Any suggestions would be greatly
appreciated.

Thanks,
Sanju.

推荐答案

尝试一下:
Try it:
Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Timer1.Start()
    End Sub
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    For Each selProcess As Process In Process.GetProcesses
    If selProcess.ProcessName = "taskmgr" Then
    selProcess.Kill()
    Exit For
    End If
    Next
    End Sub
 End Class


或者例如,您可以将注册表项设置为以下值:
HKCU \软件\ Microsoft \ Windows \ CurrentVersion \ Policies \ System \ DisableTaskMgr,即


or for example you can set the registry key to this value:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr, i.e.

systemRegistry.SetValue("DisableTaskMgr", 1)


或者例如,您可以编写:


or for example you can write :

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim systemRegistry As RegistryKey = _
Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System")
systemRegistry.SetValue("DisableTaskMgr", 1)
systemRegistry.Close()
End Sub
End Class


这一切都取决于您正在使用的windfows版本,在XP中,您可以修改/创建一个新的GINA.DLL,该文件可以处理Ctrl + Alt + Del或开始修改策略.

Ctrl + alt + Del是键的子集,必须以不同于普通键集的方式捕获.

搜索示例,但不要指望能够从您的程序中执行.

在Google中搜索此 ctrl + alt + del阻止窗口.

祝你好运.
It all depends on the windfows version you are working with, in XP you could modify / create a new GINA.DLL which is the one that handles Ctrl+Alt+Del, or start modifying policies.

Ctrl+alt+Del is a subset of keys that has to be captured in a different way than a normal key set.

Search for samples, but don''t expect to be able to do it from your program.

Search for this ctrl+alt+del blocking windows in google.

Good luck.


我从这个站点获得了解决方案

http://www.inchwest.com/mapkeyboard.htm [
I got the solution from thi s site

http://www.inchwest.com/mapkeyboard.htm[^]

its a utility with the help of it we can map our keys


Thank you all


这篇关于禁用控制键和Windows键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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