如何捕获托管/非托管 DirectShow 应用程序中的本机线程创建?

发布于 2024-10-08 17:39:16 字数 176 浏览 0 评论 0原文

我有一个混合模式 64 位托管应用程序,它通过托管互操作程序集创建 DirectShow 过滤图。我需要捕获非托管过滤器线程之一的线程创建(可以挂接 Quartz.dll,但这太痛苦了)。我应该在哪些 SDK/C++ 运行时函数上放置函数断点(CreateThread、_beginthread 等)——或者是否有更好的方法来执行此操作?

I have a mixed mode 64-bit managed app that creates a DirectShow filtergraph via a managed interop assembly. I need to catch the thread creation for one of the unmanaged filter threads (could hook Quartz.dll, but that is too painful). Which SDK/C++ runtime functions should I put function breakpoints on (CreateThread, _beginthread, etc) -- or is there a better way to do this?

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

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

发布评论

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

评论(1

踏雪无痕 2024-10-15 17:39:16

实现此目的的一种方法是为您的应用程序创建一些虚拟 DLL,它实现 DllMain 及其 4 个消息。其中一条消息 DLL_THREAD_ATTACH 将是放置断点或任何代码的地方。

One way to do this is to create some dummy DLL for your app, that implements DllMain and its 4 messages. One of the messages, DLL_THREAD_ATTACH would be the place to stick a breakpoint or whatever code.

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