枚举在 Windows XP 上录制或播放的进程

发布于 2024-10-02 07:57:28 字数 148 浏览 1 评论 0原文

我想枚举所有进程,这些进程对系统中的任何声卡都有开放的句柄。理想情况下,我想要一个“进程 - 声卡 - 动作”关系,其中动作可能是播放或录制。

Windows XP 上是否有 Win32 API 可以获取此信息?此 API 是否也适用于较新版本的 Windows?

I would like to enumerate all processes, which have an open handle for any of the soundcards in the system. Ideally I would like a "process - sound card - action" relation, where action might be playback or record.

Is there a Win32 API for getting this information on Windows XP? Does this API work also on newer versions of Windows?

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

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

发布评论

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

评论(1

深海夜未眠 2024-10-09 07:57:28

您当然可以通过分析进程的内存来找出进程中打开了哪些句柄。枚举进程是使用完成的,

EnumProcesses()

然后您可以使用系统 API(不幸的是,仅由 DDK 提供给您)
如果您想要更多信息(我确信您会这样做),这里有一个非常有用的线程。

Sysinternals

You can certainly find out which handles are open in a process by analyzing its memory. Enumerating processes is done using

EnumProcesses()

You can then use the system API (brought to you by the DDK only, unfortunately)
If you want some more info (as I'm sure you do) here's a really useful thread.

Sysinternals

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