sdistruct.dwTimeOut     = SDI_DEFAULT_TIMEOUT; sdistruct.dwRetries     = SDI_DEFAULT_RETRIES;
HRESULT SdArchives(LPSTR szFileIdi, LPSTR szDownloadDir){  /* 2 indicates that sdinst.dll does not exist */  HRESULT hResult = 2;#ifndef MOZILLA_CLIENT  SDISTRUCT sdistruct;  if((hResult = InitializeSmartDownload()) == 0)  {    ZeroMemory(&sdistruct, sizeof(SDISTRUCT));    sdistruct.dwStructSize  = sizeof(SDISTRUCT);    sdistruct.lpFileName    = szFileIdi;    sdistruct.lpDownloadDir = szDownloadDir;    sdistruct.hwndOwner     = hWndMain;    hResult = pfnNetInstall(&sdistruct);    DeInitializeSmartDownload();  }#endif  return(hResult);}