如何枚举所有设备对象?

发布于 2024-10-11 19:27:12 字数 110 浏览 11 评论 0原文

对不起我的英语。 我想枚举系统中指向 DEVICE_OBJECT 的所有指针。我知道这可以从用户模式完成,但我忘了。可能需要 ZwQueryDirectiryObject 或 SetupAPI 的帮助..?

Sorry for my English.
I want to enumerate all pointers to the DEVICE_OBJECT's in the system. I know that this can be done from the user mode, but I forgot. May be with helping of ZwQueryDirectiryObject or SetupAPI..?

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

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

发布评论

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

评论(1

待"谢繁草 2024-10-18 19:27:12

您可以使用NtQueryDirectoryObject,但这不会为您提供指向DEVICE_OBJECT的指针。尝试打开设备对象,然后使用 NtQuerySystemInformation 枚举句柄来获取指针。

You can use NtQueryDirectoryObject, but that doesn't give you pointers to the DEVICE_OBJECTs. Try opening the device objects and then enumerating handles using NtQuerySystemInformation to get the pointers.

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