我正在使用Visual Studio 2017作为C ++项目编写Windows内核驱动程序。我提供的"ntifs.h"
涵盖了"ntddk.h"
中未包含的大多数定义。
然后,作为一个简单的示例,我想调用NtQuerySystemInformation
函数,但是缺少SYSTEM_INFORMATION_CLASS
的定义。该页面建议包含winternl.h
。但是当我这样做时:
#include <winternl.h>
找不到它:
fatal error C1083: Cannot open include file: 'winternl.h': No such file or directory
因此,即使我提供了它的路径,我也会从winternl.h
,ntdef.h
等那里得到关于结构重定义的一堆错误。
有什么想法如何将winternl.h
中的所有这些定义都包含到内核驱动程序项目中?