2,640
社区成员
发帖
与我相关
我的任务
分享
TCHAR Name[128] = {0};
DWORD Size = 10240;
if(!SetupCopyOEMInf(
strTemp,
NULL,
SPOST_PATH,
SP_COPY_REPLACEONLY,
(TCHAR*)Name,
Size,
NULL,
NULL))
{
lastError = GetLastError();
strLog.Format(_T("安装adb.inf失败! ErrorCode = %d \r\n"),lastError);
ShowLog(strLog);
return FALSE;
}
CString strTemp;
CString strLog;
int lastError = 0;
TCHAR szPath[MAX_PATH];
GetModuleFileName(NULL,szPath,sizeof(szPath));
*(_tcsrchr(szPath, '\\')) = '\0';
strTemp.Format(_T("%s\\x86\\adb.inf"),szPath);
ShowLog(_T("正在安装adb.inf...\r\n"));