leoyang99
驱动牛犊
驱动牛犊
  • 注册日期2004-05-11
  • 最后登录2005-04-07
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2126回复:1

SetupInstallFromInfSection这个函数怎么用老返回错误呢?

楼主#
更多 发布于:2004-06-01 11:59
bResult = SetupInstallFromInfSection(
            hWnd,
            hInf,
            INF_OPTION1,
            SPINST_ALL,//SPINST_REGISTRY | SPINST_INIFILES,
            NULL,
            szSourcePath,//szSourcePath,    // Path where the source files are located
            0,//SP_COPY_NEWER,
            NULL,//(PSP_FILE_CALLBACK) MyQueueCallback,
            &MyInstallData,//NULL,
            NULL,
            NULL
            );
就这样用怎么不行呢,返回1010
snowStart
驱动老牛
驱动老牛
  • 注册日期2004-04-06
  • 最后登录2011-06-02
  • 粉丝0
  • 关注0
  • 积分95分
  • 威望19点
  • 贡献值177点
  • 好评度1点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-06-02 15:13
第五个参数不能为空。

RelativeKeyRoot
This optional parameter must be specified if Flags includes SPINST_REGISTRY or SPINST_INI2REG. Specifies a handle to a registry key to be used as the root when the INF file specifies HKR as the key.
学习,关注,交流中... [email=fengyu@163.com]Email:snowstarth@163.com[/email] [url]http://bbs.zndev.com/?a=snowStart[/url]
游客

返回顶部