如何使用默认播放软件在 Windows 上开始 DVD 播放?
有谁知道如何使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够使用 ShellExecute 来实现此目的;播放 DVD 或 CD 的动词似乎是“play”。
You should be able to use ShellExecute for this; the verb for playing DVDs or CDs seems to be "play".
我已经很久没有使用 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.