如何使用默认播放软件在 Windows 上开始 DVD 播放?

发布于 2024-09-24 00:28:07 字数 129 浏览 1 评论 0原文

有谁知道如何使用 C++ 程序中的已知驱动器号来启动 DVD 播放。

值得一提的是:我只需搜索 Windows 资源管理器的播放功能,该功能位于右键单击 DVD 驱动器时的上下文菜单中...

提前谢谢, 阿克塞尔

Does anybody know how to initiate a DVD playback using a known drive letter from out of a C++ program.

For what's worth: I simply search for the windows explorer's play function which is located in the context menu when right-clicking a DVD drive...

Thx in advance,
Axel

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

年少掌心 2024-10-01 00:28:07

您应该能够使用 ShellExecute 来实现此目的;播放 DVD 或 CD 的动词似乎是“play”。

ShellExecute(NULL, "play", "D:\\", NULL, NULL, SW_SHOWNORMAL);

You should be able to use ShellExecute for this; the verb for playing DVDs or CDs seems to be "play".

ShellExecute(NULL, "play", "D:\\", NULL, NULL, SW_SHOWNORMAL);
御弟哥哥 2024-10-01 00:28:07

我已经很久没有使用 Windows 来为您提供确切的详细信息了,但是您应该能够通过深入了解 regedit 中的资源管理器设置并检查“播放”上下文菜单实际执行的操作来了解要做什么。

我记得,上下文菜单条目是在子树中定义的,其路径类似于 HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/explorer/... ,但不要引用我的内容。

It's been too long since I used Windows for me to give you exact details, but you should be able to get some idea of what to do by diving into the explorer settings in regedit and checking what the "Play" context menu is actually doing.

As I remember, the context menu entries are defined in a subtree with a path something like HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/explorer/... but don't quote me on it.

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