lstrcat(szSFile, szIndex0);
lstrcat(szSFile, szCounter);
HRESULT RetrieveArchives(){  DWORD     dwIndex0;  siC       *siCObject = NULL;  HRESULT   hResult;  char      szBuf[MAX_BUF];  char      szIndex0[MAX_BUF];  char      szFileIdiGetArchives[MAX_BUF];  char      szSComponent[MAX_BUF];  char      szSFile[MAX_BUF];  lstrcpy(szFileIdiGetArchives, szTempDir);  AppendBackSlash(szFileIdiGetArchives, sizeof(szFileIdiGetArchives));  lstrcat(szFileIdiGetArchives, FILE_IDI_GETARCHIVES);  dwIndex0 = 0;  itoa(dwIndex0, szIndex0, 10);  siCObject = SiCNodeGetObject(dwIndex0, TRUE);  while(siCObject)  {    if(siCObject->dwAttributes & SIC_SELECTED)    {      /* only download jars if not already in the local machine */      if(LocateJar(siCObject) == FALSE)      {        lstrcpy(szSComponent, "Component");        lstrcat(szSComponent, szIndex0);        lstrcpy(szSFile, "File");        lstrcat(szSFile, szIndex0);        if((hResult = AddArchiveToIdiFile(siCObject, szSComponent, szSFile, szFileIdiGetArchives)) != 0)          return(hResult);      }    }    ++dwIndex0;    itoa(dwIndex0, szIndex0, 10);    siCObject = SiCNodeGetObject(dwIndex0, TRUE);  }  /* the existance of the getarchives.idi file determines if there are     any jar files needed to be downloaded */  if(FileExists(szFileIdiGetArchives))  {    DecryptString(szBuf, siSDObject.szCoreDir);    lstrcpy(siSDObject.szCoreDir, szBuf);    WritePrivateProfileString("Netscape Install", "core_file",        siSDObject.szCoreFile,        szFileIdiGetArchives);    WritePrivateProfileString("Netscape Install", "core_dir",         siSDObject.szCoreDir,         szFileIdiGetArchives);    WritePrivateProfileString("Netscape Install", "no_ads",           siSDObject.szNoAds,           szFileIdiGetArchives);    WritePrivateProfileString("Netscape Install", "silent",           siSDObject.szSilent,          szFileIdiGetArchives);    WritePrivateProfileString("Netscape Install", "execution",        siSDObject.szExecution,       szFileIdiGetArchives);    WritePrivateProfileString("Netscape Install", "confirm_install",  siSDObject.szConfirmInstall,  szFileIdiGetArchives);    WritePrivateProfileString("Netscape Install", "extract_msg",      siSDObject.szExtractMsg,      szFileIdiGetArchives);    WritePrivateProfileString("Execution",        "exe",              siSDObject.szExe,             szFileIdiGetArchives);    WritePrivateProfileString("Execution",        "exe_param",        siSDObject.szExeParam,        szFileIdiGetArchives);    if((hResult = SdArchives(szFileIdiGetArchives, szTempDir)) != 0)      return(hResult);  }  return(0);}