ifdef INCL_GREALL
INCL_GRE_ARCS	EQU	1

INCL_GRE_BITMAPS	EQU	1

INCL_GRE_CLIP	EQU	1

INCL_GRE_COLORTABLE	EQU	1

INCL_GRE_DCS	EQU	1

INCL_GRE_PAX	EQU	1

INCL_GRE_DEVICE	EQU	1

INCL_GRE_DEVMISC	EQU	1

INCL_GRE_DEVSUPPORT	EQU	1

INCL_GRE_FONTS	EQU	1

INCL_GRE_INKPATH	EQU	1

INCL_GRE_JOURNALING	EQU	1

INCL_GRE_LCID	EQU	1

INCL_GRE_LINES	EQU	1

INCL_GRE_MARKERS	EQU	1

INCL_GRE_PALETTE	EQU	1

INCL_GRE_PATHS	EQU	1

INCL_GRE_PICK	EQU	1

INCL_GRE_POLYGON	EQU	1

INCL_GRE_REGIONS	EQU	1

INCL_GRE_SCANS	EQU	1

INCL_GRE_SCREEN	EQU	1

INCL_GRE_SETID	EQU	1

INCL_GRE_STRINGS	EQU	1

INCL_GRE_XFORMS	EQU	1

endif 
ifdef INCL_GRE_DEVMISC
INCL_GRE_DEVMISC1	EQU	1

INCL_GRE_DEVMISC2	EQU	1

INCL_GRE_DEVMISC3	EQU	1

endif  
ifdef INCL_VMANDDI
INCL_DDIBUNDLES	EQU	1

endif  
MAXTABLEENTRIES	EQU	223 
NUMBEROFMAJORFUN	EQU	MAXTABLEENTRIES
NUMBEROFMINORFUN	EQU	86 

DISPATCHER	STRUC
dr_pfnTblEntry	DD	MAXTABLEENTRIES DUP (?)
DISPATCHER	ENDS

FUNINFOTABLE	STRUC
fit_FunInfo_00	DB	NUMBEROFMAJORFUN DUP (?)
fit_FunInfo_02	DB	NUMBEROFMINORFUN DUP (?)
FUNINFOTABLE	ENDS

RECTS	STRUC
rcs_pts1	DB	SIZE POINTS DUP (?)
rcs_pts2	DB	SIZE POINTS DUP (?)
RECTS	ENDS

POINTFX	STRUC
ptfx_x	DD	?
ptfx_y	DD	?
POINTFX	ENDS

RECTFX	STRUC
rcfx_ptfx1	DB	SIZE POINTFX DUP (?)
rcfx_ptfx2	DB	SIZE POINTFX DUP (?)
RECTFX	ENDS

XFORM	STRUC
xform_fxM11	DD	?
xform_fxM12	DD	?
xform_fxM21	DD	?
xform_fxM22	DD	?
xform_lM41	DD	?
xform_lM42	DD	?
XFORM	ENDS
ifdef INCL_GRE_HFONT
endif 
ifdef INCL_DDICOMFLAGS
COM_DRAW16	EQU	00000001H 
COM_BOUND16	EQU	00000002H 
COM_CORRELATE16	EQU	00000004H 
COM_ALT_BOUND16	EQU	00000008H 
COM_AREA16	EQU	00000010H 
COM_PATH16	EQU	00000020H 
COM_TRANSFORM16	EQU	00000040H 
COM_RECORDING16	EQU	00000080H 
COM_DEVICE16	EQU	00000100H 
COM_SCR_BOUND16	EQU	00000200H 
COM_PRECLIP16	EQU	04000000H 
COM_DRAW	EQU	00010000H 
COM_BOUND	EQU	00020000H 
COM_CORRELATE	EQU	00040000H 
COM_ALT_BOUND	EQU	00080000H 
COM_AREA	EQU	00100000H 
COM_PATH	EQU	00200000H 
COM_TRANSFORM	EQU	00400000H 
COM_RECORDING	EQU	00800000H 
COM_DEVICE	EQU	01000000H 
COM_SCR_BOUND	EQU	02000000H 
COM_PRECLIP	EQU	04000000H 
endif 
ifdef INCL_GRE_ARCS

