gSystemInfo.lastWindowPosCenterX = gSystemInfo.dwScreenX / 2; gSystemInfo.lastWindowPosCenterY = gSystemInfo.dwScreenY / 2;
gSystemInfo.lastWindowPosCenterX  = gSystemInfo.dwScreenX / 2; gSystemInfo.lastWindowPosCenterY  = gSystemInfo.dwScreenY / 2; gSystemInfo.lastWindowMinimized   = FALSE; gSystemInfo.lastWindowIsTopWindow = TRUE;
BOOL InitInstance(HINSTANCE hInstance, DWORD dwCmdShow){  HWND hWnd;  gSystemInfo.dwScreenX = GetSystemMetrics(SM_CXSCREEN);  gSystemInfo.dwScreenY = GetSystemMetrics(SM_CYSCREEN);  gSystemInfo.lastWindowPosCenterX = gSystemInfo.dwScreenX / 2;  gSystemInfo.lastWindowPosCenterY = gSystemInfo.dwScreenY / 2;  hInst = hInstance;  /* This window is only for the purpose of allowing the self-extracting .exe   * code to detect that a setup.exe is currenly running and do the appropriate   * action given certain conditions.  This window is created and left in the   * invisible state.   * There's no other purpose for this window at this time.   */  hWnd = CreateWindow(CLASS_NAME_SETUP,                      DEFAULT_SETUP_WINDOW_NAME,                      WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,                      -150,                      -50,                      1,                      1,                      NULL,                      NULL,                      hInstance,                      NULL);  if(!hWnd)    return(FALSE);  hWndMain = NULL;  return(TRUE);}