char filename[MAX_PATH]; if (!GetStringsFile(filename)) return -1; if (_access(filename, 04)) return -1;
ShowProgressUI(){  // Only show the Progress UI if the process is taking significant time.  // Here we measure significant time as taking more than one second.  Sleep(500);  if (sQuit || sProgress > 50.0f)    return 0;  INITCOMMONCONTROLSEX icc = {    sizeof(INITCOMMONCONTROLSEX),    ICC_PROGRESS_CLASS  };  InitCommonControlsEx(&icc);  DialogBox(GetModuleHandle(NULL),            MAKEINTRESOURCE(IDD_DIALOG), NULL,            (DLGPROC) DialogProc);  return 0;}