BOXPARAMS	STRUC
boxp_ptl	DB	SIZE POINTL DUP (?)
boxp_sizl	DB	SIZE SIZEL DUP (?)
BOXPARAMS	ENDS
endif 
ifdef INCL_GRE_CLIP
COPYCRGN_ALLINTERSECT	EQU	0 
COPYCRGN_VISRGN	EQU	1 
COPYCRGN_CLIPRGN	EQU	2 
SETUPDC_VISRGN	EQU	00000001H 
SETUPDC_ORIGIN	EQU	00000002H 
SETUPDC_ACCUMBOUNDSON	EQU	00000004H 
SETUPDC_ACCUMBOUNDSOFF	EQU	00000008H 
SETUPDC_RECALCCLIP	EQU	00000010H 
SETUPDC_SETOWNER	EQU	00000020H 
SETUPDC_CLEANDC	EQU	00000040H 
endif 
ifdef INCL_GRE_XFORMS

VIEWPORTSIZE	STRUC
vs_cx	DD	?
vs_cy	DD	?
VIEWPORTSIZE	ENDS
endif 
ifdef INCL_GRE_DEVSUPPORT
INAT_DEFAULTATTRIBUTES	EQU	1 
INAT_CURRENTATTRIBUTES	EQU	2 

DC_BLOCK	STRUC
ivr_hdc	DD	?
ivr_hddc	DD	?
DC_BLOCK	ENDS
CAP_YINVERT_NONE	EQU	00000000H 
CAP_YINVERT_CHARSTRINGPOS	EQU	00000001H 
CAP_YINVERT_CHARSTRING	EQU	00000002H 
CAP_YINVERT_QUERYTEXTBOX	EQU	00000004H 
CAP_YINVERT_QUERYCHARPOSITIONS	EQU	00000008H 
CAP_YINVERT_DEVICEQUERYFONTS	EQU	00000010H 
CAP_YINVERT_DONTCARE	EQU	80000000H 
CAP_YINVERT_IMPLEMENTED	EQU	CAP_YINVERT_CHARSTRINGPOS
endif 
ifdef INCL_GRE_FONTS
CPO_SBCS_CODEPAGE	EQU	00000001H 
CPO_MBCS_CODEPAGE	EQU	00000002H 
CPO_DBCS_CODEPAGE	EQU	00000004H 
endif 
ifdef INCL_GRE_STRINGS
QCO_FORMAT_GOCA	EQU	00000001H 
QCO_FORMAT_IFI	EQU	00000002H 
QCO_NO_TRANSFORM	EQU	00000004H 
QCO_UNICODE	EQU	00000008H 

CHARMETRICS	STRUC
cm_lA	DD	?
cm_ulB	DD	?
cm_lC	DD	?
cm_rclBoundBox	DB	SIZE RECTL DUP (?)
CHARMETRICS	ENDS
QCMT_NO_TRANSFORM	EQU	00000001H 
RS_NO_TRANSLATION	EQU	00000001H 
RS_UNICODE	EQU	00000002H 
RS_FONT_CACHE	EQU	00000004H 
RS_CREATE_FTA	EQU	00000008H 
RS_DESTROY_FTA	EQU	00000010H 
RS_DELETE_CHARS	EQU	00000020H 
RS_COPY_CHARS	EQU	00000040H 
endif 
ifdef INCL_DDIMISC

DISPLAYINFO	STRUC
dspinfo_cb	DW	?
dspinfo_cxIcon	DW	?
dspinfo_cyIcon	DW	?
dspinfo_cxPointer	DW	?
dspinfo_cyPointer	DW	?
dspinfo_cxBorder	DW	?
dspinfo_cyBorder	DW	?
dspinfo_cxHSlider	DW	?
dspinfo_cyVSlider	DW	?
dspinfo_cxSizeBorder	DW	?
dspinfo_cySizeBorder	DW	?
dspinfo_cxDeviceAlign	DW	?
dspinfo_cyDeviceAlign	DW	?
DISPLAYINFO	ENDS

DENPARAMS	STRUC
den_ulStateInfo	DD	?
den_ulType	DD	?
den_ulHDC	DD	?
DENPARAMS	ENDS

STYLERATIO	STRUC
sr_dx	DB	?
sr_dy	DB	?
STYLERATIO	ENDS
GATTR_DEFAULT	EQU	1 
ATYPE_COLOR	EQU	1 
ATYPE_BACK_COLOR	EQU	2 
ATYPE_MIX_MODE	EQU	3 
ATYPE_BACK_MIX_MODE	EQU	4 
CHS_START_XY	EQU	00000020H 
CHS_ATTR_INFO	EQU	00000040H 

