当我的应用程序运行时如何阻止键盘 [英] How to Block Keybord when my application is running

查看:80
本文介绍了当我的应用程序运行时如何阻止键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为网吧创建一些软件,例如客户端/服务器.并且服务器可以查看客户端的运行情况并控制重启,关闭客户端

问题是如何使用VB.NET做到这一点

I want to create some software for internet cafe as like client/server. And server can look at the client doing and control to restart, shutdown the client

the problem is how do I do by using VB.NET to do it

推荐答案

要阻止键盘通常很复杂,您需要将应用程序作为服务运行并编写一个系统范围的键盘挂钩.或者,您可以使应用全屏显示,而只需删除Windows键之类的键即可从所使用的键盘上实际显示开始菜单.
To block the keyboard in general is complex, you need to run an application as a service and write a system wide keyboard hook. Or you can make your app full screen and just remove keys like the Windows key which might be used to show the start menu physically from the keyboards you use.


首先,您需要锁定您的系统使用组策略编辑器gpedit.msc.这将允许您限制非特权用户可以对您的系统执行的操作.您应该阅读系统策略.
为了远程重新启动系统,请使用以下命令(首先启动cmd窗口):shutdown -I.这将允许您选择一个系统并关闭它或重新启动它.
如果听起来很复杂,则可能需要看看Windows SteadyState [ ^ ],这对于网吧设置.
不幸的是,没有适用于Windows 7的版本

但是Vb.Net和键盘挂钩不适合控制您的计算机.
First, you want to lock down your systems using the group policy editor gpedit.msc. This will allow you to limit what non-privileged users can do to your systems. You should read up on system policies.
In order to restart your systems remotely, use the following command (start a cmd window first) : shutdown -I. This will allow you to select a system and shut it down or reboot it.
If this sounds complicated, you may want to have a look at Windows SteadyState[^], which is very helpful in an Internet Cafe setting.
Unfortunately, there is no version for Windows 7

But Vb.Net and keyboard hooks are not suitable to control your computers.


这篇关于当我的应用程序运行时如何阻止键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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