Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对不起我的英语不好。我想枚举系统中所有指向 DEVICE_OBJECT 的指针。我知道这可以从用户模式完成,但我忘了。可能是在 ZwQueryDirectiryObject 或 SetupAPI.. 的帮助下?
您可以使用NtQueryDirectoryObject,但这不会给您指向DEVICE_OBJECTs 的指针。尝试打开设备对象,然后使用枚举句柄NtQuerySystemInformation来获取指针。
NtQueryDirectoryObject
DEVICE_OBJECT
NtQuerySystemInformation