CSP_INFO	STRUC
csp_cSize	DD	?
csp_lColor	DD	?
csp_lBackColor	DD	?
CSP_INFO	ENDS
PCTL_DRAW	EQU	00000001H 
PCTL_BOUND	EQU	00000002H 
PCTL_CORRELATE	EQU	00000004H 
PCTL_USERBOUNDS	EQU	00000008H 
PCTL_AREA	EQU	00000010H 
RB_GPI	EQU	00000001H 
RB_USER	EQU	00000002H 
GBD_GPI	EQU	0 
GBD_USER	EQU	1 
EA_DRAW	EQU	00000000H 
EA_CANCEL	EQU	00000001H 
BLTMODE_SRC_BITMAP	EQU	00010000H 
BLTMODE_ATTRS_PRES	EQU	00020000H 
BBO_TARGWORLD	EQU	00000100H 

BITBLTPARAMETERS	STRUC
bbp_rclTarg	DB	SIZE RECTL DUP (?)
bbp_rclSrc	DB	SIZE RECTL DUP (?)
BITBLTPARAMETERS	ENDS

BITBLTATTRS	STRUC
bba_cSize	DD	?
bba_lColor	DD	?
bba_lBackColor	DD	?
BITBLTATTRS	ENDS
LCID_AVIO_1	EQU	(-2 )
LCID_AVIO_2	EQU	(-3 )
LCID_AVIO_3	EQU	(-4 )
LCID_BITMAP_ID_REQUEST	EQU	(-5 )
LCID_RANGE_GPI	EQU	1 
LCID_RANGE_AVIO	EQU	2 
LCID_RANGE_BOTH	EQU	3 
LCID_GRAPHICS_MIN	EQU	1 
LCID_GRAPHICS_MAX	EQU	254 
LCIDT_NONE	EQU	0 
RDC_RGBMODE	EQU	1H 
RDC_SETOWNERTOSHELL	EQU	2H 
SX_UNITY	EQU	0 
SX_CAT_AFTER	EQU	1 
SX_CAT_BEFORE	EQU	2 
SX_OVERWRITE	EQU	3 
MATRIX_SIMPLE	EQU	0001H   
MATRIX_UNITS	EQU	0002H   
MATRIX_XY_EXCHANGE	EQU	0004H   
MATRIX_X_NEGATE	EQU	0008H   
MATRIX_Y_NEGATE	EQU	0010H   
MATRIX_TRANSLATION	EQU	0020H   
NCC_CLEANDC	EQU	0002H   

NOTIFYTRANSFORMDATA	STRUC
ntd_usType	DD	?
ntd_xform	DB	SIZE XFORM DUP (?)
NOTIFYTRANSFORMDATA	ENDS
LCOL_SYSCOLORS	EQU	0010H 

QCDARRAY	STRUC
qcd_iFormat	DD	?
qcd_iSmallest	DD	?
qcd_iLargest	DD	?
qcd_cAvailable	DD	?
qcd_cSpecifiable	DD	?
qcd_iMax	DD	?
QCDARRAY	ENDS
CAPS_MIX_OR	EQU	00000001H 
CAPS_MIX_COPY	EQU	00000002H 
CAPS_MIX_UNDERPAINT	EQU	00000004H 
CAPS_MIX_XOR	EQU	00000008H 
CAPS_MIX_INVISIBLE	EQU	00000010H 
CAPS_MIX_AND	EQU	00000020H 
CAPS_MIX_OTHER	EQU	00000040H 
CAPS_DEV_FONT_SIM_BOLD	EQU	1       
CAPS_DEV_FONT_SIM_ITALIC	EQU	2 
CAPS_DEV_FONT_SIM_UNDERSCORE	EQU	4 
CAPS_DEV_FONT_SIM_STRIKEOUT	EQU	8 
CAPS_BACKMIX_OR	EQU	00000001H 
CAPS_BACKMIX_COPY	EQU	00000002H 
CAPS_BACKMIX_UNDERPAINT	EQU	00000004H 
CAPS_BACKMIX_XOR	EQU	00000008H 
CAPS_BACKMIX_INVISIBLE	EQU	00000010H 
CAPS_FONT_OUTLINE_MANAGE	EQU	16 
CAPS_FONT_IMAGE_MANAGE	EQU	32 
SFONT_RASTER	EQU	100 
SFONT_OUTLINE	EQU	101 
FONT	EQU	1000        
DCCAPS_LINE	EQU	0100H 
DCCAPS_CURVE	EQU	0200H 
DCCAPS_AREA	EQU	0400H 
DCCAPS_MARKER	EQU	0800H 
DCCAPS_TEXT	EQU	1000H 
BITMAP_USAGE_TRANSLATE	EQU	0004H 

