SetupFindFirstLine()的参数设定问题
SetupFindFirstLine()的参数设定问题
BOOL SetupFindFirstLine(
HINF InfHandle, // handle to an INF file
PCTSTR Section, // section in which to find a line
PCTSTR Key, // optional, key to search for
PINFCONTEXT Context // context of the found line
);
已获得了INF文件的 InfHandle, 第四个参数应该怎样设定
PINFCONTEXT lpInfcontext;
LPCTSTR lpSection;
LPCTSTR lpKey;
lpInfcontext=NULL;
lpSection="Version";
lpKey=NULL;
BOOL bFindfirstline=SetupFindFirstLine(hInf,lpSection,lpKey,lpInfcontext);
err=GetLastError();
err=87(参数错),请问各位,应该怎样设定?
谢谢.