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

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

概述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查询时间本地地址

总结

以上是内存溢出为你收集整理的Windows Wdk:当我尝试添加Windows.h和Wdm.h,ntdef.h和winnt.h之间的重定义错误全部内容,希望文章能够帮你解决Windows Wdk:当我尝试添加Windows.h和Wdm.h,ntdef.h和winnt.h之间的重定义错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1272696.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-08
下一篇2022-06-08

发表评论

登录后才能评论

评论列表(0条)

    保存