Windows - 驱动程序和应用程序之间的通信通道。

发布于 2024-12-18 02:38:40 字数 75 浏览 3 评论 0原文

我正在开发一个应用程序。我的驱动程序有一些数据要发送到应用程序并接收响应。但我不知道该怎么做。 有人可以推荐给我吗? 非常感谢。 问候,

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随波逐流 2024-12-25 02:38:40

您可以轻松地向设备发送异步读取请求,并将它们保存在驱动程序的 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'.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文