如何提供驱动程序和用户交互? [英] How to provide Driver and user interaction?

查看:145
本文介绍了如何提供驱动程序和用户交互?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我已经编写了一个驱动程序,我需要我的驱动程序在用户模式程序中调用函数(可以使用DEVICEIOCONTROL完成),然后我的驱动程序必须等待用户程序响应.我需要一个这样做的示例代码.

谢谢,

Hello,

I have written a driver and I need my driver to call a function in a user mode program(which can be done using DEVICEIOCONTROL), then my driver have to wait for the user program to respond. I need a sample code which does so.

Thanks

推荐答案

好吧,我对此了解不多,但是我想到了一个简单的解决方案.

从应用程序中,您可以将函数的指针传递给dll.在驱动程序调用之后,调用特定函数
Well, I don''t know much about this, but one simple solution is in mind.

from application you can pass the pointer of your function to dll. after that your driver call call the specific function


您也许应该阅读本文所属的系列文章:

驱动程序开发第2部分:实现IOCTL的简介 [ ^ ]
You should perhaps read the series of which this article is part:

Driver Development Part 2: Introduction to Implementing IOCTLs[^]


这篇关于如何提供驱动程序和用户交互?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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