DlgSequenceNext();
DlgSequence(NEXT_DLG);
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow){  /***********************************************************************/  /* HANDLE hInstance;       handle for this instance                    */  /* HANDLE hPrevInstance;   handle for possible previous instances      */  /* LPSTR  lpszCmdLine;     long pointer to exec command line           */  /* int    nCmdShow;        Show code for main window display           */  /***********************************************************************/  MSG   msg;  char  szBuf[MAX_BUF];  int   iRv = WIZ_OK;  HWND  hwndFW;  if(!hPrevInstance)  {    /* Allow only one instance of setup to run.     * Detect a previous instance of setup, bring it to the      * foreground, and quit current instance */    if((hwndFW = FindWindow(CLASS_NAME_SETUP_DLG, NULL)) != NULL)    {      ShowWindow(hwndFW, SW_RESTORE);      SetForegroundWindow(hwndFW);      iRv = WIZ_SETUP_ALREADY_RUNNING;      PostQuitMessage(1);    }    else if(Initialize(hInstance))      PostQuitMessage(1);    else if(!InitApplication(hInstance, hSetupRscInst))    {      char szEFailed[MAX_BUF];      if(GetPrivateProfileString("Messages", "ERROR_FAILED", "", szEFailed, sizeof(szEFailed), szFileIniInstall))      {        wsprintf(szBuf, szEFailed, "InitApplication().");        PrintError(szBuf, ERROR_CODE_SHOW);      }      PostQuitMessage(1);    }    else if(!InitInstance(hInstance, nCmdShow))    {      char szEFailed[MAX_BUF];      if(GetPrivateProfileString("Messages", "ERROR_FAILED", "", szEFailed, sizeof(szEFailed), szFileIniInstall))      {        wsprintf(szBuf, szEFailed, "InitInstance().");        PrintError(szBuf, ERROR_CODE_SHOW);      }      PostQuitMessage(1);    }    else if(GetInstallIni())    {      PostQuitMessage(1);    }    else if(ParseInstallIni())    {      PostQuitMessage(1);    }    else if(GetConfigIni())    {      PostQuitMessage(1);    }    else if(ParseConfigIni(lpszCmdLine))    {      PostQuitMessage(1);    }    else    {      DlgSequenceNext();    }  }  while(GetMessage(&msg, NULL, 0, 0))  {    if((!IsDialogMessage(hDlgCurrent, &msg)) && (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)))    {      TranslateMessage(&msg);      DispatchMessage(&msg);    }  }  if(iRv != WIZ_SETUP_ALREADY_RUNNING)    /* Do clean up before exiting from the application */    DeInitialize();  return(msg.wParam);} /*  End of WinMain */