编写模拟设备驱动程序需要哪些资源?
简而言之,我想为Windows编写自己的设备驱动程序,以便我可以模拟一个硬件。我对为 Windows 编写设备驱动程序知之甚少,但我对 C 和 C++ 语言有非常深入的了解,并且我了解足够的 x86(_64) 程序集。
我不太确定如何编译设备驱动程序,或者创建一个设备驱动程序需要什么。如果需要的话,我当然不反对在汇编中对整个事情进行编码,但是是吗?
显然,我想使用 Windows 工具来完成此操作,我计划尝试使用 Windows GCC 编译器将其组合在一起,但如果需要,我可以访问 Visual Studio。有人可以向我指出有用的资源,例如参考手册、教程、规格吗?
哦:我这里的目标操作系统是Windows 7,64位,如果我理解应该与Windows Vista 64位相同,但如果存在的话请纠正我的错误。
谢谢。
In a nutshell, I want to write my own device driver for windows, so that I can emulate a piece of hardware. I know very little about writing device drivers for windows, but I have a very firm understanding of the C and C++ languages, and I know enough x86(_64) assembly to get around.
I'm not really sure how one would go about even compiling a device driver, or what is required to create one. I'm certainly not against coding the entire thing in assembly if that needs to be done, but does it?
I'd like to do this using Windows tools obviously, I'm planning on trying to put it together using a windows GCC compiler, but I've got access to Visual Studio if that's needed. Can someone point me at resources that would be helpful, like reference manuals, tutorials, specs?
Oh: My target OS here is Windows 7, 64bit, which if I understand should be the same as Windows Vista 64bit, but correct my wrongness if it exists.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
构建驱动程序(包括编译器)所需的一切都来自WDK 。你需要知道要写什么的一切都来自沃尔特·奥尼的书。为艰难的旅程做好准备。
Everything you need to build your driver (including the compiler) comes from the WDK. Everything you need to know what to write comes from Walter Oney's books. Be prepared for a rough ride.