home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / inc / ddi.inc < prev    next >
Text File  |  1999-04-30  |  7KB  |  290 lines

  1. DDI_INCLUDED    EQU    1
  2.  
  3. RC_SUCCESS    EQU    0 
  4. RC_SIMULATE    EQU    1 
  5. RC_UNSUPPORTED    EQU    2 
  6. RC_ERROR    EQU    3 
  7. RC_ERROR_IN_BACKGROUND    EQU    4 
  8. RC_ERROR_NO_HANDLE    EQU    5 
  9. RC_ERROR_RESOURCE_NOT_FOUND    EQU    6 
  10. RC_ERROR_INVALID_PARAMETER    EQU    7 
  11. RC_ERROR_OUT_OF_MEMORY    EQU    8 
  12. RC_DISABLED    EQU    9 
  13. RC_ENABLED    EQU    10 
  14.  
  15. BMAPINFO    STRUC
  16. bmapinfo_ulLength    DD    ?
  17. bmapinfo_ulType    DD    ?
  18. bmapinfo_ulWidth    DD    ?
  19. bmapinfo_ulHeight    DD    ?
  20. bmapinfo_ulBpp    DD    ?
  21. bmapinfo_ulBytesPerLine    DD    ?
  22. bmapinfo_pBits    DD    ?
  23. BMAPINFO    ENDS
  24.  
  25. BLTRECT    STRUC
  26. bltrect_ulXOrg    DD    ?
  27. bltrect_ulYOrg    DD    ?
  28. bltrect_ulXExt    DD    ?
  29. bltrect_ulYExt    DD    ?
  30. BLTRECT    ENDS
  31. BMAP_VRAM    EQU    00000000H 
  32. BMAP_MEMORY    EQU    00000001H 
  33. BMAP_BANKED    EQU    00000010H 
  34. BMAP_VERTICAL_SCAN    EQU    10000000H 
  35. BMAP_FOCAFONT    EQU    20000000H 
  36. TYPE_GRDBNKINFO    EQU    00000001H 
  37. TYPE_CMYKINFO    EQU    00000002H 
  38.  
  39. GRDBNKINFO    STRUC
  40. gbi_ulLength    DD    ?
  41. gbi_ulType    DD    ?
  42. gbi_ulAperture    DD    ?
  43. gbi_ulGID    DD    ?
  44. gbi_ulCurrBank    DD    ?
  45. gbi_ulReserved    DD    ?
  46. gbi_pfnBankSwitch    DD    ?
  47. gbi_pvReserved    DD    ?
  48. GRDBNKINFO    ENDS
  49. CMYK_DEVICE    EQU    00000002H 
  50. CMY_ONLY    EQU    00000004H 
  51. CMYK_INTERLEAVE    EQU    00000008H 
  52.  
  53. BITBLTINFO    STRUC
  54. bitbltinfo_ulLength    DD    ?
  55. bitbltinfo_ulBltFlags    DD    ?
  56. bitbltinfo_cBlits    DD    ?
  57. bitbltinfo_ulROP    DD    ?
  58. bitbltinfo_ulMonoBackROP    DD    ?
  59. bitbltinfo_ulSrcFGColor    DD    ?
  60. bitbltinfo_ulSrcBGColor    DD    ?
  61. bitbltinfo_ulPatFGColor    DD    ?
  62. bitbltinfo_ulPatBGColor    DD    ?
  63. bitbltinfo_abColors    DD    ?
  64. bitbltinfo_pSrcBmapInfo    DD    ?
  65. bitbltinfo_pDstBmapInfo    DD    ?
  66. bitbltinfo_pPatBmapInfo    DD    ?
  67. bitbltinfo_aptlSrcOrg    DD    ?
  68. bitbltinfo_aptlPatOrg    DD    ?
  69. bitbltinfo_abrDst    DD    ?
  70. bitbltinfo_prclSrcBounds    DD    ?
  71. bitbltinfo_prclDstBounds    DD    ?
  72. BITBLTINFO    ENDS
  73. BF_DEFAULT_STATE    EQU    00000000H   
  74. BF_DIR_X_NEGATIVE    EQU    00000001H 
  75. BF_DIR_RIGHT_LEFT    EQU    BF_DIR_X_NEGATIVE
  76. BF_DIR_Y_NEGATIVE    EQU    00000002H 
  77. BF_DIR_BOTTOM_TOP    EQU    BF_DIR_Y_NEGATIVE
  78. BF_ROP_INCL_SRC    EQU    00000004H 
  79. BF_ROP_INCL_PAT    EQU    00000008H 
  80. BF_SRC_TRANSPARENT    EQU    00000010H 
  81. BF_DST_TRANSPARENT    EQU    00000020H 
  82. BF_PAT_TRANSPARENT    EQU    00000040H 
  83. BF_PAT_SOLID    EQU    00000080H 
  84. BF_PAT_HOLLOW    EQU    00000100H 
  85. BF_APPLY_BACK_ROP    EQU    00000200H 
  86. BF_SRC_MONOINVERT    EQU    00000400H 
  87. BF_PAT_MONOINVERT    EQU    00000800H 
  88. BF_DST_MONOINVERT    EQU    00020000H 
  89. BF_SRC_BITS_EXTERNAL    EQU    00001000H 
  90. BF_LAST_BLT    EQU    00002000H 
  91. BF_SRC_Y_FLIP    EQU    00004000H 
  92. BF_SRC_X_FLIP    EQU    00008000H 
  93. BF_SRC_VERTICAL_SCAN    EQU    00010000H 
  94.  
  95. LINEPACK    STRUC
  96. linepack_ulStyleStep    DD    ?
  97. linepack_ulStyleValue    DD    ?
  98. linepack_ulFlags    DD    ?
  99. linepack_plpkNext    DD    ?
  100. linepack_ulAbsDeltaX    DD    ?
  101. linepack_ulAbsDeltaY    DD    ?
  102. linepack_ptlClipStart    DB    SIZE POINTL DUP (?)
  103. linepack_ptlClipEnd    DB    SIZE POINTL DUP (?)
  104. linepack_ptlStart    DB    SIZE POINTL DUP (?)
  105. linepack_ptlEnd    DB    SIZE POINTL DUP (?)
  106. linepack_lClipStartError    DD    ?
  107. LINEPACK    ENDS
  108. LINE_DO_FIRST_PEL    EQU    00000002H 
  109. LINE_DIR_Y_POSITIVE    EQU    00000004H 
  110. LINE_HORIZONTAL    EQU    00000008H 
  111. LINE_X_MAJOR    EQU    00000010H 
  112. LINE_DIR_X_POSITIVE    EQU    00000020H 
  113. LINE_VERTICAL    EQU    00001000H 
  114. LINE_STYLE_X_MAJOR    EQU    00002000H 
  115. LINE_DO_LAST_PEL    EQU    00004000H 
  116. LINE_MONO_INVERT    EQU    00008000H   
  117. LINE_START_CLIP    EQU    00010000H   
  118. LINE_END_CLIP    EQU    00020000H   
  119. LINE_Y_FLIP    EQU    00040000H   
  120. LINE_ALL_RADIAL    EQU    00080000H   
  121. LINE_DISJOINT    EQU    00100000H   
  122.  
  123. LINEINFO    STRUC
  124. linfo_ulLength    DD    ?
  125. linfo_ulType    DD    ?
  126. linfo_ulStyleMask    DD    ?
  127. linfo_cLines    DD    ?
  128. linfo_ulFGColor    DD    ?
  129. linfo_ulBGColor    DD    ?
  130. linfo_usForeROP    DW    ?
  131. linfo_usBackROP    DW    ?
  132. linfo_pDstBmapInfo    DD    ?
  133. linfo_alpkLinePack    DD    ?
  134. linfo_prclBounds    DD    ?
  135. LINEINFO    ENDS
  136.  
  137. LINEINFO2    STRUC
  138. linfo2_ulLength    DD    ?
  139. linfo2_ulType    DD    ?
  140. linfo2_ulStyleMask    DD    ?
  141. linfo2_cLines    DD    ?
  142. linfo2_ulFGColor    DD    ?
  143. linfo2_ulBGColor    DD    ?
  144. linfo2_usForeROP    DW    ?
  145. linfo2_usBackROP    DW    ?
  146. linfo2_pDstBmapInfo    DD    ?
  147. linfo2_ulFlags    DD    ?
  148. linfo2_ulXYStyleStep    DD    ?
  149. linfo2_pulStyleValue    DD    ?
  150. linfo2_ptlOrigin    DB    SIZE POINTL DUP (?)
  151. linfo2_pptlStart    DD    ?
  152. linfo2_pptlLines    DD    ?
  153. linfo2_ptlClipStart    DB    SIZE POINTL DUP (?)
  154. linfo2_ptlClipEnd    DB    SIZE POINTL DUP (?)
  155. linfo2_lClipStartError    DD    ?
  156. linfo2_prclBounds    DD    ?
  157. LINEINFO2    ENDS
  158. LINE_SOLID    EQU    01H 
  159. LINE_INVISIBLE    EQU    02H 
  160. LINE_ALTERNATE    EQU    03H 
  161. LR_ZERO    EQU    0    
  162. LR_INVERTMERGEPAT    EQU    1    
  163. LR_MASKINVERTPAT    EQU    2    
  164. LR_INVERTCOPYPAT    EQU    3    
  165. LR_MASKPATINVERT    EQU    4    
  166. LR_INVERT    EQU    5    
  167. LR_XORPAT    EQU    6    
  168. LR_INVERTMASKPAT    EQU    7    
  169. LR_MASKPAT    EQU    8    
  170. LR_INVERTXORPAT    EQU    9    
  171. LR_LEAVEALONE    EQU    10    
  172. LR_MERGEINVERTPAT    EQU    11    
  173. LR_PATCOPY    EQU    12    
  174. LR_MERGEPATINVERT    EQU    13    
  175. LR_MERGEPAT    EQU    14    
  176. LR_ONE    EQU    15    
  177.  
  178. GLYPHINFO    STRUC
  179. glphyinfo_bAspace    DB    ?
  180. glphyinfo_bBspace    DB    ?
  181. glphyinfo_bCspace    DB    ?
  182. glphyinfo_bPad    DB    ?
  183. glphyinfo_bmapinfo    DB    SIZE BMAPINFO DUP (?)
  184. GLYPHINFO    ENDS
  185.  
  186. GLBTBL    STRUC
  187. glbtbl_pGlyphInfo    DW    1 DUP (?)
  188. GLBTBL    ENDS
  189.  
  190. GHBTBL    STRUC
  191. ghbtbl_pglbTbl    DW    1 DUP (?)
  192. GHBTBL    ENDS
  193.  
  194. DEVFONTINFO    STRUC
  195. dfi_ulFntCnt    DD    ?
  196. dfi_fFontInfo    DD    ?
  197. dfi_ulEngTag    DD    ?
  198. dfi_ulUniqueFntID    DD    ?
  199. dfi_ulMaxHeight    DD    ?
  200. dfi_ulMaxWidth    DD    ?
  201. dfi_pghbTbl    DW    ?
  202. dfi_ulHalfWidth    DD    ?
  203. dfi_szGlyphlist    DB    16 DUP (?)
  204. dfi_ulReserved1    DD    ?
  205. dfi_ulReserved2    DD    ?
  206. DEVFONTINFO    ENDS
  207. GRETAG    EQU    ('G' + ('R' SHL 8 ) + ('E' SHL 16 ) + ('_' SHL 24 ))    
  208. WINTAG    EQU    ('W' + ('I' SHL 8 ) + ('N' SHL 16 ) + ('_' SHL 24 ))    
  209. DFI_FIXED_FONT    EQU    00000001H 
  210. DFI_DBCS_FONT    EQU    00000002H 
  211.  
  212. TEXTBLTINFO    STRUC
  213. tbi_ulLength    DD    ?
  214. tbi_flOptions    DD    ?
  215. tbi_lGlyphCnt    DD    ?
  216. tbi_pGlyphIndices    DD    ?
  217. tbi_ulFGMix    DD    ?
  218. tbi_ulBGMix    DD    ?
  219. tbi_ulFGColor    DD    ?
  220. tbi_ulBGColor    DD    ?
  221. tbi_pDstBmapInfo    DD    ?
  222. tbi_pDevFntInfo    DW    ?
  223. tbi_ulClpCnt    DD    ?
  224. tbi_abrClipRects    DD    ?
  225. tbi_aptlSrcOrg    DD    ?
  226. tbi_abrDst    DD    ?
  227. TEXTBLTINFO    ENDS
  228.  
  229. HWPALETTEINFO    STRUC
  230. hwpaletteinfo_ulLength    DD    ?
  231. hwpaletteinfo_fFlags    DD    ?
  232. hwpaletteinfo_ulStartIndex    DD    ?
  233. hwpaletteinfo_ulNumEntries    DD    ?
  234. hwpaletteinfo_pRGBs    DD    ?
  235. HWPALETTEINFO    ENDS
  236. PALETTE_GET    EQU    0001H 
  237. PALETTE_SET    EQU    0002H 
  238.  
  239. HWMOVEPTRIN    STRUC
  240. hwmoveptrin_ulLength    DD    ?
  241. hwmoveptrin_ptlPos    DB    SIZE POINTL DUP (?)
  242. HWMOVEPTRIN    ENDS
  243.  
  244. HWSETPTRIN    STRUC
  245. hwsetptrin_ulLength    DD    ?
  246. hwsetptrin_pbANDMask    DD    ?
  247. hwsetptrin_pbXORMask    DD    ?
  248. hwsetptrin_pbBits    DD    ?
  249. hwsetptrin_ulBpp    DD    ?
  250. hwsetptrin_ulWidth    DD    ?
  251. hwsetptrin_ulHeight    DD    ?
  252. hwsetptrin_ptlHotspot    DB    SIZE POINTL DUP (?)
  253. HWSETPTRIN    ENDS
  254.  
  255. HWSETPTROUT    STRUC
  256. hwsetptrout_ulLength    DD    ?
  257. hwsetptrout_ulStatus    DD    ?
  258. HWSETPTROUT    ENDS
  259. POINTER_VISIBLE    EQU    0001H 
  260. POINTER_COLOR    EQU    0002H 
  261. POINTER_SOFTWARE    EQU    0004H 
  262. POINTER_FAST    EQU    0008H 
  263.  
  264. HWSHOWPTRIN    STRUC
  265. hwshowptrin_ulLength    DD    ?
  266. hwshowptrin_fShow    DD    ?
  267. HWSHOWPTRIN    ENDS
  268. REQUEST_HW    EQU    1H 
  269. REQUEST_SEM_ONLY    EQU    2H 
  270.  
  271. HWREQIN    STRUC
  272. hwreqin_ulLength    DD    ?
  273. hwreqin_ulFlags    DD    ?
  274. hwreqin_cScrChangeRects    DD    ?
  275. hwreqin_arectlScreen    DD    ?
  276. HWREQIN    ENDS
  277.  
  278. HWBANKIN    STRUC
  279. hwbankin_ulLength    DD    ?
  280. hwbankin_ulFlags    DD    ?
  281. hwbankin_ulBank    DD    ?
  282. HWBANKIN    ENDS
  283. BANK_SET    EQU    1 
  284. BANK_GET    EQU    2 
  285.  
  286. HWBANKOUT    STRUC
  287. hwbankout_ulLength    DD    ?
  288. hwbankout_ulBank    DD    ?
  289. HWBANKOUT    ENDS
  290.