DELETERETURN	STRUC
dr_pInfo	DD	?
dr_pBits	DD	?
DELETERETURN	ENDS
SLH_FORMAT_IS_16_DOT_16	EQU	1 
PSL_YMAJOR	EQU	8000H     

SHORTLINEHEADER	STRUC
slh_ulStyle	DD	?
slh_ulFormat	DD	?
slh_ptlStart	DB	SIZE POINTL DUP (?)
slh_ptlStop	DB	SIZE POINTL DUP (?)
slh_lxLeft	DD	?
slh_lxRight	DD	?
slh_pslhNext	DD	?
slh_pslhPrev	DD	?
SHORTLINEHEADER	ENDS

SHORTLINE	STRUC
sl_slh	DB	SIZE SHORTLINEHEADER DUP (?)
sl_ax	DD	1 DUP (?)
SHORTLINE	ENDS

BRECTL	STRUC
brctl_ptl1	DB	SIZE POINTL DUP (?)
brctl_ptl2	DB	SIZE POINTL DUP (?)
BRECTL	ENDS

RLEHDR	STRUC
rle_lType	DD	?
rle_brectlBounds	DB	SIZE BRECTL DUP (?)
rle_pRLE	DD	?
RLEHDR	ENDS

SCANDATA	STRUC
sd_pslFirstLeft	DD	?
sd_pslLastLeft	DD	?
sd_pslFirstRight	DD	?
sd_pslLastRight	DD	?
sd_c	DD	?
sd_rclBound	DB	SIZE RECTL DUP (?)
SCANDATA	ENDS
DI_HDC	EQU	00000000H 
DI_HBITMAP	EQU	00000001H 
endif  
ifdef INCL_DDIMISC2
REALIZE_FONT	EQU	1 
REALIZE_ENGINE_FONT	EQU	2 
DELETE_FONT	EQU	3 
RF_DEVICE_FONT	EQU	1 
RF_LOAD_ENGINE_FONT	EQU	2 
RF_DELETE_FONT	EQU	3 
RF_DELETE_ENGINE_FONT	EQU	4 
endif  
ifdef INCL_DDIBUNDLES

LINEDEFS	STRUC
ldef_defType	DD	?
LINEDEFS	ENDS

DLINEBUNDLE	STRUC
dlbnd_cAttr	DD	?
dlbnd_cDefs	DD	?
dlbnd_lbnd	DB	SIZE LINEBUNDLE DUP (?)
dlbnd_ldef	DB	SIZE LINEDEFS DUP (?)
DLINEBUNDLE	ENDS

AREADEFS	STRUC
adef_defSet	DD	?
adef_fFlags	DD	?
adef_CodePage	DD	?
AREADEFS	ENDS

DAREABUNDLE	STRUC
dabnd_cAttr	DD	?
dabnd_cDefs	DD	?
dabnd_abnd	DB	SIZE AREABUNDLE DUP (?)
dabnd_adef	DB	SIZE AREADEFS DUP (?)
DAREABUNDLE	ENDS

CHARDEFS	STRUC
cdef_defSet	DD	?
cdef_fFlags	DD	?
cdef_CodePage	DD	?
cdef_charSpacing	DD	?
CHARDEFS	ENDS

DCHARBUNDLE	STRUC
dcbnd_cAttr	DD	?
dcbnd_cDefs	DD	?
dcbnd_cbnd	DB	SIZE CHARBUNDLE DUP (?)
dcbnd_cdef	DB	SIZE CHARDEFS DUP (?)
DCHARBUNDLE	ENDS
ifdef BOGUS

IMAGEDEFS	STRUC
IMAGEDEFS	ENDS
endif       

DIMAGEBUNDLE	STRUC
dibnd_cAttr	DD	?
dibnd_cDefs	DD	?
dibnd_ibnd	DB	SIZE IMAGEBUNDLE DUP (?)
DIMAGEBUNDLE	ENDS

MARKERDEFS	STRUC
mdef_defSet	DD	?
mdef_fFlags	DD	?
mdef_CodePage	DD	?
MARKERDEFS	ENDS

DMARKERBUNDLE	STRUC
dmbnd_cAttr	DD	?
dmbnd_cDefs	DD	?
dmbnd_mbnd	DB	SIZE MARKERBUNDLE DUP (?)
dmbnd_mdef	DB	SIZE MARKERDEFS DUP (?)
DMARKERBUNDLE	ENDS
endif 
ifdef INCL_DDIFONTSTRUCS
INCLUDE pmfont.INC
endif 
ifdef INCL_DDIBITMAPFILE
INCLUDE pmbitmap.INC
endif 
ifdef INCL_DDIPATHS
CURVE_IDENTIFIER	EQU	43H 
LINE_IDENTIFIER	EQU	4CH 
CURVE_DO_FIRST_PEL	EQU	0002H 

CURVE	STRUC
cv_bIdent	DB	?
cv_bType	DB	?
cv_usReserved	DW	?
cv_flStyle	DD	?
cv_fl	DD	?
cv_pcvNext	DD	?
cv_pcvPrev	DD	?
cv_pcvAttrs	DD	?
cv_ptfxA	DB	SIZE POINTFX DUP (?)
cv_ptfxC	DB	SIZE POINTFX DUP (?)
cv_Reserved2	DB	28 DUP (?)
CURVE	ENDS

LINE	STRUC
ln_bIdent	DB	?
ln_bType	DB	?
ln_usReserved	DW	?
ln_flStyle	DD	?
ln_fl	DD	?
ln_pcvNext	DD	?
ln_pcvPrev	DD	?
ln_pcvAttrs	DD	?
ln_ptfxA	DB	SIZE POINTFX DUP (?)
ln_ptfxC	DB	SIZE POINTFX DUP (?)
ln_ptlA	DB	SIZE POINTL DUP (?)
ln_ptlC	DB	SIZE POINTL DUP (?)
ln_fxRslope	DD	?
ln_Reserved1	DB	8 DUP (?)
LINE	ENDS
endif  
ifdef INCL_GRE_JOURNALING
JNL_TEMP_FILE	EQU	00000001H 
JNL_PERM_FILE	EQU	00000002H 
JNL_ENGINERAM_FILE	EQU	00000004H 
JNL_USERRAM_FILE	EQU	00000008H 
JNL_DRAW_OPTIMIZATION	EQU	00000010H 
JNL_BOUNDS_OPTIMIZATION	EQU	00000020H 
endif  
ifdef INCL_GRE_DEVICE

BITMAPFORMAT	STRUC
bmf_cPlanes	DD	?
bmf_cBitCount	DD	?
BITMAPFORMAT	ENDS
endif 
ifdef INCL_GRE_PALETTE

PALETTEINFOHEADER	STRUC
palinfohdr_flCmd	DD	?
palinfohdr_ulFormat	DD	?
palinfohdr_cclr	DD	?
PALETTEINFOHEADER	ENDS

PALETTEINFO	STRUC
palinfo_flCmd	DD	?
palinfo_ulFormat	DD	?
palinfo_cclr	DD	?
palinfo_argb	DB	SIZE RGB2 * 1 DUP (?)
PALETTEINFO	ENDS
RP_BACKGROUND	EQU	0 
RP_FOREGROUND	EQU	1 
RP_DEFAULTSCHANGED	EQU	2 
endif
ifdef INCL_GRE_BITMAPS
LR_CLIPPED	EQU	2 
LR_NOTBORDER	EQU	0 
LR_BORDER	EQU	1 
LR_LEFT	EQU	2 
LR_RIGHT	EQU	4 
endif
OPTH_NO_CLIPPING_REQD	EQU	0001H 
OPTH_QRY_PATH_POINTS	EQU	0002H 

MCDESCRIPTION	STRUC
mcdesc_pMoveCursor	DD	?
mcdesc_ulCodeLength	DD	?
mcdesc_pCursorData	DD	?
mcdesc_ulDataLength	DD	?
MCDESCRIPTION	ENDS

WINCURSORDATA	STRUC
winmc_pMoveCursor	DD	?
winmc_pMoveCursorAlias	DD	?
winmc_pCursorData	DD	?
winmc_pCursorDataAlias	DD	?
winmc_ulRoutineType	DD	?
winmc_hModDisplay	DD	?
winmc_pWCThunkCode	DD	?
winmc_ulThunkLen	DD	?
winmc_usR0CS	DW	?
winmc_usR0DS	DW	?
WINCURSORDATA	ENDS
MC_32BIT	EQU	32 
MC_16BIT	EQU	16 
ifdef INCL_GRE_SCREEN
GSB_OPT_4BPP	EQU	0000H 
GSB_OPT_8BPP	EQU	0001H 
GSB_OPT_16BPP	EQU	0002H 
GSB_OPT_LINEAR	EQU	0000H 
GSB_OPT_PLANAR	EQU	0008H 
GSB_OPT_HRGN	EQU	0010H 
endif 
ifdef INCL_VMANDDI
CAPS_MAX_CAPS	EQU	41 
DEFAULT_PATTERNS_NUMBER	EQU	20 

