DDK“你好世界”
如何开始为 Windows 编写驱动程序?是否有某种官方 DDK“Hello World”示例?
虽然我确信一开始这会超出我的想象,但最终我想创建一个简单的 MIDI 驱动程序,就像 Maple 虚拟 MIDI 电缆,其中 MIDI 消息来自用户应用程序而不是物理设备。
(使用现成的 MIDI 环回驱动程序的麻烦在于输入和输出端的存在常常让用户感到困惑。我的应用程序生成 MIDI 输出,该输出被发送到其他程序的 MIDI 输入,所以如果我可以创建一个连接到我的程序而不是硬件的假驱动程序,这将消除这种混乱。)
感谢您的宝贵时间。
How does one begin writing drivers for Windows? Is there some sort of official DDK "Hello World" example out there?
While I'm sure it will be way above my head at first, eventually I would like to create a simple MIDI driver, much like the Maple Virtual MIDI Cable where the MIDI messages come from a user application rather than a physical device.
(The trouble with using the off-the-shelf MIDI loopback drivers is that the existence of an input and output end is often confusing for the user. My application generates MIDI output that gets sent to the MIDI input of other programs, so if I could create a fake driver that connects to my program rather than hardware, it would eliminate this confusion.)
Thank you for your time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以看一下我的虚拟MIDI驱动程序:
www.tobias-erichsen.de/virtualMIDI.html
这个驱动程序正是您所寻找的。
托比亚斯
You could take a look at my virtualMIDI-driver:
www.tobias-erichsen.de/virtualMIDI.html
This one does exactly what your are looking for.
Tobias
WDK 文档是参考资料,它们不会教您如何入门。 WDK 中包含的示例代码至关重要,其中有很多代码,您经常可以找到与您想要创建的驱动程序类似的代码。 src\kmdf\toaster\filter 目录中提供了通用过滤器驱动程序,我认为如果我正确理解您的目标,这就是您所需要的。
沃尔特·奥尼(Walter Oney)的书对于学习重要概念至关重要,强烈推荐。我经常访问 osronline.com,这是一个重点关注驱动程序开发并设有论坛的网站。您通常不会在这里找到太多帮助,这是一种相当专业的编码。
The WDK docs are reference material, they won't teach you how to get started. Essential are the sample code included with the WDK, there's lots of it and you can often find something that resembles the kind of driver you want to create. A generic filter driver is available in the src\kmdf\toaster\filter directory, I think that's what you'd need if I understand your goal properly.
Walter Oney's books are essential to learn important concepts, strongly recommended. I keep running into osronline.com as a web site that strongly focuses on driver development, with forums. You typically won't find much help here, it is a rather specialized kind of coding.