简体   繁体   English

DDK“你好世界”

[英]DDK “Hello World”

How does one begin writing drivers for Windows? 如何开始为Windows编写驱动程序? Is there some sort of official DDK "Hello World" example out there? 那里有某种官方DDK“Hello World”的例子吗?

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. 虽然我确信它最初会超越我的头脑,但最终我想创建一个简单的MIDI驱动程序,就像Maple Virtual MIDI Cable ,其中MIDI消息来自用户应用程序而不是物理设备。

(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.) (使用现成的MIDI环回驱动程序的麻烦在于输入和输出端的存在常常让用户感到困惑。我的应用程序生成的MIDI输出被发送到其他程序的MIDI输入,所以如果我可以创建一个连接到我的程序而不是硬件的假驱动程序,它可以消除这种混乱。)

Thank you for your time. 感谢您的时间。

The WDK docs are reference material, they won't teach you how to get started. WDK文档是参考资料,它们不会教你如何开始。 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. 必不可少的是WDK附带的示例代码,它有很多,你经常可以找到类似你想要创建的驱动程序的东西。 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. src \\ kmdf \\ toaster \\ filter目录中提供了一个通用的过滤器驱动程序,我认为如果我正确理解你的目标,那就是你需要的。

Walter Oney's books are essential to learn important concepts, strongly recommended. 强烈推荐Walter Oney的书籍对于学习重要概念至关重要。 I keep running into osronline.com as a web site that strongly focuses on driver development, with forums. 我一直在运行osronline.com作为一个强烈关注驱动程序开发和论坛的网站。 You typically won't find much help here, it is a rather specialized kind of coding. 你通常不会在这里找到太多帮助,它是一种相当专业的编码。

You could take a look at my virtualMIDI-driver: 你可以看看我的virtualMIDI驱动程序:

www.tobias-erichsen.de/virtualMIDI.html www.tobias-erichsen.de/virtualMIDI.html

This one does exactly what your are looking for. 这个正是你正在寻找的。

Tobias 托比亚斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM