开发者

How enumerate all device objects?

开发者 https://www.devze.com 2023-02-03 12:28 出处:网络
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 helpi

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

精彩评论

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