我在用函数SetupDiGetDriverInfoDetail的时候,它的第三个参数是这样定义的:IN PSP_DEVINFO_DATA DriverInfoData,我于是调用这个参数时,明明在MSDN上面有8个参数,可是我的VC上面只有6个参数了,其中DWORDLONG DriverVersion(驱动版本信息),FILETIME DriverDate(驱动日期),没有定义,我在Setupapi.h中查看了这个结构也是六个参数,我需要的两个却没有,不知道怎么回事?我需要查询版本和日期信息,就无法查了,请大家帮忙看看,谢谢!

解决方案 »

  1.   

    In SetupAPI.h, this structure equates to either SP_DRVINFO_DATA_V1 or SP_DRVINFO_DATA_V2, based on whether you include the following line in your source code:#define  USE_SP_DRVINFO_DATA_V1 1Define this identifier if your component must run on Windows 98/Me, or on NT-based OS versions earlier than Windows 2000. If your component will be used only on Windows 2000 and later, do not define the identifier. If the identifier is not defined, SP_DRVINFO_DATA_V2 is used.SP_DRVINFO_DATA_V1 does not contain DriverDate and DriverVersion members.
      

  2.   

    VC6带的h文件是不行的,安装SDK或用.NET
      

  3.   

    安装SDK?请问该怎么安装,哪里有下载,谢谢,现在急的很。
      

  4.   

    的确VC6的setupapi.h中的SP_DRVINFO_DATA定义不行,所以我下载了一个DDK,发现DDK中的setupapi.h中的SP_DRVINFO_DATA定义是正确的,我希望在VC6.0中利用DDK中的setupapi.h和setupapi.lib,而不用自带的,应该怎么设置,谢谢!
      

  5.   

    SDK到MS站点去下
    安装完了将VC的include和lib的设置改为SDK的路径在前面