从Windows 7服务(会话0)读取HID设备时出现问题 [英] Problems reading HID device from Windows 7 service (Session 0)

查看:190
本文介绍了从Windows 7服务(会话0)读取HID设备时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7中从Session 0服务下的HID设备读取时遇到问题.在普通桌面用户下,我可以从设备上正常读取.但是,当我尝试在Session 0下使用Overlapped I/O读取它时,WaitForSingleObject()总是返回 WAIT_TIMEOUT,并且ReadFile()的缓冲区从不包含任何有效数据.在我看来,这似乎是一个Session 0隔离问题,但是我找不到有关如何解决此问题的任何信息.在会话0下从HID设备读取是否无法正常工作?

Hi, I have an problem reading from a HID device under a Session 0 service in Windows 7. Under a normal desktop user, I can read from the device fine. However, when I try to read from it using Overlapped I/O under Session 0, WaitForSingleObject() always returns WAIT_TIMEOUT, and the buffer to ReadFile() never contains any valid data. This seems like a Session 0 isolation problem to me, but I can't find anything about how to work around this. Is reading from HID devices non-functional under Session 0?

谢谢.

-詹姆斯

推荐答案

James

我将此线程移至Windows SDK论坛以获得更好的支持. Windows SDK论坛中有更多有关此主题的专家.

I'm moving this thread to Windows SDK Forum for better support. There are more experts in Windows SDK forum for this topic.

感谢您的理解.

此致

李凤丽


这篇关于从Windows 7服务(会话0)读取HID设备时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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