home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / CMD / SVGAINST / SVGA.H < prev    next >
Text File  |  1995-04-14  |  5KB  |  146 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. /****************************************************************************/
  13. /*                                                                          */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /****************************************************************************/
  17.  
  18. /*********************************************************************/
  19. /*                                                                   */
  20. /*  SOURCE FILE NAME: svga.h                                         */
  21. /*                                                                   */
  22. /*  DESCRIPTIVE NAME: Include file for Dispinst                      */
  23. /*                                                                   */
  24. /*  FUNCTION:                                                        */
  25. /*                                                                   */
  26. /*  REFERENCES: None                                                 */
  27. /*                                                                   */
  28. /*********************************************************************/
  29.  
  30.  
  31. /*
  32.  *key values to add to the ini file
  33.  */
  34. #define MONITOR_RES         "MONITOR_RES"
  35. #define MONITOR_INTERLACE   "MONITOR_INTERLACE"
  36. #define MONITOR_VREFRESH    "MONITOR_VREFRESH"
  37. #define SIZ_DATE_TIME        32
  38.  
  39.  
  40. #define SIZ_PARMS           256
  41. #define SIZ_TOWRITE         256
  42. #define INDEX_RESOLUTION    0
  43. #define INDEX_INTERLACE     1
  44. #define INDEX_VREFRESH      2
  45.  
  46. #define AM_QUIT     WM_USER + 0
  47. #define MAX_SIZ_KEY   64
  48. #define SLEEP_TIME    1000
  49. #define CSF_CIDENVR  "CAS_STATE"
  50.  
  51. /*
  52.  *svga specific structure declarations
  53.  */
  54. typedef struct parms
  55. {
  56.      PSZ pszApplicationKey;
  57.      PSZ pszParms;
  58.      PSZ pszStringToWrite;
  59.      PFN pfnWriteParmToIni;
  60. }INIPARMS,*PINIPARMS;
  61.  
  62. typedef struct _resolutiondata
  63. {
  64.      ULONG Horiz;
  65.      ULONG Vert;
  66.      ULONG Colors;
  67. }RESOLUTIONDATA,*PRESOLUTIONDATA;
  68.  
  69.  
  70. typedef struct _svgautildata
  71. {
  72.     HAB  hab;
  73.     PSZ  pszTitle;                 /* resource string */
  74.     PSZ  pszMsg;                 /* resource string */
  75.     PSZ  pszBuffer;              /* pointer for svga utility */
  76.     BOOL fParms;                 /* flag for presence of svga util parameters */
  77. }SVGAUTILDATA,*PSVGAUTILDATA;
  78.  
  79.  
  80. typedef struct _SESSIONRESULT {
  81.     USHORT usSessionID;
  82.     USHORT usResultCode;
  83. } SESSIONRESULT, *PSESSIONRESULT;
  84.  
  85.  
  86. /*
  87.  *application specific error
  88.  *numbers
  89.  */
  90.  
  91. #define WRITE_INI_ERROR   2
  92.  
  93.  
  94.  
  95.  
  96. #define  ONCE            while(0)
  97. #define  FOREVER         while(1)
  98. #define  MAX_PARMS       3
  99.  
  100. /*
  101.  *resource information for  the svga
  102.  *dll
  103.  */
  104.  
  105.  
  106. #define ID_NULL                      -1
  107. #define WM_INIT                     500
  108. #define DID_LOCATE                  531
  109. /*
  110.       Dialog box ids    300 - ???  ------  Continued from dispres.h
  111. */
  112. #define DLG_RUNSVGA                  315
  113. #define DLG_SVGAUTIL                 316
  114. #define DLG_SELECTSVGAUTIL           317
  115.  
  116. #define MAXDRIVES                    26
  117. #define RESOLUTION_NUM                3
  118.  
  119. /* resource string ids */
  120.  
  121. #define MSG_BAD_RESOLUTIONS_FILE       0
  122. #define MSG_UNABLE_TO_DETERMINE_HARD   1
  123. #define MSG_GET_DLL_HANDLE             2
  124. #define MSG_HARDWARE_CONFIG_ERROR      3
  125. #define MSG_SVGAUTIL_NOT_FOUND         4
  126. #define MSG_FILE_NOT_EXIST             5
  127. #define MSG_SVGA_ERROR_TITLE           6
  128. #define MSG_SVGA_INSTALL               7
  129. #define MSG_MAINHELPTITLE              8
  130. #define MSG_APPTITLE                   9
  131. #define MSG_HELPNOTAVAIL              10
  132. #define MSG_FILEDLG_TITLE             11
  133.  
  134. #define SVGA_MODULE                   "SVGAINST.DLL"
  135. #define S3_MODULE                     "SVGA.DLL"
  136. #define COMMAND_COM                   "COMMAND.COM"
  137.  
  138.  
  139. HWND hwndHelpInstance;
  140. CHAR szAutoExecDsp[] =     "C:\\OS2\\AUTOEXEC.DSP";
  141. CHAR szConfigDsp[]   =     "C:\\OS2\\CONFIG.DSP";
  142. CHAR szAutoExecName[]=     "C:\\AUTOEXEC.BAT";
  143. CHAR szConfigSys[]   =     "C:\\CONFIG.SYS";
  144. BOOL fSvgaUtilPresent=      FALSE;
  145.  
  146.