// COMDLG32.DLL constants;
// OPENFILENAME flags
	OFN_READONLY					= 0x000001;
	OFN_OVERWRITEPROMPT				= 0x000002;
	OFN_HIDEREADONLY				= 0x000004;
	OFN_NOCHANGEDIR					= 0x000008;
	OFN_SHOWHELP					= 0x000010;
	OFN_ENABLEHOOK					= 0x000020;
	OFN_ENABLETEMPLATE				= 0x000040;
	OFN_ENABLETEMPLATEHANDLE		= 0x000080;
	OFN_NOVALIDATE					= 0x000100;
	OFN_ALLOWMULTISELECT			= 0x000200;
	OFN_EXTENSIONDIFFERENT			= 0x000400;
	OFN_PATHMUSTEXIST				= 0x000800;
	OFN_FILEMUSTEXIST				= 0x001000;
	OFN_CREATEPROMPT				= 0x002000;
	OFN_SHAREAWARE					= 0x004000;
	OFN_NOREADONLYRETURN			= 0x008000;
	OFN_NOTESTFILECREATE			= 0x010000;
	OFN_NONETWORKBUTTON				= 0x020000;
	OFN_NOLONGNAMES					= 0x040000;
	OFN_EXPLORER					= 0x080000;
	OFN_NODEREFERENCELINKS			= 0x100000;
	OFN_LONGNAMES					= 0x200000;
// Common dialog notifications
	CDN_FIRST				= -601;
	CDN_LAST				= -699;
	CDN_INITDONE			= CDN_FIRST - 0;
	CDN_SELCHANGE			= CDN_FIRST - 1;
	CDN_FOLDERCHANGE		= CDN_FIRST - 2;
	CDN_SHAREVIOLATION		= CDN_FIRST - 3;
	CDN_HELP				= CDN_FIRST - 4;
	CDN_FILEOK				= CDN_FIRST - 5;
	CDN_TYPECHANGE			= CDN_FIRST - 6;
// Common dialog messages
	CDM_FIRST				= 0x0400 + 100;
	CDM_LAST				= 0x0400 + 200;
	CDM_GETSPEC				= CDM_FIRST + 0;
	CDM_GETFILEPATH			= CDM_FIRST + 1;
	CDM_GETFOLDERPATH		= CDM_FIRST + 2;
	CDM_GETFOLDERIDLIST		= CDM_FIRST + 3;
	CDM_SETCONTROLTEXT		= CDM_FIRST + 4;
	CDM_HIDECONTROL			= CDM_FIRST + 5;
	CDM_SETDEFEXT			= CDM_FIRST + 6;
// CHOOSECOLOR flags
	CC_RGBINIT					= 0x001;
	CC_FULLOPEN					= 0x002;
	CC_PREVENTFULLOPEN			= 0x004;
	CC_SHOWHELP					= 0x008;
	CC_ENABLEHOOK				= 0x010;
	CC_ENABLETEMPLATE			= 0x020;
	CC_ENABLETEMPLATEHANDLE		= 0x040;
	CC_SOLIDCOLOR				= 0x080;
	CC_ANYCOLOR					= 0x100;
// FINDREPLACE flags
	FR_DOWN						= 0x00001;
	FR_WHOLEWORD				= 0x00002;
	FR_MATCHCASE				= 0x00004;
	FR_FINDNEXT					= 0x00008;
	FR_REPLACE					= 0x00010;
	FR_REPLACEALL				= 0x00020;
	FR_DIALOGTERM				= 0x00040;
	FR_SHOWHELP					= 0x00080;
	FR_ENABLEHOOK				= 0x00100;
	FR_ENABLETEMPLATE			= 0x00200;
	FR_NOUPDOWN					= 0x00400;
	FR_NOMATCHCASE				= 0x00800;
	FR_NOWHOLEWORD				= 0x01000;
	FR_ENABLETEMPLATEHANDLE		= 0x02000;
	FR_HIDEUPDOWN				= 0x04000;
	FR_HIDEMATCHCASE			= 0x08000;
	FR_HIDEWHOLEWORD			= 0x10000;
