home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / CMD / SVGAINST / DISPVARS.H < prev    next >
Text File  |  1995-04-14  |  10KB  |  182 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  4. /*                                                                           */
  5. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  6. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  7. /*    drivers. You may use this code in accordance with the IBM License      */
  8. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  9. /*    Copyright statement may not be removed.                                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12. /* SCCSID = %%s %%s %%s */
  13.  
  14. /****************************************************************************/
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*                                                                          */
  18. /****************************************************************************/
  19.  
  20. /*********************************************************************/
  21. /*                                                                   */
  22. /*  SOURCE FILE NAME: dispvars.h                                     */
  23. /*                                                                   */
  24. /*  DESCRIPTIVE NAME: Global variable file for DISPINST              */
  25. /*                                                                   */
  26. /*  FUNCTION: This include file contains the global variables.       */
  27. /*                                                                   */
  28. /*  ENTRY POINT: None                                                */
  29. /*                                                                   */
  30. /*  PARAMETERS: None                                                 */
  31. /*   Input:                                                          */
  32. /*   Output:                                                         */
  33. /*                                                                   */
  34. /*  REFERENCES: None                                                 */
  35. /*                                                                   */
  36. /*********************************************************************/
  37.  
  38. #if defined(DEF_PUBLIC)
  39.   #define PUBLIC(a,b)   a = b
  40.   #define PUBLICU(a)    a
  41. #else
  42.   #define PUBLIC(a,b)   extern a
  43.   #define PUBLICU(a)    extern a
  44. #endif
  45.  
  46. /* global variables */
  47. PUBLICU (HWND    hwndMain);                 /* window handle for main thread */
  48. PUBLICU (HWND    hwndMainFrame);
  49. PUBLICU (HWND    hwndHelpInstance);
  50.  
  51. PUBLIC  (HWND    hwndProgress, 0);
  52. PUBLICU (HAB     hab);
  53. PUBLICU (HMQ     hmq);
  54. PUBLICU (HAB     habWorker);
  55. PUBLICU (HMQ     hmqWorker);
  56. PUBLICU (TID     tidWorker);
  57. PUBLICU (UCHAR   dbcs_mask_[256]);           /* the dbcs lead character mask */
  58. PUBLIC  (PSZ     pszSourceDir, NULL);                          /* source dir */
  59. PUBLICU (PSZ     pszDestDir);                                    /* dest dir */
  60. PUBLICU (CHAR    szBootDrive[3]);                     /* bootdrive (i.e. C:) */
  61. PUBLICU (PCHAR   achDSPBuffer);              /* buffer used by GetNextChar() */
  62. PUBLICU (HFILE   hDDP);                  /* handle to current open .DDP file */
  63. PUBLIC  (PVOID   pMemory,             NULL); /* memory allocated during init */
  64. PUBLIC  (HMODULE hmodResource,        0);                 /* resource module */
  65. PUBLIC  (USHORT  usCurrentTag,        TAG_INVALID);
  66. PUBLIC  (CHAR    szErrFile[CCHMAXPATH],"");        /* store file that failed */
  67. PUBLIC  (CHAR    szExecPath[CCHMAXPATH],"");     /* path where executed from */
  68. PUBLIC  (BOOL    fConfigUpdated,      FALSE);             /* config updated? */
  69. PUBLIC  (BOOL    fReplaceModule,      FALSE);       /* in-use file replaced? */
  70. PUBLIC  (HEAD    headConfig,          {NULL});        /* store :CONFIG lines */
  71. PUBLIC  (HEAD    headAdapterTypes,    {NULL});         /* store dispinst.cfg */
  72. PUBLIC  (ULONG   ulGlobalExitCode,      0   );      /* return code from main */
  73. PUBLIC  (BOOL    fFullInstall,        FALSE );     /* full install */
  74.  
  75. PUBLIC  (ULONG   ulGlobalInfoFlags,       0);
  76.  
  77. #define F_DOS_INSTALLED      0x00000001
  78. #define F_WIN_INSTALLED      0x00000002
  79. #define F_SC_VGA_ON_SVGA     0x00000004         /* special case: vga on svga */
  80. #define F_BIDI_INSTALLED     0x00000008                  /* arabic or hebrew */
  81. #define F_FERENGI_INSTALLED  0x00000010         /* FERENGI installed */
  82. #define F_PRELOADED_SYSTEM   0x00000020         /* PRELOADED SYSTEM    @FERENGI*/
  83. #define F_CID_ENVIRONMENT    0x00000040         /* CID environment */
  84.  
  85. /*      for warp code, so that install calls dspinstl to display video panels */
  86. #define F_CALLED_BY_INSTALL_FOR_PRIMARY    0x10000000
  87. #define F_CALLED_BY_INSTALL_FOR_SECONDARY  0x20000000
  88.  
  89. PUBLIC  (ADAPTERTYPE  adpinfoPrimary,        {0});
  90. PUBLIC  (ADAPTERTYPE  adpinfoSecondary,      {0});
  91. PUBLIC  (PADAPTERTYPE pAdapterTypePrimary,   NULL);
  92. PUBLIC  (PADAPTERTYPE pAdapterTypeSecondary, NULL);
  93. PUBLIC  (BOOL         fResponseFile,         FALSE);
  94.  
  95. /* global arrays */
  96. PUBLICU (CHAR    **rcstringarray);                  /* resource string array */
  97. PUBLICU (USHORT  DriveArray[26]);                        /* disk drive array */
  98. /* string constants */
  99. PUBLIC  (CHAR szSelf[],               ".");
  100. PUBLIC  (CHAR szParent[],             "..");
  101. PUBLIC  (CHAR szWildcard[],           "*");
  102. PUBLIC  (CHAR szHelpFile[],           "C:\\OS2\\HELP\\DSPINSTL.HLP");
  103. PUBLIC  (CHAR szConfigTag[],          ":CONFIG");
  104. PUBLIC  (CHAR szFilesTag[],           ":FILES");
  105. PUBLIC  (CHAR szOS2iniTag[],          ":OS2INI");
  106. PUBLIC  (CHAR szTitleTag[],           ":TITLE");
  107. PUBLIC  (CHAR szRunTag[],             ":RUN");
  108. PUBLIC  (CHAR szKeyTag[],             ":KEY");
  109. PUBLIC  (CHAR szWinIniTag[],          ":WININI");
  110. PUBLIC  (CHAR szSystemIniTag[],       ":SYSTEM_INI");
  111. PUBLIC  (CHAR szVideoParmsTag[],      ":VIDEO_PARMS");
  112. PUBLIC  (CHAR szSetDriverTag[],       ":SET_DRIVER");
  113. PUBLIC  (CHAR szSetResolutionTag[],   ":SET_RESOLUTION");
  114. PUBLIC  (CHAR szAutoExecTag[],        ":AUTO_EXEC");
  115. PUBLIC  (CHAR szDelConfigLines[],     ":DEL_CONFIG_LINE");
  116. PUBLIC  (CHAR szAppendTag[],          ":APPEND");              //@FERENGI
  117.  
  118. PUBLIC  (CHAR szModeTag[],            ":MODE");
  119. PUBLIC  (CHAR szPrimaryMode[],        "PRIMARY");
  120. PUBLIC  (CHAR szSecondaryMode[],      "SECONDARY");
  121. PUBLIC  (CHAR szDosMode[],            "DOS");
  122. PUBLIC  (CHAR szWindowsMode[],        "WINDOWS");
  123. PUBLIC  (CHAR szBidiMode[],           "BIDI");
  124. PUBLIC  (CHAR szDualMode[],           "DUAL");
  125.  
  126. PUBLIC  (CHAR szNameKey[],            "NAME");
  127. PUBLIC  (CHAR szDescKey[],            "DESC");
  128. PUBLIC  (CHAR szPathNameKey[],        "PATHNAME");
  129. PUBLIC  (CHAR szParmsKey[],           "PARMS");
  130. PUBLIC  (CHAR szWidthKey[],           "WIDTH");
  131. PUBLIC  (CHAR szHeightKey[],          "HEIGHT");
  132. PUBLIC  (CHAR szColorsKey[],          "COLORS");
  133. PUBLIC  (CHAR szPlanesKey[],          "PLANES");
  134. PUBLIC  (CHAR szOptionsKey[],         "OPTIONS");
  135.  
  136. /* files on boot drive */
  137. PUBLIC  (CHAR szConfigSys[],          "C:\\CONFIG.SYS");
  138. PUBLIC  (CHAR szDosFile[],            "C:\\OS2\\MDOS\\DOSKRNL");
  139. PUBLIC  (CHAR szSystemIni[CCHMAXPATH],   "C:\\OS2\\MDOS\\WINOS2\\SYSTEM.INI");   // @WIN@
  140. PUBLIC  (CHAR szWinCom[CCHMAXPATH],      "C:\\OS2\\MDOS\\WINOS2\\WIN.COM");      // @WIN@
  141. PUBLIC  (CHAR szWinIniPath[CCHMAXPATH],  "C:\\OS2\\MDOS\\WINOS2\\");             // @WIN@
  142. PUBLIC  (CHAR szOs2IniPath[],         "C:\\OS2\\");
  143. PUBLIC  (CHAR szOs2Ini[],             "C:\\OS2\\OS2.INI");
  144. PUBLIC  (CHAR szOs2SysIni[],          "C:\\OS2\\OS2SYS.INI");
  145. PUBLIC  (CHAR szReinstalIni[],        "C:\\OS2\\INSTALL\\REINSTAL.INI");  // @WIN@
  146. PUBLIC  (CHAR szLogFile[],            "C:\\OS2\\INSTALL\\DSPINSTL.LOG");
  147. PUBLIC  (CHAR szSystemMsgFile [],     "C:\\OS2\\SYSTEM\\OSO001.MSG");
  148. PUBLIC  (CHAR szDummyModule[],        "C:\\OS2\\INSTALL\\DISP$DW");
  149. PUBLIC  (CHAR szAutoExecName[],       "C:\\AUTOEXEC.BAT");
  150. PUBLIC  (CHAR szWinDiskIns[],         "C:\\OS2\\INSTALL\\WINFILE.INS");   // @FERENGI
  151.  
  152.  
  153. /* sprintf constants */
  154. PUBLIC  (CHAR szDriveSelection[],     "[%c:]");
  155. PUBLIC  (CHAR szDriveEntry[],         "%c:\\");
  156. PUBLIC  (CHAR szPathBSlashPath[],     "%s\\%s");
  157. PUBLIC  (CHAR szPathPath[],           "%s%s");
  158. PUBLIC  (CHAR szIntToString[],        "%d;");        /* for Prf write of int */
  159.  
  160. /* Default Data variables */
  161. PUBLICU  (CHAR szSourceDirectory[CCHMAXPATH] );
  162. PUBLICU  (CHAR szResponseFileName[CCHMAXPATH]);
  163.  
  164. PUBLICU  (CHAR szDestination[CCHMAXPATH]);
  165. PUBLICU  (CHAR szWindowsSourcePath[CCHMAXPATH]);
  166. PUBLIC   (PSZ  pszResponseLogName, NULL);
  167. PUBLICU  (CHAR szDefaultSourceDir[CCHMAXPATH]);
  168. PUBLICU  (CHAR szTitleString     [SIZ_VALUE_STRING]);
  169. PUBLICU  (CHAR szDisplayString   [SIZ_VALUE_STRING]);
  170. PUBLIC   (PSZ  pszOs2RcName,     "INI.RC");
  171. PUBLIC   (ULONG ulExecutionMode, PM_APPLICATION );
  172. PUBLIC   (PSZ   pszPrimaryKey  , NULL           );
  173. PUBLIC   (PSZ   pszSecondaryKey, NULL           );
  174. PUBLIC   (PSZ   pszResolutionKey, NULL          );          //CID
  175. PUBLIC   (BOOL  fSourcePathSet , 0              );
  176. PUBLIC   (ULONG  ulPassedHandle , 0             );
  177. PUBLIC   (BOOL   fInstallComplete, 0            );
  178. PUBLIC   (BOOL   fAbiosPresent, 0               );  /* DonW 68000 */
  179. PUBLIC   (HMTX   hmtxLog,(HMTX)0                );  //@MTD
  180. PUBLIC   (HMTX   hmtxReportErr,(HMTX)0          );  //@MTD
  181. PUBLIC   (ULONG  cFilesTotal, 0                 );  //D87507
  182.