【发布时间】:2014-02-25 20:49:55
【问题描述】:
我想在内核空间(来自我的非即插即用驱动程序)中获取 SystemBasicInformation、SystemPerformanceInformation、SystemFileCacheInformation。但我不能在内核空间调用 NtQuerySystemInformation,因为它需要用户空间 ntdll.lib。 有人知道内核空间中相同的 NtQuerySystemInformation 吗?
【问题讨论】:
-
说明您应该包含
ntdll.lib以使用ZwQuerySystemInformation的文档仅适用于用户模式程序。您是否尝试过简单地忽略这一点? AFAIK,您通常不需要指定库文件来调用内核模式函数。
标签: c++ c windows winapi driver