// CHOOSEFONT flags
	CF_SCREENFONTS				= 0x0000001;
	CF_PRINTERFONTS				= 0x0000002;
	CF_BOTH						= CF_SCREENFONTS + CF_PRINTERFONTS;
	CF_SHOWHELP					= 0x0000004;
	CF_ENABLEHOOK				= 0x0000008;
	CF_ENABLETEMPLATE			= 0x0000010;
	CF_ENABLETEMPLATEHANDLE		= 0x0000020;
	CF_INITTOLOGFONTSTRUCT		= 0x0000040;
	CF_USESTYLE					= 0x0000080;
	CF_EFFECTS					= 0x0000100;
	CF_APPLY					= 0x0000200;
	CF_ANSIONLY					= 0x0000400;
	CF_SCRIPTSONLY				= CF_ANSIONLY;
	CF_NOVECTORFONTS			= 0x0000800;
	CF_NOOEMFONTS				= CF_NOVECTORFONTS;
	CF_NOSIMULATIONS			= 0x0001000;
	CF_LIMITSIZE				= 0x0002000;
	CF_FIXEDPITCHONLY			= 0x0004000;
	CF_WYSIWYG					= 0x0008000;
	CF_FORCEFONTEXIST			= 0x0010000;
	CF_SCALABLEONLY				= 0x0020000;
	CF_TTONLY					= 0x0040000;
	CF_NOFACESEL				= 0x0080000;
	CF_NOSTYLESEL				= 0x0100000;
	CF_NOSIZESEL				= 0x0200000;
	CF_SELECTSCRIPT				= 0x0400000;
	CF_NOSCRIPTSEL				= 0x0800000;
	CF_NOVERTFONTS				= 0x1000000;
// 0xCooseFont messages
	WM_CHOOSEFONT_GETLOGFONT	= 0x0400 + 1;
	WM_CHOOSEFONT_SETLOGFONT	= 0x0400 + 101;
	WM_CHOOSEFONT_SETFLAGS		= 0x0400 + 102;
// PRINTDLG flags
	PD_ALLPAGES							= 0x000000;
	PD_SELECTION						= 0x000001;
	PD_PAGENUMS							= 0x000002;
	PD_NOSELECTION						= 0x000004;
	PD_NOPAGENUMS						= 0x000008;
	PD_COLLATE							= 0x000010;
	PD_PRINTTOFILE						= 0x000020;
	PD_PRINTSETUP						= 0x000040;
	PD_NOWARNING						= 0x000080;
	PD_RETURNDC							= 0x000100;
	PD_RETURNIC							= 0x000200;
	PD_RETURNDEFAULT					= 0x000400;
	PD_SHOWHELP							= 0x000800;
	PD_ENABLEPRINTHOOK					= 0x001000;
	PD_ENABLESETUPHOOK					= 0x002000;
	PD_ENABLEPRINTTEMPLATE				= 0x004000;
	PD_ENABLESETUPTEMPLATE				= 0x008000;
	PD_ENABLEPRINTTEMPLATEHANDLE		= 0x010000;
	PD_ENABLESETUPTEMPLATEHANDLE		= 0x020000;
	PD_USEDEVMODECOPIES					= 0x040000;
	PD_USEDEVMODECOPIESANDCOLLATE		= 0x040000;
	PD_DISABLEPRINTTOFILE				= 0x080000;
	PD_HIDEPRINTTOFILE					= 0x100000;
	PD_NONETWORKBUTTON					= 0x200000;
