开发者

How enumerate all device objects?

Sor开发者_StackOverflow中文版ry 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..?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