关于低级系统范围鼠标和键盘挂钩的一般问题,这些挂钩在xp中工作但在Windows 7中不工作(新细节) [英] General question about low level system wide mouse and keyboard hooks that work in xp but not in windows 7 (NEW DETAILS)

查看:75
本文介绍了关于低级系统范围鼠标和键盘挂钩的一般问题,这些挂钩在xp中工作但在Windows 7中不工作(新细节)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



旧内容

多年前,我提供了一些使用过的服务dll设置一个系统范围的钩子,以防止用户在我们的程序没有加载到内存时使用鼠标或键盘(一种自助服务终端模式*)。



我已经在Windows XP虚拟机中再次测试了这两项服务,它们运行良好。



我在Windows 7中测试了它们,但没有办法。



任何人都知道两个操作系统中系统挂钩的区别吗?



*关于kiosk模式和我的具体需求:

- 我需要自动登录电脑。 (已经由机器软件完成)。

- 登录后,一些服务启动,一个服务启动后,我的应用程序必须启动(已经由机器软件完成)。

- 我需要使用管理员用户。 (需要来自机器软件)。

- 除非在我的应用程序中设置了特定密码,否则我不希望允许用户访问操作系统。

- 除非在我的应用程序中输入特定密码,否则我不希望用户能够移动鼠标。



新内容

据我所知,如果我从一个普通的应用程序启动钩子它就像魅力一样,但是如果我从服务中启动钩子就会失败。这看起来服务不再在用户空间中运行了......我也尝试使用XYNTService来正常启动应用程序并获得相同的结果...



有什么建议吗?



一如既往地谢谢你!

Hello all,

OLD CONTENT
Years ago I made a couple of services which used a dll to set a system wide hook to prevent the user to use the mouse or keyboard while our program was not loaded into memory (a kind of kiosk mode*).

I've tested the two services again in a windows XP virtual machine and they work perfectly.

I've tested both of them in Windows 7 and no way.

Anyone know about differences between system wide hooking in both operating systems?

*About kiosk mode and my specific needs:
- I need to auto logon into the computer. (already done by the machine software).
- After logon some services start, and after one service is started my application must be started (which is already done by the machine software).
- I need to work using administrator user. (need from the machine software).
- I don't want the user to be allowed to access the operating system unless a specific password is set into my application.
- I don't want the user to be able to move the mouse unless a specific password is entered in my application.

NEW CONTENT
As far as I've seen, if I start the hook from a normal app it works like charm, but if I start the hook from the service it fails miserably. This looks like services are not running in the "user space" anymore... I've tried also to use XYNTService to start the application normally from a service and the same result...

Any advice?

As always thank you in advance!

推荐答案

也许帮助?

反正不是新的......: - (
Maybe this helps?
Not a good new anyway... :-(


这篇关于关于低级系统范围鼠标和键盘挂钩的一般问题,这些挂钩在xp中工作但在Windows 7中不工作(新细节)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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