为什么我的结构:SP_DRVINFO_DATA少了两个参数?

 所属目录:Java   |   类型:技术问答   |   时间:2007-05-21
 问题:

我在用函数setupdigetdriverinfodetail的时候,它的第三个参数是这样定义的:in   psp_devinfo_data   driverinfodata,我于是调用这个参数时,明明在msdn上面有8个参数,可是我的vc上面只有6个参数了,其中dwordlong   driverversion(驱动版本信息),filetime   driverdate(驱动日期),没有定义,我在setupapi.h中查看了这个结构也是六个参数,我需要的两个却没有,不知道怎么回事?我需要查询版本和日期信息,就无法查了,请大家帮忙看看,谢谢!

· 网友精彩回答:

发表者:antonliox

帮你up

发表者:arthurtu

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   1  
   
  define   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.  
 

发表者:arthurtu

vc6带的h文件是不行的,安装sdk或用.net

发表者:arthurtu

sdk到ms站点去下  
  安装完了将vc的include和lib的设置改为sdk的路径在前面

.
处理 SSI 文件时出错
© 2006-2008 All Rights Reserved