IMAGEINFOS	STRUC
imginfo_pptlSrc	DD	?
imginfo_pptlDst	DD	?
imginfo_ulSrcBpp	DD	?
imginfo_ulSrcBytesPerLine	DD	?
imginfo_pbSrcBits	DD	?
imginfo_ulcSrcClrs	DD	?
imginfo_ulSrcClrType	DD	?
imginfo_pargb2Src	DD	?
imginfo_ulTrgBpp	DD	?
imginfo_ulTrgBytesPerLine	DD	?
imginfo_pbTrgBits	DD	?
imginfo_ulcTrgClrs	DD	?
imginfo_ulTrgClrType	DD	?
imginfo_pargb2Trg	DD	?
imginfo_ulOptions	DD	?
IMAGEINFOS	ENDS
COLOR_RGB2	EQU	0000H   
COLOR_RGB	EQU	0001H   
COLOR_24BIT_BGR	EQU	0000H   
COLOR_24BIT_RGB	EQU	0001H   
COLOR_16BIT_565_BGR	EQU	0000H   
COLOR_16BIT_565_RGB	EQU	0001H   
COLOR_16BIT_1555_BGR	EQU	0002H   
COLOR_16BIT_1555_RGB	EQU	0004H   
COLOR_32BIT_BGR	EQU	0000H   
COLOR_32BIT_RGB	EQU	0001H   
IMAGEINFO_CLR_TO_MONO_BG_EXACT	EQU	00000001H  
IMAGEINFO_CLR_TO_MONO_BG_EXACT_INV	EQU	00000002H  
IMAGEINFO_CLR_TO_MONO_BG_MAP	EQU	00000004H  
IMAGEINFO_CLR_TO_MONO_BG_MAP_INV	EQU	00000008H  
IMAGEINFO_SRC_Y_FLIP	EQU	00000010H  
IMAGEINFO_TRG_Y_FLIP	EQU	00000020H  

DITHERMATRIX	STRUC
dthmtx_ulLength	DD	?
dthmtx_fExt2IntSup	DD	?
dthmtx_pExt2IntDI	DD	?
dthmtx_fStretchSup	DD	?
dthmtx_pStretchDI	DD	?
dthmtx_fLog2PhysSup	DD	?
dthmtx_pLog2PhysDI	DD	?
dthmtx_pfnDither	DD	?
DITHERMATRIX	ENDS
GDM_NO_DITHER	EQU	0000H    
GDM_USERDEF_DITHER	EQU	0001H    
GDM_MATRIX_DITHER	EQU	0002H    
GDM_ERRORDIF_DITHER	EQU	0004H    
GDM_DITHER_BEGIN	EQU	0008H    
GDM_DITHER_END	EQU	0010H    
GDM_COLOR_CONVERT	EQU	0020H    

COLORCONVERTINFO	STRUC
cci_ulLength	DD	?
cci_ulType	DD	?
cci_ulOptions	DD	?
cci_pfnRGB2ToPhyIndex	DD	?
cci_pfnPhyIndexToRGB2	DD	?
cci_pfnConvert	DD	?
COLORCONVERTINFO	ENDS
GDM_EXT2INT_DITHER	EQU	01H 
GDM_STRETCH_DITHER	EQU	02H 
GDM_LOG2PHY_DITHER	EQU	04H 

MATRIXDITHERINFO	STRUC
mtrxdi_ulLength	DD	?
mtrxdi_ulType	DD	?
mtrxdi_fOptions	DD	?
mtrxdi_ulIntensity	DD	?
mtrxdi_bRedWt	DB	?
mtrxdi_bGreenWt	DB	?
mtrxdi_bBlueWt	DB	?
mtrxdi_bPad	DB	?
mtrxdi_szMatrix	DB	SIZE SIZEL DUP (?)
mtrxdi_bHalftone	DB	1 DUP (?)
MATRIXDITHERINFO	ENDS
STUCKI_DIF	EQU	01H 
JJN_DIF	EQU	02H 
RND_DIF	EQU	04H 
USER_DIF	EQU	08H 

