home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / watcoapi.zip / incl32 / pmdev.h < prev    next >
Text File  |  2002-09-30  |  5KB  |  142 lines

  1. /*
  2.     OS/2 Presentation Manager device support include file
  3.     for 32-bit development.
  4. */
  5.  
  6.  
  7. #if defined(INCL_DEV) || !defined(INCL_NOCOMMON)
  8.  
  9. #define CAPS_FAMILY                   0
  10. #define CAPS_IO_CAPS                  1
  11. #define CAPS_TECHNOLOGY               2
  12. #define CAPS_DRIVER_VERSION           3
  13. #define CAPS_WIDTH                    4
  14. #define CAPS_HEIGHT                   5
  15. #define CAPS_WIDTH_IN_CHARS           6
  16. #define CAPS_HEIGHT_IN_CHARS          7
  17. #define CAPS_HORIZONTAL_RESOLUTION    8
  18. #define CAPS_VERTICAL_RESOLUTION      9
  19. #define CAPS_CHAR_WIDTH              10
  20. #define CAPS_CHAR_HEIGHT             11
  21. #define CAPS_SMALL_CHAR_WIDTH        12
  22. #define CAPS_SMALL_CHAR_HEIGHT       13
  23. #define CAPS_COLORS                  14
  24. #define CAPS_COLOR_PLANES            15
  25. #define CAPS_COLOR_BITCOUNT          16
  26. #define CAPS_COLOR_TABLE_SUPPORT     17
  27. #define CAPS_MOUSE_BUTTONS           18
  28. #define CAPS_FOREGROUND_MIX_SUPPORT  19
  29. #define CAPS_BACKGROUND_MIX_SUPPORT  20
  30. #define CAPS_DEVICE_WINDOWING        31
  31. #define CAPS_ADDITIONAL_GRAPHICS     32
  32. #define CAPS_VIO_LOADABLE_FONTS      21
  33. #define CAPS_WINDOW_BYTE_ALIGNMENT   22
  34. #define CAPS_BITMAP_FORMATS          23
  35. #define CAPS_RASTER_CAPS             24
  36. #define CAPS_MARKER_HEIGHT           25
  37. #define CAPS_MARKER_WIDTH            26
  38. #define CAPS_DEVICE_FONTS            27
  39. #define CAPS_GRAPHICS_SUBSET         28
  40. #define CAPS_GRAPHICS_VERSION        29
  41. #define CAPS_GRAPHICS_VECTOR_SUBSET  30
  42. #define CAPS_PHYS_COLORS             33
  43. #define CAPS_COLOR_INDEX             34
  44. #define CAPS_GRAPHICS_CHAR_WIDTH     35
  45. #define CAPS_GRAPHICS_CHAR_HEIGHT    36
  46. #define CAPS_HORIZONTAL_FONT_RES     37
  47. #define CAPS_VERTICAL_FONT_RES       38
  48. #define CAPS_DEVICE_FONT_SIM         39
  49. #define CAPS_LINEWIDTH_THICK         40
  50. #define CAPS_DEVICE_POLYSET_POINTS   41
  51.  
  52. #define CAPS_IO_DUMMY              1
  53. #define CAPS_IO_SUPPORTS_OP        2
  54. #define CAPS_IO_SUPPORTS_IP        3
  55. #define CAPS_IO_SUPPORTS_IO        4
  56.  
  57. #define CAPS_TECH_UNKNOWN          0
  58. #define CAPS_TECH_VECTOR_PLOTTER   1
  59. #define CAPS_TECH_RASTER_DISPLAY   2
  60. #define CAPS_TECH_RASTER_PRINTER   3
  61. #define CAPS_TECH_RASTER_CAMERA    4
  62. #define CAPS_TECH_POSTSCRIPT       5
  63.  
  64. #define CAPS_COLTABL_RGB_8         1
  65. #define CAPS_COLTABL_RGB_8_PLUS    2
  66. #define CAPS_COLTABL_TRUE_MIX      4
  67. #define CAPS_COLTABL_REALIZE       8
  68.  
  69. #define CAPS_FM_OR              0x0001
  70. #define CAPS_FM_OVERPAINT       0x0002
  71. #define CAPS_FM_XOR             0x0008
  72. #define CAPS_FM_LEAVEALONE      0x0010
  73. #define CAPS_FM_AND             0x0020
  74. #define CAPS_FM_GENERAL_BOOLEAN 0x0040
  75.  
  76. #define CAPS_BM_OR              0x0001
  77. #define CAPS_BM_OVERPAINT       0x0002
  78. #define CAPS_BM_XOR             0x0008
  79. #define CAPS_BM_LEAVEALONE      0x0010
  80. #define CAPS_BM_AND             0x0020
  81. #define CAPS_BM_GENERAL_BOOLEAN 0x0040
  82. #define CAPS_BM_SRCTRANSPARENT  0x0080
  83. #define CAPS_BM_DESTTRANSPARENT 0x0100
  84.  
  85. #define DEV_ERROR                 0
  86. #define DEV_OK                    1
  87. #define DEV_BAD_PARAMETERS        2
  88. #define DEV_WARNING               3
  89. #define DEV_PROP_BUF_TOO_SMALL    4
  90. #define DEV_ITEM_BUF_TOO_SMALL    5
  91. #define DEV_INV_INP_JOBPROPERTIES 6
  92.  
  93. #define DRIVER_NAME    1
  94. #define DRIVER_DATA    2
  95. #define DATA_TYPE      3
  96. #define COMMENT        4
  97. #define PROC_NAME      5
  98. #define PROC_PARAMS    6
  99. #define SPL_PARAMS     7
  100. #define NETWORK_PARAMS 8
  101.  
  102. #define OD_SCREEN           0
  103. #define OD_QUEUED           2
  104. #define OD_DIRECT           5
  105. #define OD_INFO             6
  106. #define OD_METAFILE         7
  107. #define OD_MEMORY           8
  108. #define OD_METAFILE_NOQUERY 9
  109.  
  110. typedef PSZ *PDEVOPENDATA;
  111.  
  112. typedef struct _DRIVDATA {
  113.     LONG cb;
  114.     LONG lVersion;
  115.     CHAR szDeviceName[32];
  116.     CHAR abGeneralData[1];
  117. } DRIVDATA, *PDRIVDATA;
  118.  
  119. typedef struct _DEVOPENSTRUC {
  120.     PSZ       pszLogAddress;
  121.     PSZ       pszDriverName;
  122.     PDRIVDATA pdriv;
  123.     PSZ       pszDataType;
  124.     PSZ       pszComment;
  125.     PSZ       pszQueueProcName;
  126.     PSZ       pszQueueProcParams;
  127.     PSZ       pszSpoolerParams;
  128.     PSZ       pszNetworkParams;
  129. } DEVOPENSTRUC, *PDEVOPENSTRUC;
  130.  
  131. HMF    APIENTRY DevCloseDC(HDC hdc);
  132. LONG   APIENTRY DevEscape(HDC hdc, LONG lCode, LONG lInCount, PBYTE pbInData,
  133.                    PLONG plOutCount, PBYTE pbOutData);
  134. HDC    APIENTRY DevOpenDC(HAB hab, LONG lType, PCSZ pszToken, LONG lCount,
  135.                    PDEVOPENDATA pdopData, HDC hdcComp);
  136. LONG   APIENTRY DevPostDeviceModes(HAB hab, PDRIVDATA pdrivDriverData, PCSZ pszDriverName,
  137.                    PCSZ pszDeviceName, PCSZ pszName, ULONG flOptions);
  138. BOOL   APIENTRY DevQueryCaps(HDC hdc, LONG lStart, LONG lCount, PLONG alArray);
  139.  
  140. #endif
  141.  
  142.