微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Windows Wdk:当我尝试添加Windows.h和Wdm.h,ntdef.h和winnt.h之间的重定义错误

我正在尝试使用CM_Get_Device_ID_ListW() , CM_Get_DevNode_PropertyW()和ZwDeviceIoControlFile() Windows API来查找EFI分区。 这只是一个shell应用程序。 我用stdio在terminal上打印。 以下是添加所有头文件的顺序。 我试图包括以下文件

#include <WINDOWS.h> #include <initguid.h> #include <devguid.h> #include <devpkey.h> #include <diskguid.h> #include <stdio.h> #include <cfgmgr32.h> #include <Wdm.h>

我正在使用Windows 7,64位,Visual Studio 2010.在VS2010中,我设置了包含path:

F:ProgramsWINDDK7600.16385.1inc;F:ProgramsWINDDK7600.16385.1incapi;F:ProgramsWINDDK7600.16385.1inccrt;F:ProgramsWINDDK7600.16385.1incddk;

Libpath:

F:ProgramsWINDDK7600.16385.1libwin7i386

我得到编译错误,如:

什么版本的Visual Studio可以同时安装?

Windows帮助:应用程序无法正确初始化(0x80000003)

Windows Github基础知识和冲突处理(如VSS)

如何将一个值直接从一个Windows应用程序传递到打开的网页中的一个字段?

Windows操作系统的电源schemeGUID是否不变?

f:programswinddk7600.16385.1incapintdef.h(128): warning C4005: 'MAX_NATURAL_ALIGNMENT' : macro redeFinition f:programswinddk7600.16385.1incapiwinnt.h(109) : see prevIoUs deFinition of 'MAX_NATURAL_ALIGNMENT' f:programswinddk7600.16385.1incapintdef.h(161): warning C4005: 'PROBE_ALIGNMENT' : macro redeFinition f:programswinddk7600.16385.1incapiwinnt.h(142) : see prevIoUs deFinition of 'PROBE_ALIGNMENT' f:programswinddk7600.16385.1incapintdef.h(614): error C2011: '_PROCESSOR_NUMBER' : 'struct' type redeFinition f:programswinddk7600.16385.1incapiwinnt.h(493) : see declaration of '_PROCESSOR_NUMBER' f:programswinddk7600.16385.1incapintdef.h(625): error C2011: '_GROUP_AFFINITY' : 'struct' type redeFinition f:programswinddk7600.16385.1incapiwinnt.h(504) : see declaration of '_GROUP_AFFINITY' f:programswinddk7600.16385.1incapintdef.h(882): error C2011: '_FLOAT128' : 'struct' type redeFinition f:programswinddk7600.16385.1incapiwinnt.h(630) : see declaration of '_FLOAT128' f:programswinddk7600.16385.1incapintdef.h(933): error C2011: '_LARGE_INTEGER' : 'union' type redeFinition f:programswinddk7600.16385.1incapiwinnt.h(677) : see declaration of '_LARGE_INTEGER' f:programswinddk7600.16385.1incapintdef.h(951): error C2011: '_ULARGE_INTEGER' : 'union' type redeFinition f:programswinddk7600.16385.1incapiwinnt.h(695) : see declaration of '_ULARGE_INTEGER' f:programswinddk7600.16385.1incapintdef.h(973): error C2011: '_LUID' : 'struct' type redeFinition f:programswinddk7600.16385.1incapiwinnt.h(717) : see declaration of '_LUID' f:programswinddk7600.16385.1incapintdef.h(1070): error C2084: function 'ULONGLONG Int64ShllMod32(ULONGLONG,DWORD)' already has a body f:programswinddk7600.16385.1incapiwinnt.h(771) : see prevIoUs deFinition of 'Int64ShllMod32' f:programswinddk7600.16385.1incapintdef.h(1086): error C2084: function 'LONGLONG Int64ShraMod32(LONGLONG,DWORD)' already has a body f:programswinddk7600.16385.1incapiwinnt.h(778) : see prevIoUs deFinition of 'Int64ShraMod32' f:programswinddk7600.16385.1incapintdef.h(1102): error C2084: function 'ULONGLONG Int64ShrlMod32(ULONGLONG,DWORD)' already has a body f:programswinddk7600.16385.1incapiwinnt.h(785) : see prevIoUs deFinition of 'Int64ShrlMod32' f:programswinddk7600.16385.1incapintdef.h(1318): warning C4005: 'UNICODE_STRING_MAX_BYTES' : macro redeFinition f:programswinddk7600.16385.1incapiwinnt.h(957) : see prevIoUs deFinition of 'UNICODE_STRING_MAX_BYTES' f:programswinddk7600.16385.1incapintdef.h(1358): error C2011: '_LIST_ENTRY' : 'struct' type redeFinition f:programswinddk7600.16385.1incapiwinnt.h(966) : see declaration of '_LIST_ENTRY'....

任何人都可以帮助解决这个?

如何在jsp页面的javaee中重写url时调用ajax mekegetrequest()函数

有没有人成功地在Windows下构buildChrome?

以编程方式扩展/自定义Windowslogin提示

在右键单击选项(Windows 7-8)中更改/添加/删除文件/文件夹选项?

Chrome DNS查询时间本地地址

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