home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / PMDDIM.H < prev    next >
C/C++ Source or Header  |  1999-04-30  |  52KB  |  723 lines

  1. /****************************** Module Header ******************************\
  2. *
  3. * Module Name: PMDDIM.H
  4. *
  5. * OS/2 Presentation Manager entry points macros for the Graphics Engine
  6. *
  7. * Copyright (c) International Business Machines Corporation 1981, 1988-1992
  8. *
  9. * ===========================================================================
  10. *
  11. * This file is included from PMDDI.H
  12. *
  13. * ===========================================================================
  14. *
  15. * Comments at the end of each typedef line give the name tags used in
  16. * the assembler include version of this file.
  17. *
  18. * The assembler include version of this file excludes lines between NOINC
  19. * and INC comments.
  20. *
  21. \***************************************************************************/
  22.  
  23. /* NOINC */
  24. #if __IBMC__ || __IBMCPP__
  25.    #pragma info( none )
  26.    #ifndef __CHKHDR__
  27.       #pragma info( none )
  28.    #endif
  29.    #pragma info( restore )
  30. #endif
  31. #ifdef __cplusplus
  32.       extern "C" {
  33. #endif
  34. /* INC */
  35.  
  36. #define DDIM_INCLUDED
  37.  
  38. ULONG APIENTRY Gre32Entry2(ULONG,ULONG);
  39. ULONG APIENTRY Gre32Entry3(ULONG,ULONG,ULONG);
  40. ULONG APIENTRY Gre32Entry4(ULONG,ULONG,ULONG,ULONG);
  41. ULONG APIENTRY Gre32Entry5(ULONG,ULONG,ULONG,ULONG,ULONG);
  42. ULONG APIENTRY Gre32Entry6(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
  43. ULONG APIENTRY Gre32Entry7(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
  44. ULONG APIENTRY Gre32Entry8(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
  45. ULONG APIENTRY Gre32Entry9(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
  46. ULONG APIENTRY Gre32Entry10(ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG);
  47.  
  48. #ifdef INCL_GRE_ARCS
  49.    #define GreGetArcParameters(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PARCPARAMS)(b),0L,0x00004000L)
  50.    #define NGreGetArcParameters 0x00004000L
  51.    #define GreSetArcParameters(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PARCPARAMS)(b),0L,0x00004001L)
  52.    #define NGreSetArcParameters 0x00004001L
  53.    #define GreArc(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x00004002L)
  54.    #define NGreArc 0x00004002L
  55.    #define GrePartialArc(a,b,c,d,e) (INT) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(FIXED)(c),(ULONG)(FIXED)(d),(ULONG)(FIXED)(e),0L,0x00004003L)
  56.    #define NGrePartialArc 0x00004003L
  57.    #define GreFullArcInterior(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(FIXED)(b),0L,0x00004004L)
  58.    #define NGreFullArcInterior 0x00004004L
  59.    #define GreFullArcBoundary(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(FIXED)(b),0L,0x00004005L)
  60.    #define NGreFullArcBoundary 0x00004005L
  61.    #define GreFullArcBoth(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(FIXED)(b),0L,0x00004006L)
  62.    #define NGreFullArcBoth 0x00004006L
  63.    #define GreBoxInterior(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PBOXPARAMS)(b),0L,0x00004007L)
  64.    #define NGreBoxInterior 0x00004007L
  65.    #define GreBoxBoundary(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PBOXPARAMS)(b),0L,0x00004008L)
  66.    #define NGreBoxBoundary 0x00004008L
  67.    #define GreBoxBoth(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PBOXPARAMS)(b),0L,0x00004009L)
  68.    #define NGreBoxBoth 0x00004009L
  69.    #define GreBoxExclusive(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PBOXPARAMS)(b),(ULONG)(c),0L,0x00004010L)
  70.    #define NGreBoxExclusive 0x00004010L
  71.    #define GrePolyFillet(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),0L,0x0000400AL)
  72.    #define NGrePolyFillet 0x0000400AL
  73.    #define GrePolyFilletSharp(a,b,c,d) (INT) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),(ULONG)(PFIXED)(d),0L,0x0000400BL)
  74.    #define NGrePolyFilletSharp 0x0000400BL
  75.    #define GrePolySpline(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),0L,0x0000400CL)
  76.    #define NGrePolySpline 0x0000400CL
  77.    #define GreOval(a,b,c,d,e) (INT) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(FIXED)(c),(ULONG)(FIXED)(d),(ULONG)(e),0L,0x0000400DL)
  78.    #define NGreOval 0x0000400DL
  79.    /* #define GreDrawConicsInPath(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PPATH)(b),(ULONG)(PCURVE)(c),(ULONG)(LONG)(d),0L,0x0000400DL) */
  80.    /* #define NGreDrawConicsInPath 0x0000400DL                                                                                                    */
  81.    #define GreCookWholePath(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPATH)(b),0L,0x0000400EL)
  82.    #define NGreCookWholePath 0x0000400EL
  83.    #define GreCookPathCurves(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPATH)(b),(ULONG)(PPIPELINEINFO)(c),0L,0x0000400FL)
  84.    #define NGreCookPathCurves 0x0000400FL
  85.    #define GreRenderPath(a,b,c,d,e,f,g,h) (BOOL) Gre32Entry10((ULONG)(HDC)(a),(ULONG)(PPATH)(b),(ULONG)(PCURVE)(c),(ULONG)(LONG)(d),(ULONG)(LONG)(e),(ULONG)(LONG)(f),(ULONG)(PSHORTLINE)(g),(ULONG)(LONG)(h),0L,0x00004011L)
  86.    #define NGreRenderPath 0x00004011L
  87. #endif
  88. #ifdef INCL_GRE_LINES
  89.    #define GreDisjointLines(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),0L,0x00004016L)
  90.    #define NGreDisjointLines 0x00004016L
  91.    #define GreGetCurrentPosition(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x00004017L)
  92.    #define NGreGetCurrentPosition 0x00004017L
  93.    #define GreSetCurrentPosition(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x00004018L)
  94.    #define NGreSetCurrentPosition 0x00004018L
  95.    #define GrePolyLine(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),0L,0x00004019L)
  96.    #define NGrePolyLine 0x00004019L
  97.    #define GreDrawLinesInPath(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PPATH)(b),(ULONG)(PCURVE)(c),(ULONG)(LONG)(d),0L,0x0000401AL)
  98.    #define NGreDrawLinesInPath 0x0000401AL
  99.    #define GrePolyShortLine(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PSHORTLINE)(b),0L,0x0000401BL)
  100.    #define NGrePolyShortLine 0x0000401BL
  101. #endif
  102. #ifdef INCL_GRE_SCANS
  103.    #define GrePolyScanline(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PSCANDATA)(b),0L,0x0000401CL)
  104.    #define NGrePolyScanline 0x0000401CL
  105. #endif
  106. #ifdef INCL_GRE_BITMAPS
  107.    #define GreDrawBits(a,b,c,d,e,f,g) (LONG) Gre32Entry9((ULONG)(HDC)(a),(ULONG)(PBYTE)(b),(ULONG)(PBITMAPINFO2)(c),(ULONG)(LONG)(d),(ULONG)(PPOINTL)(e),(ULONG)(LONG)(f),(ULONG)(ULONG)(g),0L,0x00006022L)
  108.    #define NGreDrawBits 0x00006022L
  109.    #define GreDeviceCreateBitmap(a,b,c,d,e) (HBITMAP) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(PBITMAPINFOHEADER2)(b),(ULONG)(ULONG)(c),(ULONG)(PBYTE)(d),(ULONG)(PBITMAPINFO2)(e),0L,0x00006023L)
  110.    #define NGreDeviceCreateBitmap 0x00006023L
  111.    #define GreDeviceDeleteBitmap(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(HBITMAP)(b),(ULONG)(PDELETERETURN)(c),(ULONG)(ULONG)(d),0L,0x00004024L)
  112.    #define NGreDeviceDeleteBitmap 0x00004024L
  113.    #define GreDeviceSelectBitmap(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HBITMAP)(b),0L,0x00004025L)
  114.    #define NGreDeviceSelectBitmap 0x00004025L
  115.    #define GreBitblt(a,b,c,d,e,f,g) (INT) Gre32Entry9((ULONG)(HDC)(a),(ULONG)(HDC)(b),(ULONG)(LONG)(c),(ULONG)(PBITBLTPARAMETERS)(d),(ULONG)(LONG)(e),(ULONG)(ULONG)(f),(ULONG)(PBITBLTATTRS)(g),0L,0x00006026L)
  116.    #define NGreBitblt 0x00006026L
  117.    #define GreGetPel(a,b) (LONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x00006027L)
  118.    #define NGreGetPel 0x00006027L
  119.    #define GreSetPel(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x00004028L)
  120.    #define NGreSetPel 0x00004028L
  121.    #define GreImageData(a,b,c,d) (INT) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PBYTE)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),0L,0x00004029L)
  122.    #define NGreImageData 0x00004029L
  123.    #define GreScanLR(a,b,c,d,e,f) (INT) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(PLONG)(e),(ULONG)(PLONG)(f),0L,0x0000602AL)
  124.    #define NGreScanLR 0x0000602AL
  125.    #define GreFloodFill(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(LONG)(c),0L,0x0000602BL)
  126.    #define NGreFloodFill 0x0000602BL
  127.    #define GreSaveScreenBits(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x0000402CL)
  128.    #define NGreSaveScreenBits 0x0000402CL
  129.    #define GreRestoreScreenBits(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(LHANDLE)(b),(ULONG)(PRECTL)(c),(ULONG)(ULONG)(d),0L,0x0000402DL)
  130.    #define NGreRestoreScreenBits 0x0000402DL
  131.    #define GreDrawBorder(a,b,c,d,e,f,g) (BOOL) Gre32Entry9((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(COLOR)(e),(ULONG)(COLOR)(f),(ULONG)(ULONG)(g),0L,0x0000602EL)
  132.    #define NGreDrawBorder 0x0000602EL
  133.    #define GreDeviceSetCursor(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(HBITMAP)(c),0L,0x0000402FL)
  134.    #define NGreDeviceSetCursor 0x0000402FL
  135.    #define GreGetBitmapBits(a,b,c,d,e,f) (LONG) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(HBITMAP)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(PBYTE)(e),(ULONG)(PBITMAPINFO2)(f),0L,0x00006030L)
  136.    #define NGreGetBitmapBits 0x00006030L
  137.    #define GreSetBitmapBits(a,b,c,d,e,f) (LONG) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(HBITMAP)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(PBYTE)(e),(ULONG)(PBITMAPINFO2)(f),0L,0x00006031L)
  138.    #define NGreSetBitmapBits 0x00006031L
  139. #endif
  140. #ifdef INCL_WINPOINTERS
  141.    #define GreSetColorCursor(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTERINFO)(b),0L,0x00004032L)
  142.    #define NGreSetColorCursor 0x00004032L
  143. #endif
  144. #ifdef INCL_GRE_STRINGS
  145.    #define GreCharString(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PCH)(c),0L,0x00005035L)
  146.    #define NGreCharString 0x00005035L
  147.    #define GreCharStringPos(a,b,c,d,e,f,g,h) (INT) Gre32Entry10((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(PRECTL)(c),(ULONG)(ULONG)(d),(ULONG)(LONG)(e),(ULONG)(PCH)(f),(ULONG)(PLONG)(g),(ULONG)(PCSP_INFO)(h),0L,0x00007036L)
  148.    #define NGreCharStringPos 0x00007036L
  149.    #define GreQueryTextBox(a,b,c,d,e) (BOOL) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PCH)(c),(ULONG)(LONG)(d),(ULONG)(PPOINTL)(e),0L,0x00005037L)
  150.    #define NGreQueryTextBox 0x00005037L
  151.    #define GreQueryCharPositions(a,b,c,d,e,f,g) (ULONG) Gre32Entry9((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(ULONG)(c),(ULONG)(LONG)(d),(ULONG)(PCH)(e),(ULONG)(PLONG)(f),(ULONG)(PPOINTL)(g),0L,0x00005038L)
  152.    #define NGreQueryCharPositions 0x00005038L
  153.    #define GreQueryWidthTable(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(LONG)(c),(ULONG)(PLONG)(d),0L,0x00005039L)
  154.    #define NGreQueryWidthTable 0x00005039L
  155.    #define GreQueryCharOutline(a,b,c,d,e) (LONG)Gre32Entry7((HDC)(a),(ULONG)(b),(ULONG)(PBYTE)(c),(ULONG)(d),(ULONG)(e),0L,0x00004256L)
  156.    #define NGreQueryCharOutline 0x00004256L
  157.    #define GreQueryCharMetricsTable(a,b,c,d,e,f) (BOOL)Gre32Entry8((HDC)(a),(ULONG)(b),(ULONG)(c),(ULONG)(PCHARMETRICS)(d),(ULONG)(e),(ULONG)(f),0L,0x00004258L)
  158.    #define NGreQueryCharMetricsTable 0x00004258L
  159.    #define GreRealizeString(a,b,c,d,e,f) (LONG)Gre32Entry8((HDC)(a),(ULONG)(b),(ULONG)(c),(ULONG)(d),(ULONG)(e),(ULONG)(f),0L,0x00004257L)
  160.    #define NGreRealizeString 0x00004257L
  161.    #define GreQueryTabbedTextExtent(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(a),(ULONG)(b),(ULONG)(c),(ULONG)(d), (ULONG)(e), 0L, 0x00004269L)
  162.    #define NGreQueryTabbedTextExtent 0x00004269L
  163.    #define GreTabbedCharStringAt(a,b,c,d,e,f,g,h) (ULONG) Gre32Entry10((ULONG)(a),(ULONG)(PPOINTL)(b),(ULONG)(PRECTL)(c),(ULONG)(d), (ULONG)(e),(ULONG)(PCH)(f),(ULONG)(PLONG)(g),(ULONG)(PULONG)(h), 0L, 0x0000426AL)
  164.    #define NGreTabbedCharStringAt 0x0000426AL
  165. #endif
  166. #ifdef INCL_GRE_MARKERS
  167.    #define GrePolyMarker(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),0L,0x0000403AL)
  168.    #define NGrePolyMarker 0x0000403AL
  169. #endif
  170. #ifdef INCL_AVIOP
  171.    #define GreCharRect(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(VioPresentationSpace *)(b),(ULONG)(LPGridRectRef)(c),0L,0x0000403BL)
  172.    #define NGreCharRect 0x0000403BL
  173.    #define GreCharStr(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(VioPresentationSpace *)(b),(ULONG)(LPGridStringRef)(c),0L,0x0000403CL)
  174.    #define NGreCharStr 0x0000403CL
  175.    #define GreScrollRect(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(VioPresentationSpace *)(b),(ULONG)(LPScrollRectRef)(c),0L,0x0000403DL)
  176.    #define NGreScrollRect 0x0000403DL
  177.    #define GreUpdateCursor(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(VioPresentationSpace *)(b),0L,0x0000403EL)
  178.    #define NGreUpdateCursor 0x0000403EL
  179. #endif
  180. #ifdef INCL_WINPOINTERS
  181.    #define GreDeviceSetPointer(a,b) (LONG) Gre32Entry4((a), (PHWSETPTRIN)(b), 0L, 0x0000403FL)
  182.    #define NGreDeviceSetPointer 0x0000403FL
  183. #endif
  184. #ifdef INCL_GRE_PATHS
  185.    #define GreBeginArea(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x00004046L)
  186.    #define NGreBeginArea 0x00004046L
  187.    #define GreEndArea(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x00004047L)
  188.    #define NGreEndArea 0x00004047L
  189.    #define GreBeginPath(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PHID)(b),0L,0x00004048L)
  190.    #define NGreBeginPath 0x00004048L
  191.    #define GreEndPath(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x00004049L)
  192.    #define NGreEndPath 0x00004049L
  193.    #define GreCloseFigure(a) (BOOL) Gre32Entry3((ULONG)(HDC)(a),0L,0x0000404AL)
  194.    #define NGreCloseFigure 0x0000404AL
  195.    #define GreFillPath(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PHID)(b),(ULONG)(ULONG)(c),0L,0x0000404BL)
  196.    #define NGreFillPath 0x0000404BL
  197.    #define GreOutlinePath(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PHID)(b),(ULONG)(ULONG)(c),0L,0x0000404CL)
  198.    #define NGreOutlinePath 0x0000404CL
  199.    #define GreModifyPath(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PHID)(b),(ULONG)(ULONG)(c),0L,0x0000404DL)
  200.    #define NGreModifyPath 0x0000404DL
  201.    #define GreStrokePath(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PHID)(b),(ULONG)(ULONG)(c),0L,0x0000404EL)
  202.    #define NGreStrokePath 0x0000404EL
  203.    #define GreSelectClipPath(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PHID)(b),(ULONG)(ULONG)(c),0L,0x0000404FL)
  204.    #define NGreSelectClipPath 0x0000404FL
  205.    #define GreSavePath(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LONG)(b),0L,0x00004050L)
  206.    #define NGreSavePath 0x00004050L
  207.    #define GreRestorePath(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LONG)(b),0L,0x00004051L)
  208.    #define NGreRestorePath 0x00004051L
  209.    #define GreClip1DPath(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPATH)(b),(ULONG)(PPIPELINEINFO)(c),0L,0x00004052L)
  210.    #define NGreClip1DPath 0x00004052L
  211.    #define GreDrawRawPath(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPATH)(b),0L,0x00004053L)
  212.    #define NGreDrawRawPath 0x00004053L
  213.    #define GreDrawCookedPath(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PPATH)(b),(ULONG)(PCURVE)(c),(ULONG)(LONG)(d),0L,0x00004054L)
  214.    #define NGreDrawCookedPath 0x00004054L
  215.    #define GreAreaSetAttributes(a,b,c,d,e) (BOOL) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(PBUNDLE)(e),0L,0x00006055L)
  216.    #define NGreAreaSetAttributes 0x00006055L
  217.    #define GrePathToRegion(a,b,c) (HRGN) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PHID)(b),(ULONG)(ULONG)(c),0L,0x00004057L)
  218.    #define NGrePathToRegion 0x00004057L
  219. #endif
  220. #ifdef INCL_GRE_POLYGON
  221.    #define GrePolygonSet(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(b),(ULONG)(c),(ULONG)(PPOLYGON)(d),(ULONG)(e),0L,0x00004056L)
  222.    #define NGrePolygonSet 0x00004056L
  223.    #define GreDrawRLE(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRLEHDR)(b),0L,0x00004058L)
  224.    #define NGreDrawRLE 0x00004058L
  225.    #define GreDevicePolygonSet32(a,b) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOLYSET)(b),0L,0x00004059L)
  226.    #define NGreDevicePolygonSet 0x00004059L
  227. #endif
  228. #ifdef INCL_GRE_REGIONS
  229.    #define GreGetRegionBox(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PRECTL)(c),0L,0x0000405DL)
  230.    #define NGreGetRegionBox 0x0000405DL
  231.    #define GreGetRegionRects(a,b,c,d,e) (BOOL) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PRECTL)(c),(ULONG)(PRGNRECT)(d),(ULONG)(PRECTL)(e),0L,0x0000405EL)
  232.    #define NGreGetRegionRects 0x0000405EL
  233.    #define GreOffsetRegion(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PPOINTL)(c),0L,0x0000405FL)
  234.    #define NGreOffsetRegion 0x0000405FL
  235.    #define GrePtInRegion(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PPOINTL)(c),0L,0x00004060L)
  236.    #define NGrePtInRegion 0x00004060L
  237.    #define GreRectInRegion(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PRECTL)(c),0L,0x00004061L)
  238.    #define NGreRectInRegion 0x00004061L
  239.    #define GreCreateRectRegion(a,b,c) (HRGN) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),(ULONG)(LONG)(c),0L,0x00004062L)
  240.    #define NGreCreateRectRegion 0x00004062L
  241.    #define GreDestroyRegion(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HRGN)(b),0L,0x00004063L)
  242.    #define NGreDestroyRegion 0x00004063L
  243.    #define GreSetRectRegion(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PRECTL)(c),(ULONG)(LONG)(d),0L,0x00004064L)
  244.    #define NGreSetRectRegion 0x00004064L
  245.    #define GreCombineRegion(a,b,c,d,e) (INT) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(HRGN)(c),(ULONG)(HRGN)(d),(ULONG)(ULONG)(e),0L,0x00004065L)
  246.    #define NGreCombineRegion 0x00004065L
  247.    #define GreCombineRectRegion(a,b,c,d,e) (INT) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PRECTL)(c),(ULONG)(HRGN)(d),(ULONG)(ULONG)(e),0L,0x00004066L)
  248.    #define NGreCombineRectRegion 0x00004066L
  249.    #define GreCombineShortLineRegion(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PSHORTLINE)(c),0L,0x00004067L)
  250.    #define NGreCombineShortLineRegion 0x00004067L
  251.    #define GreEqualRegion(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(HRGN)(c),0L,0x00004068L)
  252.    #define NGreEqualRegion 0x00004068L
  253.    #define GrePaintRegion(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HRGN)(b),0L,0x00004069L)
  254.    #define NGrePaintRegion 0x00004069L
  255.    #define GreSetRegionOwner(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(ULONG)(c),0L,0x0000406AL)
  256.    #define NGreSetRegionOwner 0x0000406AL
  257.    #define GreFrameRegion(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PSIZEL)(c),0L,0x0000406BL)
  258.    #define NGreFrameRegion 0x0000406BL
  259. #endif
  260. #ifdef INCL_GRE_CLIP
  261.    #define GreGetClipBox(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x0000406EL)
  262.    #define NGreGetClipBox 0x0000406EL
  263.    #define GreGetClipRects(a,b,c,d) (INT) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),(ULONG)(PRGNRECT)(c),(ULONG)(PRECTL)(d),0L,0x0000406FL)
  264.    #define NGreGetClipRects 0x0000406FL
  265.    #define GreOffsetClipRegion(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x00004070L)
  266.    #define NGreOffsetClipRegion 0x00004070L
  267.    #define GrePtVisible(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x00004071L)
  268.    #define NGrePtVisible 0x00004071L
  269.    #define GreRectVisible(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004072L)
  270.    #define NGreRectVisible 0x00004072L
  271.    #define GreQueryClipRegion(a) (HRGN) Gre32Entry3((ULONG)(HDC)(a),0L,0x00004073L)
  272.    #define NGreQueryClipRegion 0x00004073L
  273.    #define GreSelectClipRegion(a,b,c) (INT) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PHRGN)(c),0L,0x00004074L)
  274.    #define NGreSelectClipRegion 0x00004074L
  275.    #define GreIntersectClipRectangle(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004075L)
  276.    #define NGreIntersectClipRectangle 0x00004075L
  277.    #define GreExcludeClipRectangle(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004076L)
  278.    #define NGreExcludeClipRectangle 0x00004076L
  279.    #define GreSetXformRect(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004077L)
  280.    #define NGreSetXformRect 0x00004077L
  281.    #define GreSaveRegion(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LONG)(b),0L,0x0000407BL)
  282.    #define NGreSaveRegion 0x0000407BL
  283.    #define GreRestoreRegion(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LONG)(b),0L,0x0000407CL)
  284.    #define NGreRestoreRegion 0x0000407CL
  285.    #define GreClipPathCurves(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPATH)(b),(ULONG)(PPIPELINEINFO)(c),0L,0x0000407DL)
  286.    #define NGreClipPathCurves 0x0000407DL
  287.    #define GreSelectPathRegion(a,b) (INT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HRGN)(b),0L,0x0000407EL)
  288.    #define NGreSelectPathRegion 0x0000407EL
  289.    #define GreRegionSelectBitmap(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HBITMAP)(b),0L,0x0000407FL)
  290.    #define NGreRegionSelectBitmap 0x0000407FL
  291.    #define GreCopyClipRegion(a,b,c,d) (INT) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(PRECTL)(c),(ULONG)(ULONG)(d),0L,0x00004080L)
  292.    #define NGreCopyClipRegion 0x00004080L
  293.    #define GreSetupDC(a,b,c,d,e,f) (BOOL) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(HRGN)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(PRECTL)(e),(ULONG)(ULONG)(f),0L,0x00004081L)
  294.    #define NGreSetupDC 0x00004081L
  295. #endif
  296. #ifdef INCL_GRE_XFORMS
  297.    #define GreGetPageUnits(a,b) (LONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PULONG)(b),0L,0x00004083L)
  298.    #define NGreGetPageUnits 0x00004083L
  299.    #define GreSetPageUnits(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),0L,0x00004084L)
  300.    #define NGreSetPageUnits 0x00004084L
  301.    #define GreGetModelXform(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PXFORM)(b),0L,0x00004085L)
  302.    #define NGreGetModelXform 0x00004085L
  303.    #define GreSetModelXform(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PXFORM)(b),(ULONG)(ULONG)(c),0L,0x00004086L)
  304.    #define NGreSetModelXform 0x00004086L
  305.    #define GreGetWindowViewportXform(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PXFORM)(b),0L,0x00004087L)
  306.    #define NGreGetWindowViewportXform 0x00004087L
  307.    #define GreSetWindowViewportXform(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PXFORM)(b),(ULONG)(ULONG)(c),0L,0x00004088L)
  308.    #define NGreSetWindowViewportXform 0x00004088L
  309.    #define GreGetGlobalViewingXform(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PXFORM)(b),0L,0x00004089L)
  310.    #define NGreGetGlobalViewingXform 0x00004089L
  311.    #define GreSetGlobalViewingXform(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PXFORM)(b),(ULONG)(ULONG)(c),0L,0x0000408AL)
  312.    #define NGreSetGlobalViewingXform 0x0000408AL
  313.    #define GreSaveXformData(a,b,c) (LONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PBYTE)(c),0L,0x0000408BL)
  314.    #define NGreSaveXformData 0x0000408BL
  315.    #define GreRestoreXformData(a,b,c) (LONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PBYTE)(c),0L,0x0000408CL)
  316.    #define NGreRestoreXformData 0x0000408CL
  317.    #define GreGetPageViewport(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x0000408DL)
  318.    #define NGreGetPageViewport 0x0000408DL
  319.    #define GreSetPageViewport(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),(ULONG)(ULONG)(c),0L,0x0000408EL)
  320.    #define NGreSetPageViewport 0x0000408EL
  321.    #define GreGetGraphicsField(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004091L)
  322.    #define NGreGetGraphicsField 0x00004091L
  323.    #define GreSetGraphicsField(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004092L)
  324.    #define NGreSetGraphicsField 0x00004092L
  325.    #define GreGetViewingLimits(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004093L)
  326.    #define NGreGetViewingLimits 0x00004093L
  327.    #define GreSetViewingLimits(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004094L)
  328.    #define NGreSetViewingLimits 0x00004094L
  329.    #define GreQueryViewportSize(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(LONG)(c),(ULONG)(PVIEWPORTSIZE)(d),0L,0x00004095L)
  330.    #define NGreQueryViewportSize 0x00004095L
  331.    #define GreConvert(a,b,c,d,e) (BOOL) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(LONG)(c),(ULONG)(PPOINTL)(d),(ULONG)(LONG)(e),0L,0x00004096L)
  332.    #define NGreConvert 0x00004096L
  333.    #define GreConvertPath(a,b,c,d,e,f) (BOOL) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(PPATH)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(PCURVE)(e),(ULONG)(LONG)(f),0L,0x00004097L)
  334.    #define NGreConvertPath 0x00004097L
  335.    #define GreSaveXform(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LONG)(b),0L,0x00004098L)
  336.    #define NGreSaveXform 0x00004098L
  337.    #define GreRestoreXform(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LONG)(b),0L,0x00004099L)
  338.    #define NGreRestoreXform 0x00004099L
  339.    #define GreMultiplyXforms(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PXFORM)(b),(ULONG)(PXFORM)(c),(ULONG)(ULONG)(d),0L,0x0000409AL)
  340.    #define NGreMultiplyXforms 0x0000409AL
  341.    #define GreConvertWithMatrix(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),(ULONG)(PXFORM)(d),0L,0x0000409BL)
  342.    #define NGreConvertWithMatrix 0x0000409BL
  343. #endif
  344. #ifdef INCL_GRE_DEVMISC1
  345.    #define GreDeviceGetAttributes(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(PBUNDLE)(d),0L,0x0000609DL)
  346.    #define NGreDeviceGetAttributes 0x0000609DL
  347.    #define GreDeviceSetAVIOFont2(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PFATTRS)(b),(ULONG)(PFOCAFONT)(c),(ULONG)(LCID)(d),0L,0x0000409EL)
  348.    #define NGreDeviceSetAVIOFont2 0x0000409EL
  349.    #define GreGetPairKerningTable(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PKERNINGPAIRS)(c),0L,0x000040A0L)
  350.    #define NGreGetPairKerningTable 0x000040A0L
  351.    #define GreDeviceSetAVIOFont(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PFOCAFONT)(b),(ULONG)(LCID)(c),0L,0x000040A1L)
  352.    #define NGreDeviceSetAVIOFont 0x000040A1L
  353.    #define GreDeviceSetAttributes(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(PBUNDLE)(e),0L,0x000060A2L)
  354.    #define NGreDeviceSetAttributes 0x000060A2L
  355.    #define GreDeviceSetGlobalAttribute(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),0L,0x000060A3L)
  356.    #define NGreDeviceSetGlobalAttribute 0x000060A3L
  357. #endif
  358. #ifdef INCL_GRE_DEVMISC2
  359.    #define GreNotifyClipChange(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),(ULONG)(LONG)(c),(ULONG)(ULONG)(d),0L,0x000040A4L)
  360.    #define NGreNotifyClipChange 0x000040A4L
  361.    #define GreNotifyTransformChange(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(PNOTIFYTRANSFORMDATA)(c),0L,0x000040A5L)
  362.    #define NGreNotifyTransformChange 0x000040A5L
  363.    #define GreRealizeFont(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(PFATTRS)(c),(ULONG)(PFOCAFONT)(d),0L,0x000040A6L)
  364.    #define NGreRealizeFont 0x000040A6L
  365.    #define GreErasePS(a) (BOOL) Gre32Entry3((ULONG)(HDC)(a),0L,0x000040A7L)
  366.    #define NGreErasePS 0x000040A7L
  367.    #define GreSetStyleRatio(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PBYTE)(b),0L,0x000040A8L)
  368.    #define NGreSetStyleRatio 0x000040A8L
  369.    #define GreDeviceQueryFontAttributes(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PFONTMETRICS)(c),0L,0x000040A9L)
  370.    #define NGreDeviceQueryFontAttributes 0x000040A9L
  371.    #define GreDeviceQueryFonts(a,b,c,d,e,f) (LONG) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(PSZ)(c),(ULONG)(PFONTMETRICS)(d),(ULONG)(LONG)(e),(ULONG)(PLONG)(f),0L,0x000040AAL)
  372.    #define NGreDeviceQueryFonts 0x000040AAL
  373.    #define GreDeviceInvalidateVisRegion(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PDC_BLOCK)(c),0L,0x000040ABL)
  374.    #define NGreDeviceInvalidateVisRegion 0x000040ABL
  375.    #define GreSetFontMappingFlags(a,b) (LONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LONG)(b),0L,0x00004268L)
  376.    #define NGreSetFontMappingFlags 0x00004268L
  377. #endif
  378. #ifdef INCL_GRE_PICK
  379.    #define GreGetPickWindow(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x000040ACL)
  380.    #define NGreGetPickWindow 0x000040ACL
  381.    #define GreSetPickWindow(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x000040ADL)
  382.    #define NGreSetPickWindow 0x000040ADL
  383. #endif
  384. #ifdef INCL_GRE_DEVMISC3
  385.    #define GreResetBounds(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x000040AEL)
  386.    #define NGreResetBounds 0x000040AEL
  387.    #define GreGetBoundsData(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(PRECTL)(c),0L,0x000040AFL)
  388.    #define NGreGetBoundsData 0x000040AFL
  389.    #define GreAccumulateBounds(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x000040B0L)
  390.    #define NGreAccumulateBounds 0x000040B0L
  391.    #define GreGetExtraError(a) (FIXED) Gre32Entry3((ULONG)(HDC)(a),0L,0x000040B1L)
  392.    #define NGreGetExtraError 0x000040B1L
  393.    #define GreSetExtraError(a,b) (VOID) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(FIXED)(b),0L,0x000040B2L)
  394.    #define NGreSetExtraError 0x000040B2L
  395.    #define GreGetCodePage(a) (LONG) Gre32Entry3((ULONG)(HDC)(a),0L,0x000040B3L)
  396.    #define NGreGetCodePage 0x000040B3L
  397.    #define GreSetCodePage(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x000040B4L)
  398.    #define NGreSetCodePage 0x000040B4L
  399.    #define GreLockDevice(a) (BOOL) Gre32Entry3((ULONG)(HDC)(a),0L,0x000040B5L)
  400.    #define NGreLockDevice 0x000040B5L
  401.    #define GreUnlockDevice(a) (BOOL) Gre32Entry3((ULONG)(HDC)(a),0L,0x000040B6L)
  402.    #define NGreUnlockDevice 0x000040B6L
  403.    #define GreDeath(a) (BOOL) Gre32Entry3((ULONG)(HDC)(a),0L,0x000040B7L)
  404.    #define NGreDeath 0x000040B7L
  405.    #define GreResurrection(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PBYTE)(c),0L,0x000040B8L)
  406.    #define NGreResurrection 0x000040B8L
  407.    #define GreGetDCOrigin(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x000040BAL)
  408.    #define NGreGetDCOrigin 0x000040BAL
  409.    #define GreDeviceSetDCOrigin(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x000040BBL)
  410.    #define NGreDeviceSetDCOrigin 0x000040BBL
  411.    #define GreGetLineOrigin(a,b) (LONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),0L,0x000040BCL)
  412.    #define NGreGetLineOrigin 0x000040BCL
  413.    #define GreSetLineOrigin(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(LONG)(c),0L,0x000040BDL)
  414.    #define NGreSetLineOrigin 0x000040BDL
  415. #endif
  416. #ifdef INCL_GRE_DEVMISC2
  417.    #define GreGetStyleRatio(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PBYTE)(b),0L,0x000040BEL)
  418.    #define NGreGetStyleRatio 0x000040BEL
  419. #endif
  420. #ifdef INCL_GRE_COLORTABLE
  421.    #define GreQueryColorData(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PLONG)(c),0L,0x000060C3L)
  422.    #define NGreQueryColorData 0x000060C3L
  423.    #define GreQueryLogColorTable(a,b,c,d,e) (LONG) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(PLONG)(e),0L,0x000060C4L)
  424.    #define NGreQueryLogColorTable 0x000060C4L
  425.    #define GreCreateLogColorTable(a,b,c,d,e,f) (BOOL) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(LONG)(d),(ULONG)(LONG)(e),(ULONG)(PLONG)(f),0L,0x000060C5L)
  426.    #define NGreCreateLogColorTable 0x000060C5L
  427.    #define GreRealizeColorTable(a) (BOOL) Gre32Entry3((ULONG)(HDC)(a),0L,0x000060C6L)
  428.    #define NGreRealizeColorTable 0x000060C6L
  429.    #define GreUnrealizeColorTable(a) (BOOL) Gre32Entry3((ULONG)(HDC)(a),0L,0x000060C7L)
  430.    #define NGreUnrealizeColorTable 0x000060C7L
  431.    #define GreQueryRealColors(a,b,c,d,e) (LONG) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(LONG)(c),(ULONG)(LONG)(d),(ULONG)(PLONG)(e),0L,0x000040C8L)
  432.    #define NGreQueryRealColors 0x000040C8L
  433.    #define GreQueryNearestColor(a,b,c) (LONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(COLOR)(c),0L,0x000040C9L)
  434.    #define NGreQueryNearestColor 0x000040C9L
  435.    #define GreQueryColorIndex(a,b,c) (LONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(COLOR)(c),0L,0x000060CAL)
  436.    #define NGreQueryColorIndex 0x000060CAL
  437.    #define GreQueryRGBColor(a,b,c) (LONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(COLOR)(c),0L,0x000060CBL)
  438.    #define NGreQueryRGBColor 0x000060CBL
  439. #endif
  440. #ifdef INCL_GRE_DEVICE
  441.    #ifndef NGreQueryDevFntMetrics
  442.       #define GreQueryDeviceFontMetrics(a,b,c) (ULONG)Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(LONG)(c),0L,0x000060CCL)
  443.       #define NGreQueryDevFntMetrics 0x000060CCL
  444.    #endif
  445. #endif
  446. #ifdef INCL_GRE_PAX
  447.    #define GreDeviceEnableYInversion(a,b) (ULONG) Gre32Entry4((ULONG)(a),(LONG)(b),0L,0x000040CDL)
  448.    #define NGreDeviceEnableYInversion 0x000040CDL
  449. #endif
  450. #ifdef INCL_GRE_DEVICE
  451.    #define GreQueryDeviceBitmaps(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PBITMAPFORMAT)(b),(ULONG)(LONG)(c),0L,0x000040D0L)
  452.    #define NGreQueryDeviceBitmaps 0x000040D0L
  453.    #define GreQueryDeviceCaps(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PLONG)(c),(ULONG)(LONG)(d),0L,0x000040D1L)
  454.    #define NGreQueryDeviceCaps 0x000040D1L
  455.    #define GreEscape(a,b,c,d,e,f) (LONG) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(LONG)(c),(ULONG)(PBYTE)(d),(ULONG)(PLONG)(e),(ULONG)(PBYTE)(f),0L,0x000040D2L)
  456.    #define NGreEscape 0x000040D2L
  457.    #define GreQueryHardcopyCaps(a,b,c,d) (LONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(LONG)(c),(ULONG)(PHCINFO)(d),0L,0x000040D3L)
  458.    #define NGreQueryHardcopyCaps 0x000040D3L
  459.    #define GreQueryDevResource2(a,b,c) (PVOID) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),0L,0x000040D4L)
  460.    #define NGreQueryDevResource2 0x000040D4L
  461.    #define GreUnloadPD(a,b) (PVOID) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x0000026EL)
  462.    #define NGreUnloadPD 0x0000026EL
  463. #endif
  464. #ifdef INCL_GRE_SCREEN
  465.    #define GreOpenScreenChangeArea(a) (ULONG) Gre32Entry3((ULONG)(HDC)(a),0L,0x00004012L)
  466.    #define NGreOpenScreenChangeArea 0x00004012L
  467.    #define GreGetScreenChangeArea(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),0L,0x00004013L)
  468.    #define NGreGetScreenChangeArea 0x00004013L
  469.    #define GreCloseScreenChangeArea(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x00004014L)
  470.    #define NGreCloseScreenChangeArea 0x00004014L
  471.    #define GreGetScreenBits(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(ULONG)(e),0L,0x0000401DL)
  472.    #define NGreGetScreenBits 0x0000401DL
  473.    #define GreSetScreenBits(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),0L,0x0000401EL)
  474.    #define NGreSetScreenBits 0x0000401EL
  475. #endif
  476. #ifdef INCL_GRE_PALETTE
  477.    #define GreDeviceCreatePalette(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPALETTEINFO)(b),(ULONG)(HDEVPAL)(c),0L,0x000040D5L)
  478.    #define NGreDeviceCreatePalette 0x000040D5L
  479.    #define GreDeviceDeletePalette(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HDEVPAL)(b),0L,0x000040D6L)
  480.    #define NGreDeviceDeletePalette 0x000040D6L
  481.    #define GreDeviceSetPaletteEntries(a,b,c,d,e,f) (ULONG) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(HDEVPAL)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(ULONG)(e),(ULONG)(PULONG)(f),0L,0x000040D7L)
  482.    #define NGreDeviceSetPaletteEntries 0x000040D7L
  483.    #define GreDeviceAnimatePalette(a,b,c,d,e,f) (ULONG) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(HDEVPAL)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(ULONG)(e),(ULONG)(PULONG)(f),0L,0x000040D8L)
  484.    #define NGreDeviceAnimatePalette 0x000040D8L
  485.    #define GreDeviceResizePalette(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HDEVPAL)(b),(ULONG)(ULONG)(c),0L,0x000040D9L)
  486.    #define NGreDeviceResizePalette 0x000040D9L
  487.    #define GreRealizePalette(a,b,c) (ULONG) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(PULONG)(c),0L,0x000040DAL)
  488.    #define NGreRealizePalette 0x000040DAL
  489.    #define GreQueryHWPaletteInfo(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(PULONG)(d),0L,0x000040DBL)
  490.    #define NGreQueryHWPaletteInfo 0x000040DBL
  491.    #define GreUpdateColors(a) (ULONG) Gre32Entry3((ULONG)(HDC)(a),0L,0x000040DCL)
  492.    #define NGreUpdateColors 0x000040DCL
  493.    #define GreQueryPaletteRealization(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(PULONG)(d),0L,0x000040DDL)
  494.    #define NGreQueryPaletteRealization 0x000040DDL
  495.    #define GreGetVisRects(a,b,c,d) (INT) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),(ULONG)(PRGNRECT)(c),(ULONG)(PRECTL)(d),0L,0x000040DEL)
  496.    #define NGreGetVisRects 0x000040DEL
  497.    #define GreQueryNearestPaletteIndex(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRGB2)(b),0L,0x00000267L)
  498.    #define NGreQueryNearestPaletteIndex 0x00000267L
  499. #endif
  500. #ifdef INCL_GRE_DCS
  501.    #define GreOpenDC(a,b,c,d,e) (HDC) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(PSZ)(c),(ULONG)(LONG)(d),(ULONG)(PDEVOPENDATA)(e),0L,0x00000200L)
  502.    #define NGreOpenDC 0x00000200L
  503.    #define GreCloseDC(a) (BOOL) Gre32Entry3((ULONG)(HDC)(a),0L,0x00004201L)
  504.    #define NGreCloseDC 0x00004201L
  505.    #define GreResetDC(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x00004202L)
  506.    #define NGreResetDC 0x00004202L
  507.    #define GreResetDC2(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x0000426BL)
  508.    #define NGreResetDC2 0x0000426BL
  509.    #define GreGetHandle(a,b) (LONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x00004203L)
  510.    #define NGreGetHandle 0x00004203L
  511.    #define GreSetHandle(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LHANDLE)(b),(ULONG)(ULONG)(c),0L,0x00004204L)
  512.    #define NGreSetHandle 0x00004204L
  513.    #define GreGetProcessControl(a) (LONG) Gre32Entry3((ULONG)(HDC)(a),0L,0x00004205L)
  514.    #define NGreGetProcessControl 0x00004205L
  515.    #define GreSetProcessControl(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),0L,0x00004206L)
  516.    #define NGreSetProcessControl 0x00004206L
  517.    #define GreSaveDC(a) (LONG) Gre32Entry3((ULONG)(HDC)(a),0L,0x00004207L)
  518.    #define NGreSaveDC 0x00004207L
  519.    #define GreRestoreDC(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LONG)(b),0L,0x00004208L)
  520.    #define NGreRestoreDC 0x00004208L
  521.    #define GreQueryDeviceNames(a,b,c,d,e,f) (BOOL) Gre32Entry8((ULONG)(PSZ)(a),(ULONG)(PLONG)(b),(ULONG)(PSTR32)(c),(ULONG)(PSTR64)(d),(ULONG)(PLONG)(e),(ULONG)(PSTR16)(f),0L,0x00000209L)
  522.    #define NGreQueryDeviceNames 0x00000209L
  523.    #define GreQueryEngineVersion() (LONG) Gre32Entry2(0L,0x0000020AL)
  524.    #define NGreQueryEngineVersion 0x0000020AL
  525.    #define GreSetDCOwner(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x0000420BL)
  526.    #define NGreSetDCOwner 0x0000420BL
  527. #endif
  528. #ifdef INCL_GRE_DEVSUPPORT
  529.    #define GreQueryBitmapSelection(a) (HDC) Gre32Entry3((ULONG)(HBITMAP)(a),0L,0x0000020CL)
  530.    #define NGreQueryBitmapSelection 0x0000020CL
  531.    #define GreGetBitmapInfoHeader(a,b) (BOOL) Gre32Entry4((ULONG)(HBITMAP)(a),(ULONG)(PBITMAPINFOHEADER2)(b),0L,0x0000020DL)
  532.    #define NGreGetBitmapInfoHeader 0x0000020DL
  533.    #define GreConvertBitmapData(a,b,c,d,e,f,g) (ULONG) Gre32Entry9((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(PBITMAPINFO2)(d),(ULONG)(PBYTE)(e),(ULONG)(PBITMAPINFO2)(f),(ULONG)(PBYTE)(g),0L,0x0000420EL)
  534.    #define NGreConvertBitmapData 0x0000420EL
  535.    #define GreInvalidateVisRegion(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PDC_BLOCK)(c),0L,0x0000420FL)
  536.    #define NGreInvalidateVisRegion 0x0000420FL
  537.    #define GreCreateBitmap(a,b,c,d,e) (HBITMAP) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(PBITMAPINFOHEADER2)(b),(ULONG)(ULONG)(c),(ULONG)(PBYTE)(d),(ULONG)(PBITMAPINFO2)(e),0L,0x00004210L)
  538.    #define NGreCreateBitmap 0x00004210L
  539.    #define GreDeleteBitmap(a) (BOOL) Gre32Entry3((ULONG)(HBITMAP)(a),0L,0x00000211L)
  540.    #define NGreDeleteBitmap 0x00000211L
  541.    #define GreSelectBitmap(a,b) (HBITMAP) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HBITMAP)(b),0L,0x00004212L)
  542.    #define NGreSelectBitmap 0x00004212L
  543.    #define GreGetBitmapParameters(a,b) (BOOL) Gre32Entry4((ULONG)(HBITMAP)(a),(ULONG)(PBITMAPINFOHEADER)(b),0L,0x00000213L)
  544.    #define NGreGetBitmapParameters 0x00000213L
  545.    #define GreGetBitmapDimension(a,b) (BOOL) Gre32Entry4((ULONG)(HBITMAP)(a),(ULONG)(PSIZEL)(b),0L,0x00000214L)
  546.    #define NGreGetBitmapDimension 0x00000214L
  547.    #define GreSetBitmapDimension(a,b) (BOOL) Gre32Entry4((ULONG)(HBITMAP)(a),(ULONG)(PSIZEL)(b),0L,0x00000215L)
  548.    #define NGreSetBitmapDimension 0x00000215L
  549.    #define GreSetCursor(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(PPOINTL)(b),(ULONG)(HBITMAP)(c),0L,0x00004216L)
  550.    #define NGreSetCursor 0x00004216L
  551.    #define GreGetAttributes(a,b,c,d) (LONG) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(PBUNDLE)(d),0L,0x00004217L)
  552.    #define NGreGetAttributes 0x00004217L
  553.    #define GreSetAttributes(a,b,c,d,e) (BOOL) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(PBUNDLE)(e),0L,0x00004218L)
  554.    #define NGreSetAttributes 0x00004218L
  555.    #define GreSetGlobalAttribute(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),0L,0x00004219L)
  556.    #define NGreSetGlobalAttribute 0x00004219L
  557.    #define GreSetBitmapOwner(a,b) (BOOL) Gre32Entry4((ULONG)(HBITMAP)(a),(ULONG)(ULONG)(b),0L,0x0000021AL)
  558.    #define NGreSetBitmapOwner 0x0000021AL
  559.    #define GreGetDefaultAttributes(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(PBUNDLE)(d),0L,0x0000421BL)
  560.    #define NGreGetDefaultAttributes 0x0000421BL
  561.    #define GreSetDefaultAttributes(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(PBUNDLE)(d),0L,0x0000421CL)
  562.    #define NGreSetDefaultAttributes 0x0000421CL
  563.    #define GreGetDefaultArcParameters(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PARCPARAMS)(b),0L,0x0000421DL)
  564.    #define NGreGetDefaultArcParameters 0x0000421DL
  565.    #define GreSetDefaultArcParameters(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PARCPARAMS)(b),0L,0x0000421EL)
  566.    #define NGreSetDefaultArcParameters 0x0000421EL
  567.    #define GreGetDefaultViewingLimits(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x0000421FL)
  568.    #define NGreGetDefaultViewingLimits 0x0000421FL
  569.    #define GreSetDefaultViewingLimits(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(PRECTL)(b),0L,0x00004220L)
  570.    #define NGreSetDefaultViewingLimits 0x00004220L
  571.    #define GreInitializeAttributes(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x00004221L)
  572.    #define NGreInitializeAttributes 0x00004221L
  573. #endif
  574. #ifdef INCL_GRE_SETID
  575.    #define GreDeleteSetId(a,b) (BOOL) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LCID)(b),0L,0x00004222L)
  576.    #define NGreDeleteSetId 0x00004222L
  577.    #define GreQueryNumberSetIds(a,b) (LONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(ULONG)(b),0L,0x00004223L)
  578.    #define NGreQueryNumberSetIds 0x00004223L
  579.    #define GreQuerySetIds(a,b,c,d,e,f) (BOOL) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PLONG)(c),(ULONG)(PSTR8)(d),(ULONG)(PLCID)(e),(ULONG)(ULONG)(f),0L,0x00004224L)
  580.    #define NGreQuerySetIds 0x00004224L
  581. #endif
  582. #ifdef INCL_GRE_LCID
  583.    #define GreQueryBitmapHandle(a,b) (HBITMAP) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LCID)(b),0L,0x00000225L)
  584.    #define NGreQueryBitmapHandle 0x00000225L
  585.    #define GreSetBitmapID(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(HBITMAP)(b),(ULONG)(LCID)(c),0L,0x00004226L)
  586.    #define NGreSetBitmapID 0x00004226L
  587.    #define GreCopyDCLoadData(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(HDC)(c),0L,0x00004227L)
  588.    #define NGreCopyDCLoadData 0x00004227L
  589. #endif
  590. #ifdef INCL_GRE_SETID
  591.    #define GreQuerySetIdUsage(a,b) (LONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LCID)(b),0L,0x00004228L)
  592.    #define NGreQuerySetIdUsage 0x00004228L
  593. #endif
  594. #ifdef INCL_GRE_FONTS
  595.    #define GreQueryFullFontFileDescriptions(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(PSZ)(a),(ULONG)(PULONG)(b),(ULONG)(PVOID)(c),(ULONG)(PLONG)(d),0L,0x0000022BL)
  596.    #define NGreQueryFullFontFileDescriptions 0x0000022BL
  597.    #define GreQueryLogicalFont(a,b,c,d,e) (BOOL) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(LCID)(b),(ULONG)(PSTR8)(c),(ULONG)(PFATTRS)(d),(ULONG)(LONG)(e),0L,0x0000422CL)
  598.    #define NGreQueryLogicalFont 0x0000422CL
  599.    #define GreCreateLogicalFont(a,b,c,d) (BOOL) Gre32Entry6((ULONG)(HDC)(a),(ULONG)(LCID)(b),(ULONG)(PSTR8)(c),(ULONG)(PFATTRS)(d),0L,0x0000422DL)
  600.    #define NGreCreateLogicalFont 0x0000422DL
  601.    #define GreLoadFont(a) (BOOL) Gre32Entry3((ULONG)(PSZ)(a),0L,0x0000022EL)
  602.    #define NGreLoadFont 0x0000022EL
  603.    #define GreUnloadFont(a) (BOOL) Gre32Entry3((ULONG)(PSZ)(a),0L,0x0000022FL)
  604.    #define NGreUnloadFont 0x0000022FL
  605.    #define GreQueryFonts(a,b,c,d,e,f) (LONG) Gre32Entry8((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(PSZ)(c),(ULONG)(PFONTMETRICS)(d),(ULONG)(LONG)(e),(ULONG)(PLONG)(f),0L,0x00004230L)
  606.    #define NGreQueryFonts 0x00004230L
  607.    #define GreQueryFontAttributes(a,b,c) (BOOL) Gre32Entry5((ULONG)(HDC)(a),(ULONG)(LONG)(b),(ULONG)(PFONTMETRICS)(c),0L,0x00004231L)
  608.    #define NGreQueryFontAttributes 0x00004231L
  609.    #define GreInstallIFI(a,b,c,d) (LONG) Gre32Entry6((ULONG)(ULONG)(a),(ULONG)(PSZ)(b),(ULONG)(PSZ)(c),(ULONG)(PSZ)(d),0L,0x00000232L)
  610.    #define NGreInstallIFI 0x00000232L
  611.    #define GreLoadPublicFont(a) (BOOL) Gre32Entry3((ULONG)(PSZ)(a),0L,0x00000233L)
  612.    #define NGreLoadPublicFont 0x00000233L
  613.    #define GreUnLoadPublicFont(a) (BOOL) Gre32Entry3((ULONG)(PSZ)(a),0L,0x00000234L)
  614.    #define NGreUnLoadPublicFont 0x00000234L
  615.    #define GreQueryCodePageVector(a) (ULONG) Gre32Entry3((ULONG)(ULONG)(a),0L,0x00000235L)
  616.    #define NGreQueryCodePageVector 0x00000235L
  617.    #define GreQueryFontFileDescriptions(a,b,c) (ULONG) Gre32Entry5((ULONG)(PSZ)(a),(ULONG)(PLONG)(b),(ULONG)(PFFDESCS)(c),0L,0x00000236L)
  618.    #define NGreQueryFontFileDescriptions 0x00000236L
  619.    #define GreQueryFaceString(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(PSZ)(b),(ULONG)(PFACENAMEDESC)(c),(ULONG)(ULONG)(d),(ULONG)(PSZ)(e),0L,0x00004237L)
  620.    #define NGreQueryFaceString 0x00004237L
  621.    #define GreQueryFontAction(a) (ULONG) Gre32Entry3((ULONG)(ULONG)(a),0L,0x00000238L)
  622.    #define NGreQueryFontAction 0x00000238L
  623.    #define GreQueryCodePageObject(a,b,c) (ULONG)Gre32Entry5((ULONG)(a),(ULONG)(PSZ)(b),(ULONG)(PCODEPAGEOBJECT *)(c),0L,0x00000255L)
  624.    #define NGreQueryCodePageObject 0x00000255L
  625. #endif
  626. #ifdef INCL_GRE_JOURNALING
  627.    #define GreAccumulateJournalFile(a) (ULONG) Gre32Entry3((ULONG)(ULONG)(a),0L,0x00000239L)
  628.    #define NGreAccumulateJournalFile 0x00000239L
  629.    #define GreCreateJournalFile(a,b,c) (ULONG) Gre32Entry5((ULONG)(PSZ)(a),(ULONG)(ULONG)(b),(ULONG)(LONG)(c),0L,0x0000023AL)
  630.    #define NGreCreateJournalFile 0x0000023AL
  631.    #define GreDeleteJournalFile(a) (ULONG) Gre32Entry3((ULONG)(LHANDLE)(a),0L,0x0000023BL)
  632.    #define NGreDeleteJournalFile 0x0000023BL
  633.    #define GreStartJournalFile(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LHANDLE)(b),0L,0x0000023CL)
  634.    #define NGreStartJournalFile 0x0000023CL
  635.    #define GreStopJournalFile(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LHANDLE)(b),0L,0x0000023DL)
  636.    #define NGreStopJournalFile 0x0000023DL
  637.    #define GrePlayJournalFile(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(LHANDLE)(b),0L,0x0000023EL)
  638.    #define NGrePlayJournalFile 0x0000023EL
  639.    #define GreOpenJournalFile(a,b,c) (ULONG) Gre32Entry5((ULONG)(PSZ)(a),(ULONG)(ULONG)(b),(ULONG)(LONG)(c),0L,0x0000023FL)
  640.    #define NGreOpenJournalFile 0x0000023FL
  641. #endif
  642. #ifdef INCL_GRE_PALETTE
  643.    #define GreCreatePalette(a,b,c,d) (HPAL) Gre32Entry6((ULONG)(ULONG)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(PULONG)(d),0L,0x00000240L)
  644.    #define NGreCreatePalette 0x00000240L
  645.    #define GreDeletePalette(a) (ULONG) Gre32Entry3((ULONG)(HPAL)(a),0L,0x00000241L)
  646.    #define NGreDeletePalette 0x00000241L
  647.    #define GreSelectPalette(a,b) (ULONG) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HPAL)(b),0L,0x00004242L)
  648.    #define NGreSelectPalette 0x00004242L
  649.    #define GreSetPaletteEntries(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HPAL)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(PULONG)(e),0L,0x00000243L)
  650.    #define NGreSetPaletteEntries 0x00000243L
  651.    #define GreAnimatePalette(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HPAL)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(PULONG)(e),0L,0x00000244L)
  652.    #define NGreAnimatePalette 0x00000244L
  653.    #define GreQueryPalette(a) (ULONG) Gre32Entry3((ULONG)(HDC)(a),0L,0x00004245L)
  654.    #define NGreQueryPalette 0x00004245L
  655.    #define GreQueryPaletteInfo(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HPAL)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(PULONG)(e),0L,0x00000246L)
  656.    #define NGreQueryPaletteInfo 0x00000246L
  657.    #define GreSetPaletteOwner(a,b) (BOOL) Gre32Entry4((ULONG)(HPAL)(a),(ULONG)(ULONG)(b),0L,0x00000247L)
  658.    #define NGreSetPaletteOwner 0x00000247L
  659.    #define GreResizePalette(a,b) (ULONG) Gre32Entry4((ULONG)(HPAL)(a),(ULONG)(ULONG)(b),0L,0x00000248L)
  660.    #define NGreResizePalette 0x00000248L
  661.    #define GreQueryDefaultPaletteInfo(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HDC)(a),(ULONG)(ULONG)(b),(ULONG)(ULONG)(c),(ULONG)(ULONG)(d),(ULONG)(PULONG)(e),0L,0x00004249L)
  662.    #define NGreQueryDefaultPaletteInfo 0x00004249L
  663. #endif
  664. #ifdef INCL_GRE_HFONT
  665.    #define GreCreateFontHandle(a,b,c) (HFONT) Gre32Entry5((ULONG)(ULONG)(a),(ULONG)(PSTR8)(b),(ULONG)(PFATTRS)(c),0L,0x00000250L)
  666.    #define NGreCreateFontHandle 0x00000250L
  667.    #define GreQueryFontHandle(a,b,c,d,e) (ULONG) Gre32Entry7((ULONG)(HFONT)(a),(ULONG)(PULONG)(b),(ULONG)(PSTR8)(c),(ULONG)(PFATTRS)(d),(ULONG)(ULONG)(e),0L,0x00000251L)
  668.    #define NGreQueryFontHandle 0x00000251L
  669.    #define GreSelectFontHandle(a,b) (HFONT) Gre32Entry4((ULONG)(HDC)(a),(ULONG)(HFONT)(b),0L,0x00004252L)
  670.    #define NGreSelectFontHandle 0x00004252L
  671.    #define GreDeleteFontHandle(a) (ULONG) Gre32Entry3((ULONG)(HFONT)(a),0L,0x00000253L)
  672.    #define NGreDeleteFontHandle 0x00000253L
  673.    #define GreSetFontHandleOwner(a,b) (ULONG) Gre32Entry4((ULONG)(HFONT)(a),(ULONG)(ULONG)(b),0L,0x00000254L)
  674.    #define NGreSetFontHandleOwner 0x00000254L
  675. #endif
  676. #ifdef INCL_GRE_INKPATH
  677.    #define NGreBeginInkPath 0x00004259L
  678.    #define GreBeginInkPath(a,b,c) (BOOL) Gre32Entry5((HDC)(a),(LONG)(b),(ULONG)(c),0L,NGreBeginInkPath)
  679.    #define NGreEndInkPath 0x0000425AL
  680.    #define GreEndInkPath(a,b) (BOOL) Gre32Entry4((HDC)(a),(ULONG)(b),0L,NGreEndInkPath)
  681.    #define NGreStrokeInkPath 0x0000425BL
  682.    #define GreStrokeInkPath(a,b,c,d,e) (BOOL) Gre32Entry7((HDC)(a),(LONG)(b),(LONG)(c),(PPOINTL)(d),(ULONG)(e),0L,NGreStrokeInkPath)
  683. #endif
  684. #ifdef INCL_GRE_PAX
  685.    #define GrePaxGetPolyFillMode(a) (ULONG) Gre32Entry3((ULONG)(a),0L,0x0000425CL)
  686.    #define NGrePaxGetPolyFillMode  0x0000425CL
  687.    #define GrePaxSetPolyFillMode(a,b) (ULONG) Gre32Entry4((ULONG)(a),(ULONG)(b),0L,0x0000425DL)
  688.    #define NGrePaxSetPolyFillMode  0x0000425DL
  689.    #define GreQueryMitreLimit(a) (FIXED) Gre32Entry3((ULONG)(a),0L,0x0000425EL)
  690.    #define NGreQueryMitreLimit  0x0000425EL
  691.    #define GreSetMitreLimit(a,b) (FIXED) Gre32Entry4((ULONG)(a),(ULONG)(b),0L,0x0000425FL)
  692.    #define NGreSetMitreLimit  0x0000425FL
  693.    #define GreEnableYInversion(a,b) (ULONG) Gre32Entry4((ULONG)(a),(LONG)(b),0L,0x00004260L)
  694.    #define NGreEnableYInversion 0x00004260L
  695.    #define GreQueryYInversion(a) (ULONG) Gre32Entry3((ULONG)(a),0L,0x00004261L)
  696.    #define NGreQueryYInversion 0x00004261L
  697.    #define GreQueryPath(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(a),(ULONG)(b),(ULONG)(c),(ULONG)(d),0L,0x00004262L)
  698.    #define NGreQueryPath  0x00004262L
  699.    #define GreAllocateDCData(a,b) (ULONG) Gre32Entry4((ULONG)(a),(ULONG)(b),0L,0x00004263L)
  700.    #define NGreAllocateDCData  0x00004263L
  701.    #define GreQueryDCData(a) (ULONG) Gre32Entry3((ULONG)(a),0L,0x00004264L)
  702.    #define NGreQueryDCData  0x00004264L
  703.    #define GreQueryRasterCaps(a) (ULONG) Gre32Entry3((ULONG)(a), 0L, 0x00000265L)
  704.    #define NGreQueryRasterCaps 0x00000265L
  705.    #define GrePaxStrokeAndFillPath(a,b,c,d) (ULONG) Gre32Entry6((ULONG)(a),(ULONG)(b),(ULONG)(c),(ULONG)(d), 0L, 0x00004266L)
  706.    #define NGrePaxStrokeAndFillPath 0x00004266L
  707. #endif
  708.  
  709. /* NOINC */
  710. #ifdef __cplusplus
  711.         }
  712. #endif
  713. #if __IBMC__ || __IBMCPP__
  714.    #pragma info( none )
  715.    #ifndef __CHKHDR__
  716.       #pragma info( restore )
  717.    #endif
  718.    #pragma info( restore )
  719. #endif
  720. /* INC */
  721.  
  722. /**************************** end of file **********************************/
  723.