// PAGESETUPDLG flags
	PSD_DEFAULTMINMARGINS					= 0x000000;
	PSD_INWININIINTLMEASURE					= 0x000000;
	PSD_MINMARGINS							= 0x000001;
	PSD_MARGINS								= 0x000002;
	PSD_INTHOUSANDTHSOFINCHES				= 0x000004;
	PSD_INHUNDREDTHSOFMILLIMETERS			= 0x000008;
	PSD_DISABLEMARGINS						= 0x000010;
	PSD_DISABLEPRINTER						= 0x000020;
	PSD_NOWARNING							= 0x000080;
	PSD_DISABLEORIENTATION					= 0x000100;
	PSD_RETURNDEFAULT						= 0x000400;
	PSD_DISABLEPAPER						= 0x000200;
	PSD_SHOWHELP							= 0x000800;
	PSD_ENABLEPAGESETUPHOOK				= 0x002000;
	PSD_ENABLEPAGESETUPTEMPLATE			= 0x008000;
	PSD_ENABLEPAGESETUPTEMPLATEHANDLE	= 0x020000;
	PSD_ENABLEPAGEPAINTHOOK				= 0x040000;
	PSD_DISABLEPAGEPAINTING				= 0x080000;
	PSD_NONETWORKBUTTON					= 0x200000;
// PageSetupDlg messages
	WM_PSD_PAGESETUPDLG		= 0x0400;
	WM_PSD_FULLPAGERECT		= 0x0400 + 1;
	WM_PSD_MINMARGINRECT	= 0x0400 + 2;
	WM_PSD_MARGINRECT		= 0x0400 + 3;
	WM_PSD_GREEKTEXTRECT	= 0x0400 + 4;
	WM_PSD_ENVSTAMPRECT		= 0x0400 + 5;
	WM_PSD_YAFULLPAGERECT	= 0x0400 + 6;
// Common dialog error codes
	CDERR_DIALOGFAILURE			= 0x0FFFF;
	CDERR_GENERALCODES			= 0x00000;
	CDERR_STRUCTSIZE			= 0x00001;
	CDERR_INITIALIZATION		= 0x00002;
	CDERR_NOTEMPLATE			= 0x00003;
	CDERR_NOHINSTANCE			= 0x00004;
	CDERR_LOADSTRFAILURE		= 0x00005;
	CDERR_FINDRESFAILURE		= 0x00006;
	CDERR_LOADRESFAILURE		= 0x00007;
	CDERR_LOCKRESFAILURE		= 0x00008;
	CDERR_MEMALLOCFAILURE		= 0x00009;
	CDERR_MEMLOCKFAILURE		= 0x0000A;
	CDERR_NOHOOK				= 0x0000B;
	CDERR_REGISTERMSGFAIL		= 0x0000C;
	PDERR_PRINTERCODES			= 0x01000;
	PDERR_SETUPFAILURE			= 0x01001;
	PDERR_PARSEFAILURE			= 0x01002;
	PDERR_RETDEFFAILURE			= 0x01003;
	PDERR_LOADDRVFAILURE		= 0x01004;
	PDERR_GETDEVMODEFAIL		= 0x01005;
	PDERR_INITFAILURE			= 0x01006;
	PDERR_NODEVICES				= 0x01007;
	PDERR_NODEFAULTPRN			= 0x01008;
	PDERR_DNDMMISMATCH			= 0x01009;
	PDERR_CREATEICFAILURE		= 0x0100A;
	PDERR_PRINTERNOTFOUND		= 0x0100B;
	PDERR_DEFAULTDIFFERENT		= 0x0100C;
	CFERR_CHOOSEFONTCODES		= 0x02000;
	CFERR_NOFONTS				= 0x02001;
	CFERR_MAXLESSTHANMIN		= 0x02002;
	FNERR_FILENAMECODES			= 0x03000;
	FNERR_SUBCLASSFAILURE		= 0x03001;
	FNERR_INVALIDFILENAME		= 0x03002;
	FNERR_BUFFERTOOSMALL		= 0x03003;
	FRERR_FINDREPLACECODES		= 0x04000;
	FRERR_BUFFERLENGTHZERO		= 0x04001;
	CCERR_CHOOSECOLORCODES		= 0x05000;
