阅读:2178回复:1
SetupInstallFromInfSection这个函数怎么用老返回错误呢?
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 |
|
沙发#
发布于: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. |
|
|