DIFFUSIONDITHERINFO	STRUC
difdi_ulLength	DD	?
difdi_ulType	DD	?
difdi_fOptions	DD	?
difdi_ulIntensity	DD	?
difdi_bRedWt	DB	?
difdi_bGreenWt	DB	?
difdi_bBlueWt	DB	?
difdi_bPad	DB	?
difdi_pBuffer	DD	?
difdi_szFilter	DB	SIZE SIZEL DUP (?)
difdi_bFilterArry	DB	1 DUP (?)
DIFFUSIONDITHERINFO	ENDS

DEVICESURFACE	STRUC
devsur_ulLength	DD	?
devsur_SurfaceBmapInfo	DB	SIZE BMAPINFO DUP (?)
devsur_ulDSFlgs	DD	?
devsur_ulStyleRatio	DD	?
devsur_abmapinfoDefPattern	DB	SIZE BMAPINFO * DEFAULT_PATTERNS_NUMBER DUP (?)
devsur_pHWPalette	DD	?
devsur_DitherMatrix	DB	SIZE DITHERMATRIX DUP (?)
devsur_pfnDevLockDC	DD	?
devsur_pfnDevUnLockDC	DD	?
devsur_pfnBitBlt	DD	?
devsur_pfnLine	DD	?
ifdef DEV_FNT_SUP
devsur_pfnTextBlt	DD	?
else
devsur_pfnReserved	DD	?
endif
devsur_pfnLockPhysDev	DD	?
devsur_pfnUnLockPhysDev	DD	?
devsur_hddc	DD	?
devsur_ulReserved	DD	2 DUP (?)
devsur_ulDS2Flgs	DD	?
devsur_pfnPolygon	DD	?
devsur_ulCapsCnt	DD	?
devsur_DevCaps	DD	CAPS_MAX_CAPS + 1 DUP (?)
DEVICESURFACE	ENDS
DS_MEMORY	EQU	00000001H   
DS_ROTATION	EQU	00000002H   
DS_HORIZONTAL_SCAN	EQU	00000004H   
DS_VERTICAL_SCAN	EQU	00000008H   
DS_BYTEALIGN	EQU	00000010H   
DS_WORDALIGN	EQU	00000020H   
DS_DWORDALIGN	EQU	00000040H   
DS_KEEP_EXTFORMAT	EQU	00000100H   
DS_MONO_INVERT	EQU	00000200H   
DS_EXTERNAL_BITMAP_SELECTED	EQU	00000400H   
DS_NOTIFY_LAST_SDBITBLT	EQU	00000800H   
DS_QUEUED_RAW_DEFAULT	EQU	00001000H   
DS_DOWNLOAD_FONTS	EQU	00002000H   
DS_FONT_CLIP_SUPPORT	EQU	00004000H   
DS_DEVICE_FONTS	EQU	00008000H   
DS_BOTTOMTOP	EQU	00010000H   
DS_TOPBOTTOM	EQU	00020000H   
DS_CLIP_100_RULE	EQU	00000000H   
DS_CLIP_66_RULE	EQU	00040000H   
DS_CLIP_PRECISE_RULE	EQU	00080000H   
DS_BITBLT_XROW_YSCAN	EQU	00100000H   
DS_BITBLT_ROW_NEGATIVE	EQU	00200000H   
DS_BITBLT_SCAN_NEGATIVE	EQU	00400000H   
ifdef DS_SIMPLE_LINES
endif
DS_SIMPLE_LINES	EQU	00800000H   
DS_NO_Y_FLIP	EQU	01000000H   
DS_SRC_CONVERT	EQU	02000000H   
DS_POLYGON_FILL	EQU	08000000H   
DS_BITBLT_RESERVED	EQU	04000000H   
DS_COLOR_RGB2	EQU	00000000H   
DS_COLOR_RGB	EQU	10000000H   
DS_COLOR_24BIT_BGR	EQU	00000000H   
DS_COLOR_24BIT_RGB	EQU	10000000H   
DS_COLOR_16BIT_565_BGR	EQU	00000000H   
DS_COLOR_16BIT_565_RGB	EQU	10000000H   
DS_COLOR_16BIT_1555_BGR	EQU	20000000H   
DS_COLOR_16BIT_1555_RGB	EQU	40000000H   
DS_COLOR_32BIT_BGR	EQU	00000000H   
DS_COLOR_32BIT_RGB	EQU	10000000H   
DS2_SRC_STRETCH	EQU	00000008H   
DS2_POLYGON_SIZE_ANY	EQU	00000010H   
DS2_CLIP	EQU	00000020H   
DS2_CLIP_COMPLEX	EQU	00000040H   
ifndef FONTDEFFONT1
INCLUDE pmfont.INC
endif
ifndef DDI_INCLUDED
INCLUDE ddi.INC
endif

