Windows - 驱动程序和应用程序之间的通信通道。
我正在开发一个应用程序。我的驱动程序有一些数据要发送到应用程序并接收响应。但我不知道该怎么做。 有人可以推荐给我吗? 非常感谢。 问候,
I'm developing an application.My driver has some data to send to application and receive response.But i don't know what's the way to do it.
Can anyone recommend to me?
Thanks so much.
regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以轻松地向设备发送异步读取请求,并将它们保存在驱动程序的 IRP 队列中。
这称为反向呼叫。
请参阅这篇关于该技术的文章。
当您向驱动程序发送请求时,您可以指定所使用的模式指针保持活动状态。这样,您就可以通过这个“共享内存”直接进行通信。
You can easily send asynchronous read requests to the device and hold them in the driver in a IRP queue.
This is called inverted call.
See this article on the technique.
When you send a request to the driver, you can specify, that the used mode pointer is kept alive. With this, you can directly communicate through this 'shared-memory'.