如何枚举所有设备对象?
对不起我的英语。 我想枚举系统中指向 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
NtQueryDirectoryObject
,但这不会为您提供指向DEVICE_OBJECT
的指针。尝试打开设备对象,然后使用 NtQuerySystemInformation 枚举句柄来获取指针。You can use
NtQueryDirectoryObject
, but that doesn't give you pointers to theDEVICE_OBJECT
s. Try opening the device objects and then enumerating handles usingNtQuerySystemInformation
to get the pointers.