DEVFONTMETRICS	STRUC
dfm_flOptions	DD	?
dfm_pFoca	DD	?
dfm_pUniPanose	DD	?
dfm_achFileName	DB	260 DUP (?)
dfm_pszFullFamilyName	DD	?
dfm_pszFullFaceName	DD	?
dfm_achGlyphListName	DB	16 DUP (?)
dfm_pfnDevQueryCodePage	DD	?
dfm_lDevMatch	DD	?
DEVFONTMETRICS	ENDS
DEVFONT_DEFAULT	EQU	00010000H   
DEVFONT_EXTENSION	EQU	00020000H   

DEVFONTMETRICS2	STRUC
dfm2_flOptions	DD	?
dfm2_pFoca	DD	?
dfm2_pUniPanose	DD	?
dfm2_achFileName	DB	260 DUP (?)
dfm2_pszFullFamilyName	DD	?
dfm2_pszFullFaceName	DD	?
dfm2_achGlyphListName	DB	16 DUP (?)
dfm2_pfnDevQueryCodePage	DD	?
dfm2_lDevMatch	DD	?
dfm2_ulSize	DD	?
dfm2_pszBackupFont	DD	?
dfm2_aulDeviceSpecific	DD	4 DUP (?)
DEVFONTMETRICS2	ENDS

FONTINFO	STRUC
fntinfo_dfi	DB	SIZE DEVFONTINFO DUP (?)
fntinfo_foca	DB	SIZE FOCAFONT DUP (?)
FONTINFO	ENDS

PHYSBND	STRUC
physbnd_ulColor	DD	?
physbnd_ulBackColor	DD	?
physbnd_ulrgb2LogColor	DD	?
physbnd_ulrgb2LogBackColor	DD	?
physbnd_ulMix	DD	?
physbnd_ulBackMix	DD	?
PHYSBND	ENDS
COLOR_LOG_TO_PHY_MAPPED	EQU	80H 

STATEINFO2	STRUC
stateinfo2_ptlOrigin	DB	SIZE POINTL DUP (?)
stateinfo2_xformWD	DB	SIZE XFORM DUP (?)
stateinfo2_xform_flags	DD	?
stateinfo2_pDAttr	DD	?
stateinfo2_ulCodePage	DD	?
stateinfo2_ptlCurPosWorld	DB	SIZE POINTL DUP (?)
stateinfo2_ptlCurPosScreen	DB	SIZE POINTL DUP (?)
stateinfo2_ulLineStyle	DD	?
STATEINFO2	ENDS

STATEINFO1	STRUC
stateinfo1_hddc	DD	?
stateinfo1_pStateInfo2	DD	?
stateinfo1_arc_parameters	DB	SIZE ARCPARAMS DUP (?)
stateinfo1_norm	DD	?
stateinfo1_direction	DD	?
stateinfo1_line_bundle	DB	SIZE DLINEBUNDLE DUP (?)
stateinfo1_pat_bundle	DB	SIZE DAREABUNDLE DUP (?)
stateinfo1_char_bundle	DB	SIZE DCHARBUNDLE DUP (?)
stateinfo1_image_bundle	DB	SIZE DIMAGEBUNDLE DUP (?)
stateinfo1_marker_bundle	DB	SIZE DMARKERBUNDLE DUP (?)
stateinfo1_line_default	DD	?
stateinfo1_char_default	DD	?
stateinfo1_marker_default	DD	?
stateinfo1_pat_default	DD	?
stateinfo1_image_default	DD	?
stateinfo1_ulOldDriver	DD	?
stateinfo1_flPattern	DD	?
stateinfo1_bmapinfoPattern	DB	SIZE BMAPINFO DUP (?)
stateinfo1_ptlPatRefPointWorld	DB	SIZE POINTL DUP (?)
stateinfo1_ptlPatRefPointScreen	DB	SIZE POINTL DUP (?)
stateinfo1_ulLineType	DD	?
stateinfo1_physChar	DB	SIZE PHYSBND DUP (?)
stateinfo1_physLine	DB	SIZE PHYSBND DUP (?)
stateinfo1_physMarker	DB	SIZE PHYSBND DUP (?)
stateinfo1_physImage	DB	SIZE PHYSBND DUP (?)
stateinfo1_physArea	DB	SIZE PHYSBND DUP (?)
STATEINFO1	ENDS
endif 
INCLUDE pmddim.INC
