DDK“你好世界”

发布于 2024-09-28 01:14:57 字数 377 浏览 3 评论 0原文

如何开始为 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 技术交流群。

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

发布评论

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

评论(2

红尘作伴 2024-10-05 01:14:57

您可以看一下我的虚拟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

梦中楼上月下 2024-10-05 01:14:57

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.

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