0000: 6d 6f 64 75 6c 65 20 77 69 6e 33 32 2e 63 6f 6d module win32.com
0010: 6d 64 6c 67 3b 0d 0a 0d 0a 2f 2f 20 54 72 61 6e mdlg;....// Tran
0020: 73 6c 61 74 65 64 20 66 72 6f 6d 20 4d 69 63 72 slated from Micr
0030: 6f 73 6f 66 74 20 50 6c 61 74 66 6f 72 6d 20 53 osoft Platform S
0040: 44 4b 20 41 75 67 75 73 74 20 32 30 30 31 20 45 DK August 2001 E
0050: 64 69 74 69 6f 6e 0d 0a 2f 2f 20 62 79 20 59 2e dition..// by Y.
0060: 54 6f 6d 69 6e 6f 0d 0a 0d 0a 69 6d 70 6f 72 74 Tomino....import
0070: 20 77 69 6e 33 32 2e 77 69 6e 64 65 66 3b 0d 0a win32.windef;..
0080: 69 6d 70 6f 72 74 20 77 69 6e 33 32 2e 77 69 6e import win32.win
0090: 75 73 65 72 3b 0d 0a 2f 2f 20 69 6e 6c 69 6e 65 user;..// inline
00a0: 20 23 69 6e 63 6c 75 64 65 20 3c 63 64 65 72 72 #include <cderr
00b0: 2e 68 3e 0d 0a 2f 2f 20 2d 2d 2d 2d 0d 0a 0d 0a .h>..// ----....
00c0: 2f 2f 20 23 69 66 6e 64 65 66 20 5f 49 4e 43 5f // #ifndef _INC_
00d0: 43 44 45 52 52 0d 0a 2f 2f 20 23 64 65 66 69 6e CDERR..// #defin
00e0: 65 20 5f 49 4e 43 5f 43 44 45 52 52 0d 0a 0d 0a e _INC_CDERR....
00f0: 2f 2f 20 23 69 66 20 5f 4d 53 43 5f 56 45 52 20 // #if _MSC_VER
0100: 3e 20 31 30 30 30 0d 0a 2f 2f 20 23 70 72 61 67 > 1000..// #prag
0110: 6d 61 20 6f 6e 63 65 0d 0a 2f 2f 20 23 65 6e 64 ma once..// #end
0120: 69 66 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e if....enum : uin
0130: 74 20 7b 20 43 44 45 52 52 5f 44 49 41 4c 4f 47 t { CDERR_DIALOG
0140: 46 41 49 4c 55 52 45 20 3d 20 30 78 46 46 46 46 FAILURE = 0xFFFF
0150: 20 7d 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e }....enum : uin
0160: 74 20 7b 20 43 44 45 52 52 5f 47 45 4e 45 52 41 t { CDERR_GENERA
0170: 4c 43 4f 44 45 53 20 3d 20 30 78 30 30 30 30 20 LCODES = 0x0000
0180: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
0190: 20 43 44 45 52 52 5f 53 54 52 55 43 54 53 49 5a CDERR_STRUCTSIZ
01a0: 45 20 3d 20 30 78 30 30 30 31 20 7d 0d 0a 65 6e E = 0x0001 }..en
01b0: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 44 45 52 um : uint { CDER
01c0: 52 5f 49 4e 49 54 49 41 4c 49 5a 41 54 49 4f 4e R_INITIALIZATION
01d0: 20 3d 20 30 78 30 30 30 32 20 7d 0d 0a 65 6e 75 = 0x0002 }..enu
01e0: 6d 20 3a 20 75 69 6e 74 20 7b 20 43 44 45 52 52 m : uint { CDERR
01f0: 5f 4e 4f 54 45 4d 50 4c 41 54 45 20 3d 20 30 78 _NOTEMPLATE = 0x
0200: 30 30 30 33 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 0003 }..enum : u
0210: 69 6e 74 20 7b 20 43 44 45 52 52 5f 4e 4f 48 49 int { CDERR_NOHI
0220: 4e 53 54 41 4e 43 45 20 3d 20 30 78 30 30 30 34 NSTANCE = 0x0004
0230: 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 }..enum : uint
0240: 7b 20 43 44 45 52 52 5f 4c 4f 41 44 53 54 52 46 { CDERR_LOADSTRF
0250: 41 49 4c 55 52 45 20 3d 20 30 78 30 30 30 35 20 AILURE = 0x0005
0260: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
0270: 20 43 44 45 52 52 5f 46 49 4e 44 52 45 53 46 41 CDERR_FINDRESFA
0280: 49 4c 55 52 45 20 3d 20 30 78 30 30 30 36 20 7d ILURE = 0x0006 }
0290: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
02a0: 43 44 45 52 52 5f 4c 4f 41 44 52 45 53 46 41 49 CDERR_LOADRESFAI
02b0: 4c 55 52 45 20 3d 20 30 78 30 30 30 37 20 7d 0d LURE = 0x0007 }.
02c0: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 .enum : uint { C
02d0: 44 45 52 52 5f 4c 4f 43 4b 52 45 53 46 41 49 4c DERR_LOCKRESFAIL
02e0: 55 52 45 20 3d 20 30 78 30 30 30 38 20 7d 0d 0a URE = 0x0008 }..
02f0: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 44 enum : uint { CD
0300: 45 52 52 5f 4d 45 4d 41 4c 4c 4f 43 46 41 49 4c ERR_MEMALLOCFAIL
0310: 55 52 45 20 3d 20 30 78 30 30 30 39 20 7d 0d 0a URE = 0x0009 }..
0320: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 44 enum : uint { CD
0330: 45 52 52 5f 4d 45 4d 4c 4f 43 4b 46 41 49 4c 55 ERR_MEMLOCKFAILU
0340: 52 45 20 3d 20 30 78 30 30 30 41 20 7d 0d 0a 65 RE = 0x000A }..e
0350: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 44 45 num : uint { CDE
0360: 52 52 5f 4e 4f 48 4f 4f 4b 20 3d 20 30 78 30 30 RR_NOHOOK = 0x00
0370: 30 42 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 0B }..enum : uin
0380: 74 20 7b 20 43 44 45 52 52 5f 52 45 47 49 53 54 t { CDERR_REGIST
0390: 45 52 4d 53 47 46 41 49 4c 20 3d 20 30 78 30 30 ERMSGFAIL = 0x00
03a0: 30 43 20 7d 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 0C }....enum : u
03b0: 69 6e 74 20 7b 20 50 44 45 52 52 5f 50 52 49 4e int { PDERR_PRIN
03c0: 54 45 52 43 4f 44 45 53 20 3d 20 30 78 31 30 30 TERCODES = 0x100
03d0: 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 0 }..enum : uint
03e0: 20 7b 20 50 44 45 52 52 5f 53 45 54 55 50 46 41 { PDERR_SETUPFA
03f0: 49 4c 55 52 45 20 3d 20 30 78 31 30 30 31 20 7d ILURE = 0x1001 }
0400: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
0410: 50 44 45 52 52 5f 50 41 52 53 45 46 41 49 4c 55 PDERR_PARSEFAILU
0420: 52 45 20 3d 20 30 78 31 30 30 32 20 7d 0d 0a 65 RE = 0x1002 }..e
0430: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 45 num : uint { PDE
0440: 52 52 5f 52 45 54 44 45 46 46 41 49 4c 55 52 45 RR_RETDEFFAILURE
0450: 20 3d 20 30 78 31 30 30 33 20 7d 0d 0a 65 6e 75 = 0x1003 }..enu
0460: 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 45 52 52 m : uint { PDERR
0470: 5f 4c 4f 41 44 44 52 56 46 41 49 4c 55 52 45 20 _LOADDRVFAILURE
0480: 3d 20 30 78 31 30 30 34 20 7d 0d 0a 65 6e 75 6d = 0x1004 }..enum
0490: 20 3a 20 75 69 6e 74 20 7b 20 50 44 45 52 52 5f : uint { PDERR_
04a0: 47 45 54 44 45 56 4d 4f 44 45 46 41 49 4c 20 3d GETDEVMODEFAIL =
04b0: 20 30 78 31 30 30 35 20 7d 0d 0a 65 6e 75 6d 20 0x1005 }..enum
04c0: 3a 20 75 69 6e 74 20 7b 20 50 44 45 52 52 5f 49 : uint { PDERR_I
04d0: 4e 49 54 46 41 49 4c 55 52 45 20 3d 20 30 78 31 NITFAILURE = 0x1
04e0: 30 30 36 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 006 }..enum : ui
04f0: 6e 74 20 7b 20 50 44 45 52 52 5f 4e 4f 44 45 56 nt { PDERR_NODEV
0500: 49 43 45 53 20 3d 20 30 78 31 30 30 37 20 7d 0d ICES = 0x1007 }.
0510: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 .enum : uint { P
0520: 44 45 52 52 5f 4e 4f 44 45 46 41 55 4c 54 50 52 DERR_NODEFAULTPR
0530: 4e 20 3d 20 30 78 31 30 30 38 20 7d 0d 0a 65 6e N = 0x1008 }..en
0540: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 45 52 um : uint { PDER
0550: 52 5f 44 4e 44 4d 4d 49 53 4d 41 54 43 48 20 3d R_DNDMMISMATCH =
0560: 20 30 78 31 30 30 39 20 7d 0d 0a 65 6e 75 6d 20 0x1009 }..enum
0570: 3a 20 75 69 6e 74 20 7b 20 50 44 45 52 52 5f 43 : uint { PDERR_C
0580: 52 45 41 54 45 49 43 46 41 49 4c 55 52 45 20 3d REATEICFAILURE =
0590: 20 30 78 31 30 30 41 20 7d 0d 0a 65 6e 75 6d 20 0x100A }..enum
05a0: 3a 20 75 69 6e 74 20 7b 20 50 44 45 52 52 5f 50 : uint { PDERR_P
05b0: 52 49 4e 54 45 52 4e 4f 54 46 4f 55 4e 44 20 3d RINTERNOTFOUND =
05c0: 20 30 78 31 30 30 42 20 7d 0d 0a 65 6e 75 6d 20 0x100B }..enum
05d0: 3a 20 75 69 6e 74 20 7b 20 50 44 45 52 52 5f 44 : uint { PDERR_D
05e0: 45 46 41 55 4c 54 44 49 46 46 45 52 45 4e 54 20 EFAULTDIFFERENT
05f0: 3d 20 30 78 31 30 30 43 20 7d 0d 0a 0d 0a 65 6e = 0x100C }....en
0600: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 46 45 52 um : uint { CFER
0610: 52 5f 43 48 4f 4f 53 45 46 4f 4e 54 43 4f 44 45 R_CHOOSEFONTCODE
0620: 53 20 3d 20 30 78 32 30 30 30 20 7d 0d 0a 65 6e S = 0x2000 }..en
0630: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 46 45 52 um : uint { CFER
0640: 52 5f 4e 4f 46 4f 4e 54 53 20 3d 20 30 78 32 30 R_NOFONTS = 0x20
0650: 30 31 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 01 }..enum : uin
0660: 74 20 7b 20 43 46 45 52 52 5f 4d 41 58 4c 45 53 t { CFERR_MAXLES
0670: 53 54 48 41 4e 4d 49 4e 20 3d 20 30 78 32 30 30 STHANMIN = 0x200
0680: 32 20 7d 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 69 2 }....enum : ui
0690: 6e 74 20 7b 20 46 4e 45 52 52 5f 46 49 4c 45 4e nt { FNERR_FILEN
06a0: 41 4d 45 43 4f 44 45 53 20 3d 20 30 78 33 30 30 AMECODES = 0x300
06b0: 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 0 }..enum : uint
06c0: 20 7b 20 46 4e 45 52 52 5f 53 55 42 43 4c 41 53 { FNERR_SUBCLAS
06d0: 53 46 41 49 4c 55 52 45 20 3d 20 30 78 33 30 30 SFAILURE = 0x300
06e0: 31 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 1 }..enum : uint
06f0: 20 7b 20 46 4e 45 52 52 5f 49 4e 56 41 4c 49 44 { FNERR_INVALID
0700: 46 49 4c 45 4e 41 4d 45 20 3d 20 30 78 33 30 30 FILENAME = 0x300
0710: 32 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 2 }..enum : uint
0720: 20 7b 20 46 4e 45 52 52 5f 42 55 46 46 45 52 54 { FNERR_BUFFERT
0730: 4f 4f 53 4d 41 4c 4c 20 3d 20 30 78 33 30 30 33 OOSMALL = 0x3003
0740: 20 7d 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e }....enum : uin
0750: 74 20 7b 20 46 52 45 52 52 5f 46 49 4e 44 52 45 t { FRERR_FINDRE
0760: 50 4c 41 43 45 43 4f 44 45 53 20 3d 20 30 78 34 PLACECODES = 0x4
0770: 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 000 }..enum : ui
0780: 6e 74 20 7b 20 46 52 45 52 52 5f 42 55 46 46 45 nt { FRERR_BUFFE
0790: 52 4c 45 4e 47 54 48 5a 45 52 4f 20 3d 20 30 78 RLENGTHZERO = 0x
07a0: 34 30 30 31 20 7d 0d 0a 0d 0a 65 6e 75 6d 20 3a 4001 }....enum :
07b0: 20 75 69 6e 74 20 7b 20 43 43 45 52 52 5f 43 48 uint { CCERR_CH
07c0: 4f 4f 53 45 43 4f 4c 4f 52 43 4f 44 45 53 20 3d OOSECOLORCODES =
07d0: 20 30 78 35 30 30 30 20 7d 0d 0a 0d 0a 2f 2f 20 0x5000 }....//
07e0: 23 65 6e 64 69 66 20 20 2f 2a 20 21 5f 49 4e 43 #endif /* !_INC
07f0: 5f 43 44 45 52 52 20 2a 2f 0d 0a 2f 2f 20 2d 2d _CDERR */..// --
0800: 2d 2d 0d 0a 0d 0a 2f 2f 20 23 69 66 6e 64 65 66 --....// #ifndef
0810: 20 5f 49 4e 43 5f 43 4f 4d 4d 44 4c 47 0d 0a 2f _INC_COMMDLG../
0820: 2f 20 23 64 65 66 69 6e 65 20 5f 49 4e 43 5f 43 / #define _INC_C
0830: 4f 4d 4d 44 4c 47 0d 0a 0d 0a 2f 2f 20 23 69 66 OMMDLG....// #if
0840: 28 57 49 4e 56 45 52 20 3e 3d 20 30 78 30 35 30 (WINVER >= 0x050
0850: 30 29 0d 0a 0d 0a 2f 2f 20 23 69 66 64 65 66 20 0)....// #ifdef
0860: 44 45 46 49 4e 45 5f 47 55 49 44 0d 0a 0d 0a 2f DEFINE_GUID..../
0870: 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d / .......// ....
0880: 0a 0d 0a 2f 2f 20 23 65 6e 64 69 66 0d 0a 0d 0a ...// #endif....
0890: 2f 2f 20 23 65 6e 64 69 66 20 2f 2a 20 57 49 4e // #endif /* WIN
08a0: 56 45 52 20 3e 3d 20 30 78 30 35 30 30 20 2a 2f VER >= 0x0500 */
08b0: 0d 0a 0d 0a 2f 2f 20 23 69 66 6e 64 65 66 20 47 ....// #ifndef G
08c0: 55 49 44 5f 44 45 46 53 5f 4f 4e 4c 59 0d 0a 0d UID_DEFS_ONLY...
08d0: 0a 2f 2f 20 23 69 6e 63 6c 75 64 65 20 3c 70 72 .// #include <pr
08e0: 73 68 74 2e 68 3e 0d 0a 0d 0a 2f 2f 20 23 69 66 sht.h>....// #if
08f0: 20 21 64 65 66 69 6e 65 64 28 5f 57 49 4e 36 34 !defined(_WIN64
0900: 29 0d 0a 61 6c 69 67 6e 28 31 29 3a 0d 0a 2f 2f )..align(1):..//
0910: 20 23 65 6e 64 69 66 0d 0a 0d 0a 2f 2f 20 23 69 #endif....// #i
0920: 66 64 65 66 20 5f 5f 63 70 6c 75 73 70 6c 75 73 fdef __cplusplus
0930: 0d 0a 2f 2f 20 65 78 74 65 72 6e 20 22 43 22 20 ..// extern "C"
0940: 7b 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 { /*
0950: 41 73 73 75 6d 65 20 43 20 64 65 63 6c 61 72 61 Assume C declara
0960: 74 69 6f 6e 73 20 66 6f 72 20 43 2b 2b 20 2a 2f tions for C++ */
0970: 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 20 2f 2a 20 ..// #endif /*
0980: 5f 5f 63 70 6c 75 73 70 6c 75 73 20 2a 2f 0d 0a __cplusplus */..
0990: 0d 0a 2f 2f 20 23 69 66 6e 64 65 66 20 57 49 4e ..// #ifndef WIN
09a0: 43 4f 4d 4d 44 4c 47 41 50 49 0d 0a 2f 2f 20 23 COMMDLGAPI..// #
09b0: 69 66 20 21 64 65 66 69 6e 65 64 28 5f 43 4f 4d if !defined(_COM
09c0: 44 4c 47 33 32 5f 29 0d 0a 2f 2f 20 23 64 65 66 DLG32_)..// #def
09d0: 69 6e 65 20 57 49 4e 43 4f 4d 4d 44 4c 47 41 50 ine WINCOMMDLGAP
09e0: 49 20 44 45 43 4c 53 50 45 43 5f 49 4d 50 4f 52 I DECLSPEC_IMPOR
09f0: 54 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 T..// #else..//
0a00: 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 0d #.....// #endif.
0a10: 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 57 49 .// #endif // WI
0a20: 4e 43 4f 4d 4d 44 4c 47 41 50 49 0d 0a 0d 0a 2f NCOMMDLGAPI..../
0a30: 2f 20 23 69 66 28 57 49 4e 56 45 52 20 3e 3d 20 / #if(WINVER >=
0a40: 30 78 30 34 30 30 29 0d 0a 2f 2f 20 23 69 66 6e 0x0400)..// #ifn
0a50: 64 65 66 20 53 4e 44 4d 53 47 0d 0a 2f 2f 20 23 def SNDMSG..// #
0a60: 69 66 64 65 66 20 5f 5f 63 70 6c 75 73 70 6c 75 ifdef __cplusplu
0a70: 73 0d 0a 2f 2f 20 23 69 66 6e 64 65 66 20 5f 4d s..// #ifndef _M
0a80: 41 43 0d 0a 2f 2f 20 23 64 65 66 69 6e 65 20 53 AC..// #define S
0a90: 4e 44 4d 53 47 20 3a 3a 53 65 6e 64 4d 65 73 73 NDMSG ::SendMess
0aa0: 61 67 65 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a 2f age..// #else../
0ab0: 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 / #.....// #endi
0ac0: 66 0d 0a 2f 2f 20 23 65 6c 73 65 20 20 20 2f 2a f..// #else /*
0ad0: 20 5f 5f 63 70 6c 75 73 70 6c 75 73 20 2a 2f 0d __cplusplus */.
0ae0: 0a 2f 2f 20 23 69 66 6e 64 65 66 20 5f 4d 41 43 .// #ifndef _MAC
0af0: 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 ..// #.....// #e
0b00: 6c 73 65 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f lse..// #.....//
0b10: 20 23 65 6e 64 69 66 0d 0a 2f 2f 20 23 65 6e 64 #endif..// #end
0b20: 69 66 20 20 2f 2a 20 5f 5f 63 70 6c 75 73 70 6c if /* __cpluspl
0b30: 75 73 20 2a 2f 0d 0a 2f 2f 20 23 65 6e 64 69 66 us */..// #endif
0b40: 20 20 2f 2f 20 69 66 6e 64 65 66 20 53 4e 44 4d // ifndef SNDM
0b50: 53 47 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2a SG..// #endif /*
0b60: 20 57 49 4e 56 45 52 20 3e 3d 20 30 78 30 34 30 WINVER >= 0x040
0b70: 30 20 2a 2f 0d 0a 0d 0a 2f 2f 20 23 69 66 64 65 0 */....// #ifde
0b80: 66 20 5f 4d 41 43 0d 0a 2f 2f 20 2e 2e 2e 0d 0a f _MAC..// .....
0b90: 2f 2f 20 23 65 6e 64 69 66 0d 0a 0d 0a 65 78 74 // #endif....ext
0ba0: 65 72 6e 28 57 69 6e 64 6f 77 73 29 20 61 6c 69 ern(Windows) ali
0bb0: 61 73 20 55 49 4e 54 5f 50 54 52 20 66 75 6e 63 as UINT_PTR func
0bc0: 74 69 6f 6e 28 48 57 4e 44 2c 20 55 49 4e 54 2c tion(HWND, UINT,
0bd0: 20 57 50 41 52 41 4d 2c 20 4c 50 41 52 41 4d 29 WPARAM, LPARAM)
0be0: 20 4c 50 4f 46 4e 48 4f 4f 4b 50 52 4f 43 3b 0d LPOFNHOOKPROC;.
0bf0: 0a 0d 0a 2f 2f 20 23 69 66 6e 64 65 66 20 43 44 ...// #ifndef CD
0c00: 53 49 5a 45 4f 46 5f 53 54 52 55 43 54 0d 0a 2f SIZEOF_STRUCT../
0c10: 2f 20 23 64 65 66 69 6e 65 20 43 44 53 49 5a 45 / #define CDSIZE
0c20: 4f 46 5f 53 54 52 55 43 54 28 73 74 72 75 63 74 OF_STRUCT(struct
0c30: 6e 61 6d 65 2c 20 6d 65 6d 62 65 72 29 20 28 28 name, member) ((
0c40: 28 69 6e 74 29 28 28 4c 50 42 59 54 45 29 28 26 (int)((LPBYTE)(&
0c50: 28 28 73 74 72 75 63 74 6e 61 6d 65 2a 29 30 29 ((structname*)0)
0c60: 2d 3e 6d 65 6d 62 65 72 29 20 2d 20 28 28 4c 50 ->member) - ((LP
0c70: 42 59 54 45 29 28 28 73 74 72 75 63 74 6e 61 6d BYTE)((structnam
0c80: 65 2a 29 30 29 29 29 29 20 2b 20 73 69 7a 65 6f e*)0)))) + sizeo
0c90: 66 28 28 28 73 74 72 75 63 74 6e 61 6d 65 2a 29 f(((structname*)
0ca0: 30 29 2d 3e 6d 65 6d 62 65 72 29 29 0d 0a 2f 2f 0)->member))..//
0cb0: 20 23 65 6e 64 69 66 0d 0a 0d 0a 2f 2f 20 23 69 #endif....// #i
0cc0: 66 6e 64 65 66 20 44 55 4d 4d 59 55 4e 49 4f 4e fndef DUMMYUNION
0cd0: 4e 41 4d 45 0d 0a 2f 2f 20 23 69 66 64 65 66 20 NAME..// #ifdef
0ce0: 4e 4f 4e 41 4d 45 4c 45 53 53 55 4e 49 4f 4e 0d NONAMELESSUNION.
0cf0: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e .// #.....// #en
0d00: 64 69 66 20 2f 2f 20 4e 4f 4e 41 4d 45 4c 45 53 dif // NONAMELES
0d10: 53 55 4e 49 4f 4e 0d 0a 2f 2f 20 23 65 6e 64 69 SUNION..// #endi
0d20: 66 20 2f 2f 20 44 55 4d 4d 59 55 4e 49 4f 4e 4e f // DUMMYUNIONN
0d30: 41 4d 45 0d 0a 0d 0a 73 74 72 75 63 74 20 74 61 AME....struct ta
0d40: 67 4f 46 4e 5f 4e 54 34 41 20 7b 0d 0a 20 20 44 gOFN_NT4A {.. D
0d50: 57 4f 52 44 20 6c 53 74 72 75 63 74 53 69 7a 65 WORD lStructSize
0d60: 3b 0d 0a 20 20 48 57 4e 44 20 68 77 6e 64 4f 77 ;.. HWND hwndOw
0d70: 6e 65 72 3b 0d 0a 20 20 48 49 4e 53 54 41 4e 43 ner;.. HINSTANC
0d80: 45 20 68 49 6e 73 74 61 6e 63 65 3b 0d 0a 20 20 E hInstance;..
0d90: 4c 50 43 53 54 52 20 6c 70 73 74 72 46 69 6c 74 LPCSTR lpstrFilt
0da0: 65 72 3b 0d 0a 20 20 4c 50 53 54 52 20 6c 70 73 er;.. LPSTR lps
0db0: 74 72 43 75 73 74 6f 6d 46 69 6c 74 65 72 3b 0d trCustomFilter;.
0dc0: 0a 20 20 44 57 4f 52 44 20 6e 4d 61 78 43 75 73 . DWORD nMaxCus
0dd0: 74 46 69 6c 74 65 72 3b 0d 0a 20 20 44 57 4f 52 tFilter;.. DWOR
0de0: 44 20 6e 46 69 6c 74 65 72 49 6e 64 65 78 3b 0d D nFilterIndex;.
0df0: 0a 20 20 4c 50 53 54 52 20 6c 70 73 74 72 46 69 . LPSTR lpstrFi
0e00: 6c 65 3b 0d 0a 20 20 44 57 4f 52 44 20 6e 4d 61 le;.. DWORD nMa
0e10: 78 46 69 6c 65 3b 0d 0a 20 20 4c 50 53 54 52 20 xFile;.. LPSTR
0e20: 6c 70 73 74 72 46 69 6c 65 54 69 74 6c 65 3b 0d lpstrFileTitle;.
0e30: 0a 20 20 44 57 4f 52 44 20 6e 4d 61 78 46 69 6c . DWORD nMaxFil
0e40: 65 54 69 74 6c 65 3b 0d 0a 20 20 4c 50 43 53 54 eTitle;.. LPCST
0e50: 52 20 6c 70 73 74 72 49 6e 69 74 69 61 6c 44 69 R lpstrInitialDi
0e60: 72 3b 0d 0a 20 20 4c 50 43 53 54 52 20 6c 70 73 r;.. LPCSTR lps
0e70: 74 72 54 69 74 6c 65 3b 0d 0a 20 20 44 57 4f 52 trTitle;.. DWOR
0e80: 44 20 46 6c 61 67 73 3b 0d 0a 20 20 57 4f 52 44 D Flags;.. WORD
0e90: 20 6e 46 69 6c 65 4f 66 66 73 65 74 3b 0d 0a 20 nFileOffset;..
0ea0: 20 57 4f 52 44 20 6e 46 69 6c 65 45 78 74 65 6e WORD nFileExten
0eb0: 73 69 6f 6e 3b 0d 0a 20 20 4c 50 43 53 54 52 20 sion;.. LPCSTR
0ec0: 6c 70 73 74 72 44 65 66 45 78 74 3b 0d 0a 20 20 lpstrDefExt;..
0ed0: 4c 50 41 52 41 4d 20 6c 43 75 73 74 44 61 74 61 LPARAM lCustData
0ee0: 3b 0d 0a 20 20 4c 50 4f 46 4e 48 4f 4f 4b 50 52 ;.. LPOFNHOOKPR
0ef0: 4f 43 20 6c 70 66 6e 48 6f 6f 6b 3b 0d 0a 20 20 OC lpfnHook;..
0f00: 4c 50 43 53 54 52 20 6c 70 54 65 6d 70 6c 61 74 LPCSTR lpTemplat
0f10: 65 4e 61 6d 65 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 eName;..}..alias
0f20: 20 74 61 67 4f 46 4e 5f 4e 54 34 41 20 4f 50 45 tagOFN_NT4A OPE
0f30: 4e 46 49 4c 45 4e 41 4d 45 5f 4e 54 34 41 3b 0d NFILENAME_NT4A;.
0f40: 0a 61 6c 69 61 73 20 74 61 67 4f 46 4e 5f 4e 54 .alias tagOFN_NT
0f50: 34 41 2a 20 4c 50 4f 50 45 4e 46 49 4c 45 4e 41 4A* LPOPENFILENA
0f60: 4d 45 5f 4e 54 34 41 3b 0d 0a 0d 0a 73 74 72 75 ME_NT4A;....stru
0f70: 63 74 20 74 61 67 4f 46 4e 5f 4e 54 34 57 20 7b ct tagOFN_NT4W {
0f80: 0d 0a 20 20 44 57 4f 52 44 20 6c 53 74 72 75 63 .. DWORD lStruc
0f90: 74 53 69 7a 65 3b 0d 0a 20 20 48 57 4e 44 20 68 tSize;.. HWND h
0fa0: 77 6e 64 4f 77 6e 65 72 3b 0d 0a 20 20 48 49 4e wndOwner;.. HIN
0fb0: 53 54 41 4e 43 45 20 68 49 6e 73 74 61 6e 63 65 STANCE hInstance
0fc0: 3b 0d 0a 20 20 4c 50 43 57 53 54 52 20 6c 70 73 ;.. LPCWSTR lps
0fd0: 74 72 46 69 6c 74 65 72 3b 0d 0a 20 20 4c 50 57 trFilter;.. LPW
0fe0: 53 54 52 20 6c 70 73 74 72 43 75 73 74 6f 6d 46 STR lpstrCustomF
0ff0: 69 6c 74 65 72 3b 0d 0a 20 20 44 57 4f 52 44 20 ilter;.. DWORD
1000: 6e 4d 61 78 43 75 73 74 46 69 6c 74 65 72 3b 0d nMaxCustFilter;.
1010: 0a 20 20 44 57 4f 52 44 20 6e 46 69 6c 74 65 72 . DWORD nFilter
1020: 49 6e 64 65 78 3b 0d 0a 20 20 4c 50 57 53 54 52 Index;.. LPWSTR
1030: 20 6c 70 73 74 72 46 69 6c 65 3b 0d 0a 20 20 44 lpstrFile;.. D
1040: 57 4f 52 44 20 6e 4d 61 78 46 69 6c 65 3b 0d 0a WORD nMaxFile;..
1050: 20 20 4c 50 57 53 54 52 20 6c 70 73 74 72 46 69 LPWSTR lpstrFi
1060: 6c 65 54 69 74 6c 65 3b 0d 0a 20 20 44 57 4f 52 leTitle;.. DWOR
1070: 44 20 6e 4d 61 78 46 69 6c 65 54 69 74 6c 65 3b D nMaxFileTitle;
1080: 0d 0a 20 20 4c 50 43 57 53 54 52 20 6c 70 73 74 .. LPCWSTR lpst
1090: 72 49 6e 69 74 69 61 6c 44 69 72 3b 0d 0a 20 20 rInitialDir;..
10a0: 4c 50 43 57 53 54 52 20 6c 70 73 74 72 54 69 74 LPCWSTR lpstrTit
10b0: 6c 65 3b 0d 0a 20 20 44 57 4f 52 44 20 46 6c 61 le;.. DWORD Fla
10c0: 67 73 3b 0d 0a 20 20 57 4f 52 44 20 6e 46 69 6c gs;.. WORD nFil
10d0: 65 4f 66 66 73 65 74 3b 0d 0a 20 20 57 4f 52 44 eOffset;.. WORD
10e0: 20 6e 46 69 6c 65 45 78 74 65 6e 73 69 6f 6e 3b nFileExtension;
10f0: 0d 0a 20 20 4c 50 43 57 53 54 52 20 6c 70 73 74 .. LPCWSTR lpst
1100: 72 44 65 66 45 78 74 3b 0d 0a 20 20 4c 50 41 52 rDefExt;.. LPAR
1110: 41 4d 20 6c 43 75 73 74 44 61 74 61 3b 0d 0a 20 AM lCustData;..
1120: 20 4c 50 4f 46 4e 48 4f 4f 4b 50 52 4f 43 20 6c LPOFNHOOKPROC l
1130: 70 66 6e 48 6f 6f 6b 3b 0d 0a 20 20 4c 50 43 57 pfnHook;.. LPCW
1140: 53 54 52 20 6c 70 54 65 6d 70 6c 61 74 65 4e 61 STR lpTemplateNa
1150: 6d 65 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 74 61 me;..}..alias ta
1160: 67 4f 46 4e 5f 4e 54 34 57 20 4f 50 45 4e 46 49 gOFN_NT4W OPENFI
1170: 4c 45 4e 41 4d 45 5f 4e 54 34 57 3b 0d 0a 61 6c LENAME_NT4W;..al
1180: 69 61 73 20 74 61 67 4f 46 4e 5f 4e 54 34 57 2a ias tagOFN_NT4W*
1190: 20 4c 50 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 5f LPOPENFILENAME_
11a0: 4e 54 34 57 3b 0d 0a 0d 0a 2f 2f 20 23 69 66 64 NT4W;....// #ifd
11b0: 65 66 20 55 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 ef UNICODE..alia
11c0: 73 20 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 5f 4e s OPENFILENAME_N
11d0: 54 34 57 20 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 T4W OPENFILENAME
11e0: 5f 4e 54 34 3b 0d 0a 61 6c 69 61 73 20 4c 50 4f _NT4;..alias LPO
11f0: 50 45 4e 46 49 4c 45 4e 41 4d 45 5f 4e 54 34 57 PENFILENAME_NT4W
1200: 20 4c 50 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 5f LPOPENFILENAME_
1210: 4e 54 34 3b 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a NT4;..// #else..
1220: 2f 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 // .....// #endi
1230: 66 20 2f 2f 20 55 4e 49 43 4f 44 45 0d 0a 0d 0a f // UNICODE....
1240: 73 74 72 75 63 74 20 74 61 67 4f 46 4e 41 20 7b struct tagOFNA {
1250: 0d 0a 20 20 44 57 4f 52 44 20 6c 53 74 72 75 63 .. DWORD lStruc
1260: 74 53 69 7a 65 3b 0d 0a 20 20 48 57 4e 44 20 68 tSize;.. HWND h
1270: 77 6e 64 4f 77 6e 65 72 3b 0d 0a 20 20 48 49 4e wndOwner;.. HIN
1280: 53 54 41 4e 43 45 20 68 49 6e 73 74 61 6e 63 65 STANCE hInstance
1290: 3b 0d 0a 20 20 4c 50 43 53 54 52 20 6c 70 73 74 ;.. LPCSTR lpst
12a0: 72 46 69 6c 74 65 72 3b 0d 0a 20 20 4c 50 53 54 rFilter;.. LPST
12b0: 52 20 6c 70 73 74 72 43 75 73 74 6f 6d 46 69 6c R lpstrCustomFil
12c0: 74 65 72 3b 0d 0a 20 20 44 57 4f 52 44 20 6e 4d ter;.. DWORD nM
12d0: 61 78 43 75 73 74 46 69 6c 74 65 72 3b 0d 0a 20 axCustFilter;..
12e0: 20 44 57 4f 52 44 20 6e 46 69 6c 74 65 72 49 6e DWORD nFilterIn
12f0: 64 65 78 3b 0d 0a 20 20 4c 50 53 54 52 20 6c 70 dex;.. LPSTR lp
1300: 73 74 72 46 69 6c 65 3b 0d 0a 20 20 44 57 4f 52 strFile;.. DWOR
1310: 44 20 6e 4d 61 78 46 69 6c 65 3b 0d 0a 20 20 4c D nMaxFile;.. L
1320: 50 53 54 52 20 6c 70 73 74 72 46 69 6c 65 54 69 PSTR lpstrFileTi
1330: 74 6c 65 3b 0d 0a 20 20 44 57 4f 52 44 20 6e 4d tle;.. DWORD nM
1340: 61 78 46 69 6c 65 54 69 74 6c 65 3b 0d 0a 20 20 axFileTitle;..
1350: 4c 50 43 53 54 52 20 6c 70 73 74 72 49 6e 69 74 LPCSTR lpstrInit
1360: 69 61 6c 44 69 72 3b 0d 0a 20 20 4c 50 43 53 54 ialDir;.. LPCST
1370: 52 20 6c 70 73 74 72 54 69 74 6c 65 3b 0d 0a 20 R lpstrTitle;..
1380: 20 44 57 4f 52 44 20 46 6c 61 67 73 3b 0d 0a 20 DWORD Flags;..
1390: 20 57 4f 52 44 20 6e 46 69 6c 65 4f 66 66 73 65 WORD nFileOffse
13a0: 74 3b 0d 0a 20 20 57 4f 52 44 20 6e 46 69 6c 65 t;.. WORD nFile
13b0: 45 78 74 65 6e 73 69 6f 6e 3b 0d 0a 20 20 4c 50 Extension;.. LP
13c0: 43 53 54 52 20 6c 70 73 74 72 44 65 66 45 78 74 CSTR lpstrDefExt
13d0: 3b 0d 0a 20 20 4c 50 41 52 41 4d 20 6c 43 75 73 ;.. LPARAM lCus
13e0: 74 44 61 74 61 3b 0d 0a 20 20 4c 50 4f 46 4e 48 tData;.. LPOFNH
13f0: 4f 4f 4b 50 52 4f 43 20 6c 70 66 6e 48 6f 6f 6b OOKPROC lpfnHook
1400: 3b 0d 0a 20 20 4c 50 43 53 54 52 20 6c 70 54 65 ;.. LPCSTR lpTe
1410: 6d 70 6c 61 74 65 4e 61 6d 65 3b 0d 0a 2f 2f 20 mplateName;..//
1420: 23 69 66 64 65 66 20 5f 4d 41 43 0d 0a 2f 2f 20 #ifdef _MAC..//
1430: 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 0d 0a .....// #endif..
1440: 2f 2f 20 23 69 66 20 28 5f 57 49 4e 33 32 5f 57 // #if (_WIN32_W
1450: 49 4e 4e 54 20 3e 3d 20 30 78 30 35 30 30 29 0d INNT >= 0x0500).
1460: 0a 20 20 76 6f 69 64 20 2a 09 09 70 76 52 65 73 . void *..pvRes
1470: 65 72 76 65 64 3b 0d 0a 20 20 44 57 4f 52 44 20 erved;.. DWORD
1480: 64 77 52 65 73 65 72 76 65 64 3b 0d 0a 20 20 44 dwReserved;.. D
1490: 57 4f 52 44 20 46 6c 61 67 73 45 78 3b 0d 0a 2f WORD FlagsEx;../
14a0: 2f 20 23 65 6e 64 69 66 20 2f 2f 20 28 5f 57 49 / #endif // (_WI
14b0: 4e 33 32 5f 57 49 4e 4e 54 20 3e 3d 20 30 78 30 N32_WINNT >= 0x0
14c0: 35 30 30 29 0d 0a 7d 0d 0a 61 6c 69 61 73 20 74 500)..}..alias t
14d0: 61 67 4f 46 4e 41 20 4f 50 45 4e 46 49 4c 45 4e agOFNA OPENFILEN
14e0: 41 4d 45 41 3b 0d 0a 61 6c 69 61 73 20 74 61 67 AMEA;..alias tag
14f0: 4f 46 4e 41 2a 20 4c 50 4f 50 45 4e 46 49 4c 45 OFNA* LPOPENFILE
1500: 4e 41 4d 45 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 NAMEA;....struct
1510: 20 74 61 67 4f 46 4e 57 20 7b 0d 0a 20 20 44 57 tagOFNW {.. DW
1520: 4f 52 44 20 6c 53 74 72 75 63 74 53 69 7a 65 3b ORD lStructSize;
1530: 0d 0a 20 20 48 57 4e 44 20 68 77 6e 64 4f 77 6e .. HWND hwndOwn
1540: 65 72 3b 0d 0a 20 20 48 49 4e 53 54 41 4e 43 45 er;.. HINSTANCE
1550: 20 68 49 6e 73 74 61 6e 63 65 3b 0d 0a 20 20 4c hInstance;.. L
1560: 50 43 57 53 54 52 20 6c 70 73 74 72 46 69 6c 74 PCWSTR lpstrFilt
1570: 65 72 3b 0d 0a 20 20 4c 50 57 53 54 52 20 6c 70 er;.. LPWSTR lp
1580: 73 74 72 43 75 73 74 6f 6d 46 69 6c 74 65 72 3b strCustomFilter;
1590: 0d 0a 20 20 44 57 4f 52 44 20 6e 4d 61 78 43 75 .. DWORD nMaxCu
15a0: 73 74 46 69 6c 74 65 72 3b 0d 0a 20 20 44 57 4f stFilter;.. DWO
15b0: 52 44 20 6e 46 69 6c 74 65 72 49 6e 64 65 78 3b RD nFilterIndex;
15c0: 0d 0a 20 20 4c 50 57 53 54 52 20 6c 70 73 74 72 .. LPWSTR lpstr
15d0: 46 69 6c 65 3b 0d 0a 20 20 44 57 4f 52 44 20 6e File;.. DWORD n
15e0: 4d 61 78 46 69 6c 65 3b 0d 0a 20 20 4c 50 57 53 MaxFile;.. LPWS
15f0: 54 52 20 6c 70 73 74 72 46 69 6c 65 54 69 74 6c TR lpstrFileTitl
1600: 65 3b 0d 0a 20 20 44 57 4f 52 44 20 6e 4d 61 78 e;.. DWORD nMax
1610: 46 69 6c 65 54 69 74 6c 65 3b 0d 0a 20 20 4c 50 FileTitle;.. LP
1620: 43 57 53 54 52 20 6c 70 73 74 72 49 6e 69 74 69 CWSTR lpstrIniti
1630: 61 6c 44 69 72 3b 0d 0a 20 20 4c 50 43 57 53 54 alDir;.. LPCWST
1640: 52 20 6c 70 73 74 72 54 69 74 6c 65 3b 0d 0a 20 R lpstrTitle;..
1650: 20 44 57 4f 52 44 20 46 6c 61 67 73 3b 0d 0a 20 DWORD Flags;..
1660: 20 57 4f 52 44 20 6e 46 69 6c 65 4f 66 66 73 65 WORD nFileOffse
1670: 74 3b 0d 0a 20 20 57 4f 52 44 20 6e 46 69 6c 65 t;.. WORD nFile
1680: 45 78 74 65 6e 73 69 6f 6e 3b 0d 0a 20 20 4c 50 Extension;.. LP
1690: 43 57 53 54 52 20 6c 70 73 74 72 44 65 66 45 78 CWSTR lpstrDefEx
16a0: 74 3b 0d 0a 20 20 4c 50 41 52 41 4d 20 6c 43 75 t;.. LPARAM lCu
16b0: 73 74 44 61 74 61 3b 0d 0a 20 20 4c 50 4f 46 4e stData;.. LPOFN
16c0: 48 4f 4f 4b 50 52 4f 43 20 6c 70 66 6e 48 6f 6f HOOKPROC lpfnHoo
16d0: 6b 3b 0d 0a 20 20 4c 50 43 57 53 54 52 20 6c 70 k;.. LPCWSTR lp
16e0: 54 65 6d 70 6c 61 74 65 4e 61 6d 65 3b 0d 0a 2f TemplateName;../
16f0: 2f 20 23 69 66 64 65 66 20 5f 4d 41 43 0d 0a 2f / #ifdef _MAC../
1700: 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 / .....// #endif
1710: 0d 0a 2f 2f 20 23 69 66 20 28 5f 57 49 4e 33 32 ..// #if (_WIN32
1720: 5f 57 49 4e 4e 54 20 3e 3d 20 30 78 30 35 30 30 _WINNT >= 0x0500
1730: 29 0d 0a 20 20 76 6f 69 64 20 2a 09 09 70 76 52 ).. void *..pvR
1740: 65 73 65 72 76 65 64 3b 0d 0a 20 20 44 57 4f 52 eserved;.. DWOR
1750: 44 20 64 77 52 65 73 65 72 76 65 64 3b 0d 0a 20 D dwReserved;..
1760: 20 44 57 4f 52 44 20 46 6c 61 67 73 45 78 3b 0d DWORD FlagsEx;.
1770: 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 28 5f .// #endif // (_
1780: 57 49 4e 33 32 5f 57 49 4e 4e 54 20 3e 3d 20 30 WIN32_WINNT >= 0
1790: 78 30 35 30 30 29 0d 0a 7d 0d 0a 61 6c 69 61 73 x0500)..}..alias
17a0: 20 74 61 67 4f 46 4e 57 20 4f 50 45 4e 46 49 4c tagOFNW OPENFIL
17b0: 45 4e 41 4d 45 57 3b 0d 0a 61 6c 69 61 73 20 74 ENAMEW;..alias t
17c0: 61 67 4f 46 4e 57 2a 20 4c 50 4f 50 45 4e 46 49 agOFNW* LPOPENFI
17d0: 4c 45 4e 41 4d 45 57 3b 0d 0a 0d 0a 2f 2f 20 23 LENAMEW;....// #
17e0: 69 66 64 65 66 20 55 4e 49 43 4f 44 45 0d 0a 61 ifdef UNICODE..a
17f0: 6c 69 61 73 20 4f 50 45 4e 46 49 4c 45 4e 41 4d lias OPENFILENAM
1800: 45 57 20 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 3b EW OPENFILENAME;
1810: 0d 0a 61 6c 69 61 73 20 4c 50 4f 50 45 4e 46 49 ..alias LPOPENFI
1820: 4c 45 4e 41 4d 45 57 20 4c 50 4f 50 45 4e 46 49 LENAMEW LPOPENFI
1830: 4c 45 4e 41 4d 45 3b 0d 0a 2f 2f 20 23 65 6c 73 LENAME;..// #els
1840: 65 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 65 e..// .....// #e
1850: 6e 64 69 66 20 2f 2f 20 55 4e 49 43 4f 44 45 0d ndif // UNICODE.
1860: 0a 0d 0a 2f 2f 20 23 69 66 20 28 5f 57 49 4e 33 ...// #if (_WIN3
1870: 32 5f 57 49 4e 4e 54 20 3e 3d 20 30 78 30 35 30 2_WINNT >= 0x050
1880: 30 29 0d 0a 2f 2f 20 23 64 65 66 69 6e 65 20 4f 0)..// #define O
1890: 50 45 4e 46 49 4c 45 4e 41 4d 45 5f 53 49 5a 45 PENFILENAME_SIZE
18a0: 5f 56 45 52 53 49 4f 4e 5f 34 30 30 41 20 43 44 _VERSION_400A CD
18b0: 53 49 5a 45 4f 46 5f 53 54 52 55 43 54 28 4f 50 SIZEOF_STRUCT(OP
18c0: 45 4e 46 49 4c 45 4e 41 4d 45 41 2c 6c 70 54 65 ENFILENAMEA,lpTe
18d0: 6d 70 6c 61 74 65 4e 61 6d 65 29 0d 0a 2f 2f 20 mplateName)..//
18e0: 23 64 65 66 69 6e 65 20 4f 50 45 4e 46 49 4c 45 #define OPENFILE
18f0: 4e 41 4d 45 5f 53 49 5a 45 5f 56 45 52 53 49 4f NAME_SIZE_VERSIO
1900: 4e 5f 34 30 30 57 20 43 44 53 49 5a 45 4f 46 5f N_400W CDSIZEOF_
1910: 53 54 52 55 43 54 28 4f 50 45 4e 46 49 4c 45 4e STRUCT(OPENFILEN
1920: 41 4d 45 57 2c 6c 70 54 65 6d 70 6c 61 74 65 4e AMEW,lpTemplateN
1930: 61 6d 65 29 0d 0a 2f 2f 20 23 69 66 64 65 66 20 ame)..// #ifdef
1940: 55 4e 49 43 4f 44 45 0d 0a 2f 2f 20 23 64 65 66 UNICODE..// #def
1950: 69 6e 65 20 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 ine OPENFILENAME
1960: 5f 53 49 5a 45 5f 56 45 52 53 49 4f 4e 5f 34 30 _SIZE_VERSION_40
1970: 30 20 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 5f 53 0 OPENFILENAME_S
1980: 49 5a 45 5f 56 45 52 53 49 4f 4e 5f 34 30 30 57 IZE_VERSION_400W
1990: 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 23 ..// #else..// #
19a0: 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f .....// #endif /
19b0: 2f 20 21 55 4e 49 43 4f 44 45 0d 0a 2f 2f 20 23 / !UNICODE..// #
19c0: 65 6e 64 69 66 20 2f 2f 20 28 5f 57 49 4e 33 32 endif // (_WIN32
19d0: 5f 57 49 4e 4e 54 20 3e 3d 20 30 78 30 35 30 30 _WINNT >= 0x0500
19e0: 29 0d 0a 0d 0a 65 78 74 65 72 6e 28 57 69 6e 64 )....extern(Wind
19f0: 6f 77 73 29 20 65 78 70 6f 72 74 20 42 4f 4f 4c ows) export BOOL
1a00: 20 47 65 74 4f 70 65 6e 46 69 6c 65 4e 61 6d 65 GetOpenFileName
1a10: 41 28 4c 50 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 A(LPOPENFILENAME
1a20: 41 29 3b 0d 0a 65 78 74 65 72 6e 28 57 69 6e 64 A);..extern(Wind
1a30: 6f 77 73 29 20 65 78 70 6f 72 74 20 42 4f 4f 4c ows) export BOOL
1a40: 20 47 65 74 4f 70 65 6e 46 69 6c 65 4e 61 6d 65 GetOpenFileName
1a50: 57 28 4c 50 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 W(LPOPENFILENAME
1a60: 57 29 3b 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 W);..// #ifdef U
1a70: 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 73 20 47 65 NICODE..alias Ge
1a80: 74 4f 70 65 6e 46 69 6c 65 4e 61 6d 65 57 20 47 tOpenFileNameW G
1a90: 65 74 4f 70 65 6e 46 69 6c 65 4e 61 6d 65 3b 0d etOpenFileName;.
1aa0: 0a 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 23 2e .// #else..// #.
1ab0: 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2f ....// #endif //
1ac0: 20 21 55 4e 49 43 4f 44 45 0d 0a 65 78 74 65 72 !UNICODE..exter
1ad0: 6e 28 57 69 6e 64 6f 77 73 29 20 65 78 70 6f 72 n(Windows) expor
1ae0: 74 20 42 4f 4f 4c 20 47 65 74 53 61 76 65 46 69 t BOOL GetSaveFi
1af0: 6c 65 4e 61 6d 65 41 28 4c 50 4f 50 45 4e 46 49 leNameA(LPOPENFI
1b00: 4c 45 4e 41 4d 45 41 29 3b 0d 0a 65 78 74 65 72 LENAMEA);..exter
1b10: 6e 28 57 69 6e 64 6f 77 73 29 20 65 78 70 6f 72 n(Windows) expor
1b20: 74 20 42 4f 4f 4c 20 47 65 74 53 61 76 65 46 69 t BOOL GetSaveFi
1b30: 6c 65 4e 61 6d 65 57 28 4c 50 4f 50 45 4e 46 49 leNameW(LPOPENFI
1b40: 4c 45 4e 41 4d 45 57 29 3b 0d 0a 2f 2f 20 23 69 LENAMEW);..// #i
1b50: 66 64 65 66 20 55 4e 49 43 4f 44 45 0d 0a 61 6c fdef UNICODE..al
1b60: 69 61 73 20 47 65 74 53 61 76 65 46 69 6c 65 4e ias GetSaveFileN
1b70: 61 6d 65 57 20 47 65 74 53 61 76 65 46 69 6c 65 ameW GetSaveFile
1b80: 4e 61 6d 65 3b 0d 0a 2f 2f 20 23 65 6c 73 65 0d Name;..// #else.
1b90: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e .// #.....// #en
1ba0: 64 69 66 20 2f 2f 20 21 55 4e 49 43 4f 44 45 0d dif // !UNICODE.
1bb0: 0a 0d 0a 65 78 74 65 72 6e 28 57 69 6e 64 6f 77 ...extern(Window
1bc0: 73 29 20 65 78 70 6f 72 74 20 73 68 6f 72 74 20 s) export short
1bd0: 47 65 74 46 69 6c 65 54 69 74 6c 65 41 28 4c 50 GetFileTitleA(LP
1be0: 43 53 54 52 2c 20 4c 50 53 54 52 2c 20 57 4f 52 CSTR, LPSTR, WOR
1bf0: 44 29 3b 0d 0a 65 78 74 65 72 6e 28 57 69 6e 64 D);..extern(Wind
1c00: 6f 77 73 29 20 65 78 70 6f 72 74 20 73 68 6f 72 ows) export shor
1c10: 74 20 47 65 74 46 69 6c 65 54 69 74 6c 65 57 28 t GetFileTitleW(
1c20: 4c 50 43 57 53 54 52 2c 20 4c 50 57 53 54 52 2c LPCWSTR, LPWSTR,
1c30: 20 57 4f 52 44 29 3b 0d 0a 2f 2f 20 23 69 66 64 WORD);..// #ifd
1c40: 65 66 20 55 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 ef UNICODE..alia
1c50: 73 20 47 65 74 46 69 6c 65 54 69 74 6c 65 57 20 s GetFileTitleW
1c60: 47 65 74 46 69 6c 65 54 69 74 6c 65 3b 0d 0a 2f GetFileTitle;../
1c70: 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 23 2e 2e 2e / #else..// #...
1c80: 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 21 ..// #endif // !
1c90: 55 4e 49 43 4f 44 45 0d 0a 0d 0a 65 6e 75 6d 20 UNICODE....enum
1ca0: 3a 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 52 45 41 : uint { OFN_REA
1cb0: 44 4f 4e 4c 59 20 3d 20 30 78 30 30 30 30 30 30 DONLY = 0x000000
1cc0: 30 31 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 01 }..enum : uin
1cd0: 74 20 7b 20 4f 46 4e 5f 4f 56 45 52 57 52 49 54 t { OFN_OVERWRIT
1ce0: 45 50 52 4f 4d 50 54 20 3d 20 30 78 30 30 30 30 EPROMPT = 0x0000
1cf0: 30 30 30 32 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 0002 }..enum : u
1d00: 69 6e 74 20 7b 20 4f 46 4e 5f 48 49 44 45 52 45 int { OFN_HIDERE
1d10: 41 44 4f 4e 4c 59 20 3d 20 30 78 30 30 30 30 30 ADONLY = 0x00000
1d20: 30 30 34 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 004 }..enum : ui
1d30: 6e 74 20 7b 20 4f 46 4e 5f 4e 4f 43 48 41 4e 47 nt { OFN_NOCHANG
1d40: 45 44 49 52 20 3d 20 30 78 30 30 30 30 30 30 30 EDIR = 0x0000000
1d50: 38 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 8 }..enum : uint
1d60: 20 7b 20 4f 46 4e 5f 53 48 4f 57 48 45 4c 50 20 { OFN_SHOWHELP
1d70: 3d 20 30 78 30 30 30 30 30 30 31 30 20 7d 0d 0a = 0x00000010 }..
1d80: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 4f 46 enum : uint { OF
1d90: 4e 5f 45 4e 41 42 4c 45 48 4f 4f 4b 20 3d 20 30 N_ENABLEHOOK = 0
1da0: 78 30 30 30 30 30 30 32 30 20 7d 0d 0a 65 6e 75 x00000020 }..enu
1db0: 6d 20 3a 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 45 m : uint { OFN_E
1dc0: 4e 41 42 4c 45 54 45 4d 50 4c 41 54 45 20 3d 20 NABLETEMPLATE =
1dd0: 30 78 30 30 30 30 30 30 34 30 20 7d 0d 0a 65 6e 0x00000040 }..en
1de0: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 4f 46 4e 5f um : uint { OFN_
1df0: 45 4e 41 42 4c 45 54 45 4d 50 4c 41 54 45 48 41 ENABLETEMPLATEHA
1e00: 4e 44 4c 45 20 3d 20 30 78 30 30 30 30 30 30 38 NDLE = 0x0000008
1e10: 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 0 }..enum : uint
1e20: 20 7b 20 4f 46 4e 5f 4e 4f 56 41 4c 49 44 41 54 { OFN_NOVALIDAT
1e30: 45 20 3d 20 30 78 30 30 30 30 30 31 30 30 20 7d E = 0x00000100 }
1e40: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
1e50: 4f 46 4e 5f 41 4c 4c 4f 57 4d 55 4c 54 49 53 45 OFN_ALLOWMULTISE
1e60: 4c 45 43 54 20 3d 20 30 78 30 30 30 30 30 32 30 LECT = 0x0000020
1e70: 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 0 }..enum : uint
1e80: 20 7b 20 4f 46 4e 5f 45 58 54 45 4e 53 49 4f 4e { OFN_EXTENSION
1e90: 44 49 46 46 45 52 45 4e 54 20 3d 20 30 78 30 30 DIFFERENT = 0x00
1ea0: 30 30 30 34 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 000400 }..enum :
1eb0: 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 50 41 54 48 uint { OFN_PATH
1ec0: 4d 55 53 54 45 58 49 53 54 20 3d 20 30 78 30 30 MUSTEXIST = 0x00
1ed0: 30 30 30 38 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 000800 }..enum :
1ee0: 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 46 49 4c 45 uint { OFN_FILE
1ef0: 4d 55 53 54 45 58 49 53 54 20 3d 20 30 78 30 30 MUSTEXIST = 0x00
1f00: 30 30 31 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 001000 }..enum :
1f10: 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 43 52 45 41 uint { OFN_CREA
1f20: 54 45 50 52 4f 4d 50 54 20 3d 20 30 78 30 30 30 TEPROMPT = 0x000
1f30: 30 32 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 02000 }..enum :
1f40: 75 69 6e 74 20 7b 20 4f 46 4e 5f 53 48 41 52 45 uint { OFN_SHARE
1f50: 41 57 41 52 45 20 3d 20 30 78 30 30 30 30 34 30 AWARE = 0x000040
1f60: 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 00 }..enum : uin
1f70: 74 20 7b 20 4f 46 4e 5f 4e 4f 52 45 41 44 4f 4e t { OFN_NOREADON
1f80: 4c 59 52 45 54 55 52 4e 20 3d 20 30 78 30 30 30 LYRETURN = 0x000
1f90: 30 38 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 08000 }..enum :
1fa0: 75 69 6e 74 20 7b 20 4f 46 4e 5f 4e 4f 54 45 53 uint { OFN_NOTES
1fb0: 54 46 49 4c 45 43 52 45 41 54 45 20 3d 20 30 78 TFILECREATE = 0x
1fc0: 30 30 30 31 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 00010000 }..enum
1fd0: 20 3a 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 4e 4f : uint { OFN_NO
1fe0: 4e 45 54 57 4f 52 4b 42 55 54 54 4f 4e 20 3d 20 NETWORKBUTTON =
1ff0: 30 78 30 30 30 32 30 30 30 30 20 7d 0d 0a 65 6e 0x00020000 }..en
2000: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 4f 46 4e 5f um : uint { OFN_
2010: 4e 4f 4c 4f 4e 47 4e 41 4d 45 53 20 3d 20 30 78 NOLONGNAMES = 0x
2020: 30 30 30 34 30 30 30 30 20 7d 0d 0a 2f 2f 20 23 00040000 }..// #
2030: 69 66 28 57 49 4e 56 45 52 20 3e 3d 20 30 78 30 if(WINVER >= 0x0
2040: 34 30 30 29 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 400)..enum : uin
2050: 74 20 7b 20 4f 46 4e 5f 45 58 50 4c 4f 52 45 52 t { OFN_EXPLORER
2060: 20 3d 20 30 78 30 30 30 38 30 30 30 30 20 7d 0d = 0x00080000 }.
2070: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 4f .enum : uint { O
2080: 46 4e 5f 4e 4f 44 45 52 45 46 45 52 45 4e 43 45 FN_NODEREFERENCE
2090: 4c 49 4e 4b 53 20 3d 20 30 78 30 30 31 30 30 30 LINKS = 0x001000
20a0: 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 00 }..enum : uin
20b0: 74 20 7b 20 4f 46 4e 5f 4c 4f 4e 47 4e 41 4d 45 t { OFN_LONGNAME
20c0: 53 20 3d 20 30 78 30 30 32 30 30 30 30 30 20 7d S = 0x00200000 }
20d0: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
20e0: 4f 46 4e 5f 45 4e 41 42 4c 45 49 4e 43 4c 55 44 OFN_ENABLEINCLUD
20f0: 45 4e 4f 54 49 46 59 20 3d 20 30 78 30 30 34 30 ENOTIFY = 0x0040
2100: 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 0000 }..enum : u
2110: 69 6e 74 20 7b 20 4f 46 4e 5f 45 4e 41 42 4c 45 int { OFN_ENABLE
2120: 53 49 5a 49 4e 47 20 3d 20 30 78 30 30 38 30 30 SIZING = 0x00800
2130: 30 30 30 20 7d 0d 0a 2f 2f 20 23 65 6e 64 69 66 000 }..// #endif
2140: 20 2f 2a 20 57 49 4e 56 45 52 20 3e 3d 20 30 78 /* WINVER >= 0x
2150: 30 34 30 30 20 2a 2f 0d 0a 2f 2f 20 23 69 66 20 0400 */..// #if
2160: 28 5f 57 49 4e 33 32 5f 57 49 4e 4e 54 20 3e 3d (_WIN32_WINNT >=
2170: 20 30 78 30 35 30 30 29 0d 0a 65 6e 75 6d 20 3a 0x0500)..enum :
2180: 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 44 4f 4e 54 uint { OFN_DONT
2190: 41 44 44 54 4f 52 45 43 45 4e 54 20 3d 20 30 78 ADDTORECENT = 0x
21a0: 30 32 30 30 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 02000000 }..enum
21b0: 20 3a 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 46 4f : uint { OFN_FO
21c0: 52 43 45 53 48 4f 57 48 49 44 44 45 4e 20 3d 20 RCESHOWHIDDEN =
21d0: 30 78 31 30 30 30 30 30 30 30 20 7d 0d 0a 2f 2f 0x10000000 }..//
21e0: 20 23 65 6e 64 69 66 20 2f 2f 20 28 5f 57 49 4e #endif // (_WIN
21f0: 33 32 5f 57 49 4e 4e 54 20 3e 3d 20 30 78 30 35 32_WINNT >= 0x05
2200: 30 30 29 0d 0a 0d 0a 2f 2f 20 23 69 66 20 28 5f 00)....// #if (_
2210: 57 49 4e 33 32 5f 57 49 4e 4e 54 20 3e 3d 20 30 WIN32_WINNT >= 0
2220: 78 30 35 30 30 29 0d 0a 65 6e 75 6d 20 3a 20 75 x0500)..enum : u
2230: 69 6e 74 20 7b 20 4f 46 4e 5f 45 58 5f 4e 4f 50 int { OFN_EX_NOP
2240: 4c 41 43 45 53 42 41 52 20 3d 20 30 78 30 30 30 LACESBAR = 0x000
2250: 30 30 30 30 31 20 7d 0d 0a 2f 2f 20 23 65 6e 64 00001 }..// #end
2260: 69 66 20 2f 2f 20 28 5f 57 49 4e 33 32 5f 57 49 if // (_WIN32_WI
2270: 4e 4e 54 20 3e 3d 20 30 78 30 35 30 30 29 0d 0a NNT >= 0x0500)..
2280: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
2290: 4f 46 4e 5f 53 48 41 52 45 46 41 4c 4c 54 48 52 OFN_SHAREFALLTHR
22a0: 4f 55 47 48 20 3d 20 32 20 7d 0d 0a 65 6e 75 6d OUGH = 2 }..enum
22b0: 20 3a 20 75 69 6e 74 20 7b 20 4f 46 4e 5f 53 48 : uint { OFN_SH
22c0: 41 52 45 4e 4f 57 41 52 4e 20 3d 20 31 20 7d 0d ARENOWARN = 1 }.
22d0: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 4f .enum : uint { O
22e0: 46 4e 5f 53 48 41 52 45 57 41 52 4e 20 3d 20 30 FN_SHAREWARN = 0
22f0: 20 7d 0d 0a 0d 0a 65 78 74 65 72 6e 28 57 69 6e }....extern(Win
2300: 64 6f 77 73 29 20 61 6c 69 61 73 20 55 49 4e 54 dows) alias UINT
2310: 5f 50 54 52 20 66 75 6e 63 74 69 6f 6e 28 48 57 _PTR function(HW
2320: 4e 44 2c 20 55 49 4e 54 2c 20 57 50 41 52 41 4d ND, UINT, WPARAM
2330: 2c 20 4c 50 41 52 41 4d 29 20 4c 50 43 43 48 4f , LPARAM) LPCCHO
2340: 4f 4b 50 52 4f 43 3b 0d 0a 0d 0a 2f 2f 20 23 69 OKPROC;....// #i
2350: 66 28 57 49 4e 56 45 52 20 3e 3d 20 30 78 30 34 f(WINVER >= 0x04
2360: 30 30 29 0d 0a 0d 0a 73 74 72 75 63 74 20 5f 4f 00)....struct _O
2370: 46 4e 4f 54 49 46 59 41 20 7b 0d 0a 20 20 4e 4d FNOTIFYA {.. NM
2380: 48 44 52 20 68 64 72 3b 0d 0a 20 20 4c 50 4f 50 HDR hdr;.. LPOP
2390: 45 4e 46 49 4c 45 4e 41 4d 45 41 20 6c 70 4f 46 ENFILENAMEA lpOF
23a0: 4e 3b 0d 0a 20 20 4c 50 53 54 52 20 70 73 7a 46 N;.. LPSTR pszF
23b0: 69 6c 65 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 5f ile;..}..alias _
23c0: 4f 46 4e 4f 54 49 46 59 41 20 4f 46 4e 4f 54 49 OFNOTIFYA OFNOTI
23d0: 46 59 41 3b 0d 0a 61 6c 69 61 73 20 5f 4f 46 4e FYA;..alias _OFN
23e0: 4f 54 49 46 59 41 2a 20 4c 50 4f 46 4e 4f 54 49 OTIFYA* LPOFNOTI
23f0: 46 59 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 5f FYA;....struct _
2400: 4f 46 4e 4f 54 49 46 59 57 20 7b 0d 0a 20 20 4e OFNOTIFYW {.. N
2410: 4d 48 44 52 20 68 64 72 3b 0d 0a 20 20 4c 50 4f MHDR hdr;.. LPO
2420: 50 45 4e 46 49 4c 45 4e 41 4d 45 57 20 6c 70 4f PENFILENAMEW lpO
2430: 46 4e 3b 0d 0a 20 20 4c 50 57 53 54 52 20 70 73 FN;.. LPWSTR ps
2440: 7a 46 69 6c 65 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 zFile;..}..alias
2450: 20 5f 4f 46 4e 4f 54 49 46 59 57 20 4f 46 4e 4f _OFNOTIFYW OFNO
2460: 54 49 46 59 57 3b 0d 0a 61 6c 69 61 73 20 5f 4f TIFYW;..alias _O
2470: 46 4e 4f 54 49 46 59 57 2a 20 4c 50 4f 46 4e 4f FNOTIFYW* LPOFNO
2480: 54 49 46 59 57 3b 0d 0a 0d 0a 2f 2f 20 23 69 66 TIFYW;....// #if
2490: 64 65 66 20 55 4e 49 43 4f 44 45 0d 0a 61 6c 69 def UNICODE..ali
24a0: 61 73 20 4f 46 4e 4f 54 49 46 59 57 20 4f 46 4e as OFNOTIFYW OFN
24b0: 4f 54 49 46 59 3b 0d 0a 61 6c 69 61 73 20 4c 50 OTIFY;..alias LP
24c0: 4f 46 4e 4f 54 49 46 59 57 20 4c 50 4f 46 4e 4f OFNOTIFYW LPOFNO
24d0: 54 49 46 59 3b 0d 0a 2f 2f 20 23 65 6c 73 65 0d TIFY;..// #else.
24e0: 0a 2f 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 .// .....// #end
24f0: 69 66 20 2f 2f 20 55 4e 49 43 4f 44 45 0d 0a 0d if // UNICODE...
2500: 0a 73 74 72 75 63 74 20 5f 4f 46 4e 4f 54 49 46 .struct _OFNOTIF
2510: 59 45 58 41 20 7b 0d 0a 20 20 4e 4d 48 44 52 20 YEXA {.. NMHDR
2520: 68 64 72 3b 0d 0a 20 20 4c 50 4f 50 45 4e 46 49 hdr;.. LPOPENFI
2530: 4c 45 4e 41 4d 45 41 20 6c 70 4f 46 4e 3b 0d 0a LENAMEA lpOFN;..
2540: 20 20 4c 50 56 4f 49 44 20 70 73 66 3b 0d 0a 20 LPVOID psf;..
2550: 20 4c 50 56 4f 49 44 20 70 69 64 6c 3b 0d 0a 7d LPVOID pidl;..}
2560: 0d 0a 61 6c 69 61 73 20 5f 4f 46 4e 4f 54 49 46 ..alias _OFNOTIF
2570: 59 45 58 41 20 4f 46 4e 4f 54 49 46 59 45 58 41 YEXA OFNOTIFYEXA
2580: 3b 0d 0a 61 6c 69 61 73 20 5f 4f 46 4e 4f 54 49 ;..alias _OFNOTI
2590: 46 59 45 58 41 2a 20 4c 50 4f 46 4e 4f 54 49 46 FYEXA* LPOFNOTIF
25a0: 59 45 58 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 YEXA;....struct
25b0: 5f 4f 46 4e 4f 54 49 46 59 45 58 57 20 7b 0d 0a _OFNOTIFYEXW {..
25c0: 20 20 4e 4d 48 44 52 20 68 64 72 3b 0d 0a 20 20 NMHDR hdr;..
25d0: 4c 50 4f 50 45 4e 46 49 4c 45 4e 41 4d 45 57 20 LPOPENFILENAMEW
25e0: 6c 70 4f 46 4e 3b 0d 0a 20 20 4c 50 56 4f 49 44 lpOFN;.. LPVOID
25f0: 20 70 73 66 3b 0d 0a 20 20 4c 50 56 4f 49 44 20 psf;.. LPVOID
2600: 70 69 64 6c 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 pidl;..}..alias
2610: 5f 4f 46 4e 4f 54 49 46 59 45 58 57 20 4f 46 4e _OFNOTIFYEXW OFN
2620: 4f 54 49 46 59 45 58 57 3b 0d 0a 61 6c 69 61 73 OTIFYEXW;..alias
2630: 20 5f 4f 46 4e 4f 54 49 46 59 45 58 57 2a 20 4c _OFNOTIFYEXW* L
2640: 50 4f 46 4e 4f 54 49 46 59 45 58 57 3b 0d 0a 0d POFNOTIFYEXW;...
2650: 0a 2f 2f 20 23 69 66 64 65 66 20 55 4e 49 43 4f .// #ifdef UNICO
2660: 44 45 0d 0a 61 6c 69 61 73 20 4f 46 4e 4f 54 49 DE..alias OFNOTI
2670: 46 59 45 58 57 20 4f 46 4e 4f 54 49 46 59 45 58 FYEXW OFNOTIFYEX
2680: 3b 0d 0a 61 6c 69 61 73 20 4c 50 4f 46 4e 4f 54 ;..alias LPOFNOT
2690: 49 46 59 45 58 57 20 4c 50 4f 46 4e 4f 54 49 46 IFYEXW LPOFNOTIF
26a0: 59 45 58 3b 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a YEX;..// #else..
26b0: 2f 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 // .....// #endi
26c0: 66 20 2f 2f 20 55 4e 49 43 4f 44 45 0d 0a 0d 0a f // UNICODE....
26d0: 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 4e 5f 46 const uint CDN_F
26e0: 49 52 53 54 20 3d 20 30 55 2d 36 30 31 55 3b 0d IRST = 0U-601U;.
26f0: 0a 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 4e 5f .const uint CDN_
2700: 4c 41 53 54 20 3d 20 30 55 2d 36 39 39 55 3b 0d LAST = 0U-699U;.
2710: 0a 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 ...const uint CD
2720: 4e 5f 49 4e 49 54 44 4f 4e 45 20 3d 20 43 44 4e N_INITDONE = CDN
2730: 5f 46 49 52 53 54 20 2d 20 30 78 30 30 30 30 3b _FIRST - 0x0000;
2740: 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 4e ..const uint CDN
2750: 5f 53 45 4c 43 48 41 4e 47 45 20 3d 20 43 44 4e _SELCHANGE = CDN
2760: 5f 46 49 52 53 54 20 2d 20 30 78 30 30 30 31 3b _FIRST - 0x0001;
2770: 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 4e ..const uint CDN
2780: 5f 46 4f 4c 44 45 52 43 48 41 4e 47 45 20 3d 20 _FOLDERCHANGE =
2790: 43 44 4e 5f 46 49 52 53 54 20 2d 20 30 78 30 30 CDN_FIRST - 0x00
27a0: 30 32 3b 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 02;..const uint
27b0: 43 44 4e 5f 53 48 41 52 45 56 49 4f 4c 41 54 49 CDN_SHAREVIOLATI
27c0: 4f 4e 20 3d 20 43 44 4e 5f 46 49 52 53 54 20 2d ON = CDN_FIRST -
27d0: 20 30 78 30 30 30 33 3b 0d 0a 63 6f 6e 73 74 20 0x0003;..const
27e0: 75 69 6e 74 20 43 44 4e 5f 48 45 4c 50 20 3d 20 uint CDN_HELP =
27f0: 43 44 4e 5f 46 49 52 53 54 20 2d 20 30 78 30 30 CDN_FIRST - 0x00
2800: 30 34 3b 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 04;..const uint
2810: 43 44 4e 5f 46 49 4c 45 4f 4b 20 3d 20 43 44 4e CDN_FILEOK = CDN
2820: 5f 46 49 52 53 54 20 2d 20 30 78 30 30 30 35 3b _FIRST - 0x0005;
2830: 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 4e ..const uint CDN
2840: 5f 54 59 50 45 43 48 41 4e 47 45 20 3d 20 43 44 _TYPECHANGE = CD
2850: 4e 5f 46 49 52 53 54 20 2d 20 30 78 30 30 30 36 N_FIRST - 0x0006
2860: 3b 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 ;..const uint CD
2870: 4e 5f 49 4e 43 4c 55 44 45 49 54 45 4d 20 3d 20 N_INCLUDEITEM =
2880: 43 44 4e 5f 46 49 52 53 54 20 2d 20 30 78 30 30 CDN_FIRST - 0x00
2890: 30 37 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 75 69 6e 07;....const uin
28a0: 74 20 43 44 4d 5f 46 49 52 53 54 20 3d 20 57 4d t CDM_FIRST = WM
28b0: 5f 55 53 45 52 20 2b 20 31 30 30 3b 0d 0a 63 6f _USER + 100;..co
28c0: 6e 73 74 20 75 69 6e 74 20 43 44 4d 5f 4c 41 53 nst uint CDM_LAS
28d0: 54 20 3d 20 57 4d 5f 55 53 45 52 20 2b 20 32 30 T = WM_USER + 20
28e0: 30 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 0;....const uint
28f0: 20 43 44 4d 5f 47 45 54 53 50 45 43 20 3d 20 43 CDM_GETSPEC = C
2900: 44 4d 5f 46 49 52 53 54 20 2b 20 30 78 30 30 30 DM_FIRST + 0x000
2910: 30 3b 0d 0a 2f 2f 20 23 64 65 66 69 6e 65 20 43 0;..// #define C
2920: 6f 6d 6d 44 6c 67 5f 4f 70 65 6e 53 61 76 65 5f ommDlg_OpenSave_
2930: 47 65 74 53 70 65 63 41 28 5f 68 64 6c 67 2c 20 GetSpecA(_hdlg,
2940: 5f 70 73 7a 2c 20 5f 63 62 6d 61 78 29 20 28 69 _psz, _cbmax) (i
2950: 6e 74 29 53 4e 44 4d 53 47 28 5f 68 64 6c 67 2c nt)SNDMSG(_hdlg,
2960: 20 43 44 4d 5f 47 45 54 53 50 45 43 2c 20 28 57 CDM_GETSPEC, (W
2970: 50 41 52 41 4d 29 5f 63 62 6d 61 78 2c 20 28 4c PARAM)_cbmax, (L
2980: 50 41 52 41 4d 29 28 4c 50 53 54 52 29 5f 70 73 PARAM)(LPSTR)_ps
2990: 7a 29 0d 0a 2f 2f 20 23 64 65 66 69 6e 65 20 43 z)..// #define C
29a0: 6f 6d 6d 44 6c 67 5f 4f 70 65 6e 53 61 76 65 5f ommDlg_OpenSave_
29b0: 47 65 74 53 70 65 63 57 28 5f 68 64 6c 67 2c 20 GetSpecW(_hdlg,
29c0: 5f 70 73 7a 2c 20 5f 63 62 6d 61 78 29 20 28 69 _psz, _cbmax) (i
29d0: 6e 74 29 53 4e 44 4d 53 47 28 5f 68 64 6c 67 2c nt)SNDMSG(_hdlg,
29e0: 20 43 44 4d 5f 47 45 54 53 50 45 43 2c 20 28 57 CDM_GETSPEC, (W
29f0: 50 41 52 41 4d 29 5f 63 62 6d 61 78 2c 20 28 4c PARAM)_cbmax, (L
2a00: 50 41 52 41 4d 29 28 4c 50 57 53 54 52 29 5f 70 PARAM)(LPWSTR)_p
2a10: 73 7a 29 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 sz)..// #ifdef U
2a20: 4e 49 43 4f 44 45 0d 0a 2f 2f 20 23 64 65 66 69 NICODE..// #defi
2a30: 6e 65 20 43 6f 6d 6d 44 6c 67 5f 4f 70 65 6e 53 ne CommDlg_OpenS
2a40: 61 76 65 5f 47 65 74 53 70 65 63 20 43 6f 6d 6d ave_GetSpec Comm
2a50: 44 6c 67 5f 4f 70 65 6e 53 61 76 65 5f 47 65 74 Dlg_OpenSave_Get
2a60: 53 70 65 63 57 0d 0a 2f 2f 20 23 65 6c 73 65 0d SpecW..// #else.
2a70: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e .// #.....// #en
2a80: 64 69 66 20 2f 2f 20 21 55 4e 49 43 4f 44 45 0d dif // !UNICODE.
2a90: 0a 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 ...const uint CD
2aa0: 4d 5f 47 45 54 46 49 4c 45 50 41 54 48 20 3d 20 M_GETFILEPATH =
2ab0: 43 44 4d 5f 46 49 52 53 54 20 2b 20 30 78 30 30 CDM_FIRST + 0x00
2ac0: 30 31 3b 0d 0a 2f 2f 20 23 64 65 66 69 6e 65 20 01;..// #define
2ad0: 43 6f 6d 6d 44 6c 67 5f 4f 70 65 6e 53 61 76 65 CommDlg_OpenSave
2ae0: 5f 47 65 74 46 69 6c 65 50 61 74 68 41 28 5f 68 _GetFilePathA(_h
2af0: 64 6c 67 2c 20 5f 70 73 7a 2c 20 5f 63 62 6d 61 dlg, _psz, _cbma
2b00: 78 29 20 28 69 6e 74 29 53 4e 44 4d 53 47 28 5f x) (int)SNDMSG(_
2b10: 68 64 6c 67 2c 20 43 44 4d 5f 47 45 54 46 49 4c hdlg, CDM_GETFIL
2b20: 45 50 41 54 48 2c 20 28 57 50 41 52 41 4d 29 5f EPATH, (WPARAM)_
2b30: 63 62 6d 61 78 2c 20 28 4c 50 41 52 41 4d 29 28 cbmax, (LPARAM)(
2b40: 4c 50 53 54 52 29 5f 70 73 7a 29 0d 0a 2f 2f 20 LPSTR)_psz)..//
2b50: 23 64 65 66 69 6e 65 20 43 6f 6d 6d 44 6c 67 5f #define CommDlg_
2b60: 4f 70 65 6e 53 61 76 65 5f 47 65 74 46 69 6c 65 OpenSave_GetFile
2b70: 50 61 74 68 57 28 5f 68 64 6c 67 2c 20 5f 70 73 PathW(_hdlg, _ps
2b80: 7a 2c 20 5f 63 62 6d 61 78 29 20 28 69 6e 74 29 z, _cbmax) (int)
2b90: 53 4e 44 4d 53 47 28 5f 68 64 6c 67 2c 20 43 44 SNDMSG(_hdlg, CD
2ba0: 4d 5f 47 45 54 46 49 4c 45 50 41 54 48 2c 20 28 M_GETFILEPATH, (
2bb0: 57 50 41 52 41 4d 29 5f 63 62 6d 61 78 2c 20 28 WPARAM)_cbmax, (
2bc0: 4c 50 41 52 41 4d 29 28 4c 50 57 53 54 52 29 5f LPARAM)(LPWSTR)_
2bd0: 70 73 7a 29 0d 0a 2f 2f 20 23 69 66 64 65 66 20 psz)..// #ifdef
2be0: 55 4e 49 43 4f 44 45 0d 0a 2f 2f 20 23 64 65 66 UNICODE..// #def
2bf0: 69 6e 65 20 43 6f 6d 6d 44 6c 67 5f 4f 70 65 6e ine CommDlg_Open
2c00: 53 61 76 65 5f 47 65 74 46 69 6c 65 50 61 74 68 Save_GetFilePath
2c10: 20 43 6f 6d 6d 44 6c 67 5f 4f 70 65 6e 53 61 76 CommDlg_OpenSav
2c20: 65 5f 47 65 74 46 69 6c 65 50 61 74 68 57 0d 0a e_GetFilePathW..
2c30: 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 23 2e 2e // #else..// #..
2c40: 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 ...// #endif //
2c50: 21 55 4e 49 43 4f 44 45 0d 0a 0d 0a 63 6f 6e 73 !UNICODE....cons
2c60: 74 20 75 69 6e 74 20 43 44 4d 5f 47 45 54 46 4f t uint CDM_GETFO
2c70: 4c 44 45 52 50 41 54 48 20 3d 20 43 44 4d 5f 46 LDERPATH = CDM_F
2c80: 49 52 53 54 20 2b 20 30 78 30 30 30 32 3b 0d 0a IRST + 0x0002;..
2c90: 2f 2f 20 23 64 65 66 69 6e 65 20 43 6f 6d 6d 44 // #define CommD
2ca0: 6c 67 5f 4f 70 65 6e 53 61 76 65 5f 47 65 74 46 lg_OpenSave_GetF
2cb0: 6f 6c 64 65 72 50 61 74 68 41 28 5f 68 64 6c 67 olderPathA(_hdlg
2cc0: 2c 20 5f 70 73 7a 2c 20 5f 63 62 6d 61 78 29 20 , _psz, _cbmax)
2cd0: 28 69 6e 74 29 53 4e 44 4d 53 47 28 5f 68 64 6c (int)SNDMSG(_hdl
2ce0: 67 2c 20 43 44 4d 5f 47 45 54 46 4f 4c 44 45 52 g, CDM_GETFOLDER
2cf0: 50 41 54 48 2c 20 28 57 50 41 52 41 4d 29 5f 63 PATH, (WPARAM)_c
2d00: 62 6d 61 78 2c 20 28 4c 50 41 52 41 4d 29 28 4c bmax, (LPARAM)(L
2d10: 50 53 54 52 29 5f 70 73 7a 29 0d 0a 2f 2f 20 23 PSTR)_psz)..// #
2d20: 64 65 66 69 6e 65 20 43 6f 6d 6d 44 6c 67 5f 4f define CommDlg_O
2d30: 70 65 6e 53 61 76 65 5f 47 65 74 46 6f 6c 64 65 penSave_GetFolde
2d40: 72 50 61 74 68 57 28 5f 68 64 6c 67 2c 20 5f 70 rPathW(_hdlg, _p
2d50: 73 7a 2c 20 5f 63 62 6d 61 78 29 20 28 69 6e 74 sz, _cbmax) (int
2d60: 29 53 4e 44 4d 53 47 28 5f 68 64 6c 67 2c 20 43 )SNDMSG(_hdlg, C
2d70: 44 4d 5f 47 45 54 46 4f 4c 44 45 52 50 41 54 48 DM_GETFOLDERPATH
2d80: 2c 20 28 57 50 41 52 41 4d 29 5f 63 62 6d 61 78 , (WPARAM)_cbmax
2d90: 2c 20 28 4c 50 41 52 41 4d 29 28 4c 50 57 53 54 , (LPARAM)(LPWST
2da0: 52 29 5f 70 73 7a 29 0d 0a 2f 2f 20 23 69 66 64 R)_psz)..// #ifd
2db0: 65 66 20 55 4e 49 43 4f 44 45 0d 0a 2f 2f 20 23 ef UNICODE..// #
2dc0: 64 65 66 69 6e 65 20 43 6f 6d 6d 44 6c 67 5f 4f define CommDlg_O
2dd0: 70 65 6e 53 61 76 65 5f 47 65 74 46 6f 6c 64 65 penSave_GetFolde
2de0: 72 50 61 74 68 20 43 6f 6d 6d 44 6c 67 5f 4f 70 rPath CommDlg_Op
2df0: 65 6e 53 61 76 65 5f 47 65 74 46 6f 6c 64 65 72 enSave_GetFolder
2e00: 50 61 74 68 57 0d 0a 2f 2f 20 23 65 6c 73 65 0d PathW..// #else.
2e10: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e .// #.....// #en
2e20: 64 69 66 20 2f 2f 20 21 55 4e 49 43 4f 44 45 0d dif // !UNICODE.
2e30: 0a 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 43 44 ...const uint CD
2e40: 4d 5f 47 45 54 46 4f 4c 44 45 52 49 44 4c 49 53 M_GETFOLDERIDLIS
2e50: 54 20 3d 20 43 44 4d 5f 46 49 52 53 54 20 2b 20 T = CDM_FIRST +
2e60: 30 78 30 30 30 33 3b 0d 0a 2f 2f 20 23 64 65 66 0x0003;..// #def
2e70: 69 6e 65 20 43 6f 6d 6d 44 6c 67 5f 4f 70 65 6e ine CommDlg_Open
2e80: 53 61 76 65 5f 47 65 74 46 6f 6c 64 65 72 49 44 Save_GetFolderID
2e90: 4c 69 73 74 28 5f 68 64 6c 67 2c 20 5f 70 69 64 List(_hdlg, _pid
2ea0: 6c 2c 20 5f 63 62 6d 61 78 29 20 28 69 6e 74 29 l, _cbmax) (int)
2eb0: 53 4e 44 4d 53 47 28 5f 68 64 6c 67 2c 20 43 44 SNDMSG(_hdlg, CD
2ec0: 4d 5f 47 45 54 46 4f 4c 44 45 52 49 44 4c 49 53 M_GETFOLDERIDLIS
2ed0: 54 2c 20 28 57 50 41 52 41 4d 29 5f 63 62 6d 61 T, (WPARAM)_cbma
2ee0: 78 2c 20 28 4c 50 41 52 41 4d 29 28 4c 50 56 4f x, (LPARAM)(LPVO
2ef0: 49 44 29 5f 70 69 64 6c 29 0d 0a 0d 0a 63 6f 6e ID)_pidl)....con
2f00: 73 74 20 75 69 6e 74 20 43 44 4d 5f 53 45 54 43 st uint CDM_SETC
2f10: 4f 4e 54 52 4f 4c 54 45 58 54 20 3d 20 43 44 4d ONTROLTEXT = CDM
2f20: 5f 46 49 52 53 54 20 2b 20 30 78 30 30 30 34 3b _FIRST + 0x0004;
2f30: 0d 0a 2f 2f 20 23 64 65 66 69 6e 65 20 43 6f 6d ..// #define Com
2f40: 6d 44 6c 67 5f 4f 70 65 6e 53 61 76 65 5f 53 65 mDlg_OpenSave_Se
2f50: 74 43 6f 6e 74 72 6f 6c 54 65 78 74 28 5f 68 64 tControlText(_hd
2f60: 6c 67 2c 20 5f 69 64 2c 20 5f 74 65 78 74 29 20 lg, _id, _text)
2f70: 28 76 6f 69 64 29 53 4e 44 4d 53 47 28 5f 68 64 (void)SNDMSG(_hd
2f80: 6c 67 2c 20 43 44 4d 5f 53 45 54 43 4f 4e 54 52 lg, CDM_SETCONTR
2f90: 4f 4c 54 45 58 54 2c 20 28 57 50 41 52 41 4d 29 OLTEXT, (WPARAM)
2fa0: 5f 69 64 2c 20 28 4c 50 41 52 41 4d 29 28 4c 50 _id, (LPARAM)(LP
2fb0: 53 54 52 29 5f 74 65 78 74 29 0d 0a 0d 0a 63 6f STR)_text)....co
2fc0: 6e 73 74 20 75 69 6e 74 20 43 44 4d 5f 48 49 44 nst uint CDM_HID
2fd0: 45 43 4f 4e 54 52 4f 4c 20 3d 20 43 44 4d 5f 46 ECONTROL = CDM_F
2fe0: 49 52 53 54 20 2b 20 30 78 30 30 30 35 3b 0d 0a IRST + 0x0005;..
2ff0: 2f 2f 20 23 64 65 66 69 6e 65 20 43 6f 6d 6d 44 // #define CommD
3000: 6c 67 5f 4f 70 65 6e 53 61 76 65 5f 48 69 64 65 lg_OpenSave_Hide
3010: 43 6f 6e 74 72 6f 6c 28 5f 68 64 6c 67 2c 20 5f Control(_hdlg, _
3020: 69 64 29 20 28 76 6f 69 64 29 53 4e 44 4d 53 47 id) (void)SNDMSG
3030: 28 5f 68 64 6c 67 2c 20 43 44 4d 5f 48 49 44 45 (_hdlg, CDM_HIDE
3040: 43 4f 4e 54 52 4f 4c 2c 20 28 57 50 41 52 41 4d CONTROL, (WPARAM
3050: 29 5f 69 64 2c 20 30 29 0d 0a 0d 0a 63 6f 6e 73 )_id, 0)....cons
3060: 74 20 75 69 6e 74 20 43 44 4d 5f 53 45 54 44 45 t uint CDM_SETDE
3070: 46 45 58 54 20 3d 20 43 44 4d 5f 46 49 52 53 54 FEXT = CDM_FIRST
3080: 20 2b 20 30 78 30 30 30 36 3b 0d 0a 2f 2f 20 23 + 0x0006;..// #
3090: 64 65 66 69 6e 65 20 43 6f 6d 6d 44 6c 67 5f 4f define CommDlg_O
30a0: 70 65 6e 53 61 76 65 5f 53 65 74 44 65 66 45 78 penSave_SetDefEx
30b0: 74 28 5f 68 64 6c 67 2c 20 5f 70 73 7a 65 78 74 t(_hdlg, _pszext
30c0: 29 20 28 76 6f 69 64 29 53 4e 44 4d 53 47 28 5f ) (void)SNDMSG(_
30d0: 68 64 6c 67 2c 20 43 44 4d 5f 53 45 54 44 45 46 hdlg, CDM_SETDEF
30e0: 45 58 54 2c 20 30 2c 20 28 4c 50 41 52 41 4d 29 EXT, 0, (LPARAM)
30f0: 28 4c 50 53 54 52 29 5f 70 73 7a 65 78 74 29 0d (LPSTR)_pszext).
3100: 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2a 20 57 49 .// #endif /* WI
3110: 4e 56 45 52 20 3e 3d 20 30 78 30 34 30 30 20 2a NVER >= 0x0400 *
3120: 2f 0d 0a 0d 0a 2f 2f 20 23 69 66 6e 64 65 66 20 /....// #ifndef
3130: 5f 4d 41 43 0d 0a 73 74 72 75 63 74 20 74 61 67 _MAC..struct tag
3140: 43 48 4f 4f 53 45 43 4f 4c 4f 52 41 20 7b 0d 0a CHOOSECOLORA {..
3150: 20 20 44 57 4f 52 44 20 6c 53 74 72 75 63 74 53 DWORD lStructS
3160: 69 7a 65 3b 0d 0a 20 20 48 57 4e 44 20 68 77 6e ize;.. HWND hwn
3170: 64 4f 77 6e 65 72 3b 0d 0a 20 20 48 57 4e 44 20 dOwner;.. HWND
3180: 68 49 6e 73 74 61 6e 63 65 3b 0d 0a 20 20 43 4f hInstance;.. CO
3190: 4c 4f 52 52 45 46 20 72 67 62 52 65 73 75 6c 74 LORREF rgbResult
31a0: 3b 0d 0a 20 20 43 4f 4c 4f 52 52 45 46 20 2a 20 ;.. COLORREF *
31b0: 20 20 20 6c 70 43 75 73 74 43 6f 6c 6f 72 73 3b lpCustColors;
31c0: 0d 0a 20 20 44 57 4f 52 44 20 46 6c 61 67 73 3b .. DWORD Flags;
31d0: 0d 0a 20 20 4c 50 41 52 41 4d 20 6c 43 75 73 74 .. LPARAM lCust
31e0: 44 61 74 61 3b 0d 0a 20 20 4c 50 43 43 48 4f 4f Data;.. LPCCHOO
31f0: 4b 50 52 4f 43 20 6c 70 66 6e 48 6f 6f 6b 3b 0d KPROC lpfnHook;.
3200: 0a 20 20 4c 50 43 53 54 52 20 6c 70 54 65 6d 70 . LPCSTR lpTemp
3210: 6c 61 74 65 4e 61 6d 65 3b 0d 0a 7d 0d 0a 61 6c lateName;..}..al
3220: 69 61 73 20 74 61 67 43 48 4f 4f 53 45 43 4f 4c ias tagCHOOSECOL
3230: 4f 52 41 20 43 48 4f 4f 53 45 43 4f 4c 4f 52 41 ORA CHOOSECOLORA
3240: 3b 0d 0a 61 6c 69 61 73 20 74 61 67 43 48 4f 4f ;..alias tagCHOO
3250: 53 45 43 4f 4c 4f 52 41 2a 20 4c 50 43 48 4f 4f SECOLORA* LPCHOO
3260: 53 45 43 4f 4c 4f 52 41 3b 0d 0a 0d 0a 73 74 72 SECOLORA;....str
3270: 75 63 74 20 74 61 67 43 48 4f 4f 53 45 43 4f 4c uct tagCHOOSECOL
3280: 4f 52 57 20 7b 0d 0a 20 20 44 57 4f 52 44 20 6c ORW {.. DWORD l
3290: 53 74 72 75 63 74 53 69 7a 65 3b 0d 0a 20 20 48 StructSize;.. H
32a0: 57 4e 44 20 68 77 6e 64 4f 77 6e 65 72 3b 0d 0a WND hwndOwner;..
32b0: 20 20 48 57 4e 44 20 68 49 6e 73 74 61 6e 63 65 HWND hInstance
32c0: 3b 0d 0a 20 20 43 4f 4c 4f 52 52 45 46 20 72 67 ;.. COLORREF rg
32d0: 62 52 65 73 75 6c 74 3b 0d 0a 20 20 43 4f 4c 4f bResult;.. COLO
32e0: 52 52 45 46 20 2a 20 20 20 20 6c 70 43 75 73 74 RREF * lpCust
32f0: 43 6f 6c 6f 72 73 3b 0d 0a 20 20 44 57 4f 52 44 Colors;.. DWORD
3300: 20 46 6c 61 67 73 3b 0d 0a 20 20 4c 50 41 52 41 Flags;.. LPARA
3310: 4d 20 6c 43 75 73 74 44 61 74 61 3b 0d 0a 20 20 M lCustData;..
3320: 4c 50 43 43 48 4f 4f 4b 50 52 4f 43 20 6c 70 66 LPCCHOOKPROC lpf
3330: 6e 48 6f 6f 6b 3b 0d 0a 20 20 4c 50 43 57 53 54 nHook;.. LPCWST
3340: 52 20 6c 70 54 65 6d 70 6c 61 74 65 4e 61 6d 65 R lpTemplateName
3350: 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 74 61 67 43 ;..}..alias tagC
3360: 48 4f 4f 53 45 43 4f 4c 4f 52 57 20 43 48 4f 4f HOOSECOLORW CHOO
3370: 53 45 43 4f 4c 4f 52 57 3b 0d 0a 61 6c 69 61 73 SECOLORW;..alias
3380: 20 74 61 67 43 48 4f 4f 53 45 43 4f 4c 4f 52 57 tagCHOOSECOLORW
3390: 2a 20 4c 50 43 48 4f 4f 53 45 43 4f 4c 4f 52 57 * LPCHOOSECOLORW
33a0: 3b 0d 0a 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 ;....// #ifdef U
33b0: 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 73 20 43 48 NICODE..alias CH
33c0: 4f 4f 53 45 43 4f 4c 4f 52 57 20 43 48 4f 4f 53 OOSECOLORW CHOOS
33d0: 45 43 4f 4c 4f 52 3b 0d 0a 61 6c 69 61 73 20 4c ECOLOR;..alias L
33e0: 50 43 48 4f 4f 53 45 43 4f 4c 4f 52 57 20 4c 50 PCHOOSECOLORW LP
33f0: 43 48 4f 4f 53 45 43 4f 4c 4f 52 3b 0d 0a 2f 2f CHOOSECOLOR;..//
3400: 20 23 65 6c 73 65 0d 0a 2f 2f 20 2e 2e 2e 0d 0a #else..// .....
3410: 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 55 4e 49 // #endif // UNI
3420: 43 4f 44 45 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a CODE..// #else..
3430: 2f 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 69 66 64 65 // .....// #ifde
3440: 66 20 55 4e 49 43 4f 44 45 0d 0a 2f 2f 20 2e 2e f UNICODE..// ..
3450: 2e 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 ...// #else..//
3460: 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f .....// #endif /
3470: 2f 20 55 4e 49 43 4f 44 45 0d 0a 2f 2f 20 23 65 / UNICODE..// #e
3480: 6e 64 69 66 20 2f 2f 5f 4d 41 43 0d 0a 0d 0a 65 ndif //_MAC....e
3490: 78 74 65 72 6e 28 57 69 6e 64 6f 77 73 29 20 65 xtern(Windows) e
34a0: 78 70 6f 72 74 20 42 4f 4f 4c 20 43 68 6f 6f 73 xport BOOL Choos
34b0: 65 43 6f 6c 6f 72 41 28 4c 50 43 48 4f 4f 53 45 eColorA(LPCHOOSE
34c0: 43 4f 4c 4f 52 41 29 3b 0d 0a 65 78 74 65 72 6e COLORA);..extern
34d0: 28 57 69 6e 64 6f 77 73 29 20 65 78 70 6f 72 74 (Windows) export
34e0: 20 42 4f 4f 4c 20 43 68 6f 6f 73 65 43 6f 6c 6f BOOL ChooseColo
34f0: 72 57 28 4c 50 43 48 4f 4f 53 45 43 4f 4c 4f 52 rW(LPCHOOSECOLOR
3500: 57 29 3b 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 W);..// #ifdef U
3510: 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 73 20 43 68 NICODE..alias Ch
3520: 6f 6f 73 65 43 6f 6c 6f 72 57 20 43 68 6f 6f 73 ooseColorW Choos
3530: 65 43 6f 6c 6f 72 3b 0d 0a 2f 2f 20 23 65 6c 73 eColor;..// #els
3540: 65 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 e..// #.....// #
3550: 65 6e 64 69 66 20 2f 2f 20 21 55 4e 49 43 4f 44 endif // !UNICOD
3560: 45 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 E....enum : uint
3570: 20 7b 20 43 43 5f 52 47 42 49 4e 49 54 20 3d 20 { CC_RGBINIT =
3580: 30 78 30 30 30 30 30 30 30 31 20 7d 0d 0a 65 6e 0x00000001 }..en
3590: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 43 5f 46 um : uint { CC_F
35a0: 55 4c 4c 4f 50 45 4e 20 3d 20 30 78 30 30 30 30 ULLOPEN = 0x0000
35b0: 30 30 30 32 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 0002 }..enum : u
35c0: 69 6e 74 20 7b 20 43 43 5f 50 52 45 56 45 4e 54 int { CC_PREVENT
35d0: 46 55 4c 4c 4f 50 45 4e 20 3d 20 30 78 30 30 30 FULLOPEN = 0x000
35e0: 30 30 30 30 34 20 7d 0d 0a 65 6e 75 6d 20 3a 20 00004 }..enum :
35f0: 75 69 6e 74 20 7b 20 43 43 5f 53 48 4f 57 48 45 uint { CC_SHOWHE
3600: 4c 50 20 3d 20 30 78 30 30 30 30 30 30 30 38 20 LP = 0x00000008
3610: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
3620: 20 43 43 5f 45 4e 41 42 4c 45 48 4f 4f 4b 20 3d CC_ENABLEHOOK =
3630: 20 30 78 30 30 30 30 30 30 31 30 20 7d 0d 0a 65 0x00000010 }..e
3640: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 43 5f num : uint { CC_
3650: 45 4e 41 42 4c 45 54 45 4d 50 4c 41 54 45 20 3d ENABLETEMPLATE =
3660: 20 30 78 30 30 30 30 30 30 32 30 20 7d 0d 0a 65 0x00000020 }..e
3670: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 43 5f num : uint { CC_
3680: 45 4e 41 42 4c 45 54 45 4d 50 4c 41 54 45 48 41 ENABLETEMPLATEHA
3690: 4e 44 4c 45 20 3d 20 30 78 30 30 30 30 30 30 34 NDLE = 0x0000004
36a0: 30 20 7d 0d 0a 2f 2f 20 23 69 66 28 57 49 4e 56 0 }..// #if(WINV
36b0: 45 52 20 3e 3d 20 30 78 30 34 30 30 29 0d 0a 65 ER >= 0x0400)..e
36c0: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 43 5f num : uint { CC_
36d0: 53 4f 4c 49 44 43 4f 4c 4f 52 20 3d 20 30 78 30 SOLIDCOLOR = 0x0
36e0: 30 30 30 30 30 38 30 20 7d 0d 0a 65 6e 75 6d 20 0000080 }..enum
36f0: 3a 20 75 69 6e 74 20 7b 20 43 43 5f 41 4e 59 43 : uint { CC_ANYC
3700: 4f 4c 4f 52 20 3d 20 30 78 30 30 30 30 30 31 30 OLOR = 0x0000010
3710: 30 20 7d 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 0 }..// #endif /
3720: 2a 20 57 49 4e 56 45 52 20 3e 3d 20 30 78 30 34 * WINVER >= 0x04
3730: 30 30 20 2a 2f 0d 0a 0d 0a 65 78 74 65 72 6e 28 00 */....extern(
3740: 57 69 6e 64 6f 77 73 29 20 61 6c 69 61 73 20 55 Windows) alias U
3750: 49 4e 54 5f 50 54 52 20 66 75 6e 63 74 69 6f 6e INT_PTR function
3760: 28 48 57 4e 44 2c 20 55 49 4e 54 2c 20 57 50 41 (HWND, UINT, WPA
3770: 52 41 4d 2c 20 4c 50 41 52 41 4d 29 20 4c 50 46 RAM, LPARAM) LPF
3780: 52 48 4f 4f 4b 50 52 4f 43 3b 0d 0a 0d 0a 73 74 RHOOKPROC;....st
3790: 72 75 63 74 20 74 61 67 46 49 4e 44 52 45 50 4c ruct tagFINDREPL
37a0: 41 43 45 41 20 7b 0d 0a 20 20 44 57 4f 52 44 20 ACEA {.. DWORD
37b0: 6c 53 74 72 75 63 74 53 69 7a 65 3b 0d 0a 20 20 lStructSize;..
37c0: 48 57 4e 44 20 68 77 6e 64 4f 77 6e 65 72 3b 0d HWND hwndOwner;.
37d0: 0a 20 20 48 49 4e 53 54 41 4e 43 45 20 68 49 6e . HINSTANCE hIn
37e0: 73 74 61 6e 63 65 3b 0d 0a 0d 0a 20 20 44 57 4f stance;.... DWO
37f0: 52 44 20 46 6c 61 67 73 3b 0d 0a 20 20 4c 50 53 RD Flags;.. LPS
3800: 54 52 20 6c 70 73 74 72 46 69 6e 64 57 68 61 74 TR lpstrFindWhat
3810: 3b 0d 0a 20 20 4c 50 53 54 52 20 6c 70 73 74 72 ;.. LPSTR lpstr
3820: 52 65 70 6c 61 63 65 57 69 74 68 3b 0d 0a 20 20 ReplaceWith;..
3830: 57 4f 52 44 20 77 46 69 6e 64 57 68 61 74 4c 65 WORD wFindWhatLe
3840: 6e 3b 0d 0a 20 20 57 4f 52 44 20 77 52 65 70 6c n;.. WORD wRepl
3850: 61 63 65 57 69 74 68 4c 65 6e 3b 0d 0a 20 20 4c aceWithLen;.. L
3860: 50 41 52 41 4d 20 6c 43 75 73 74 44 61 74 61 3b PARAM lCustData;
3870: 0d 0a 20 20 4c 50 46 52 48 4f 4f 4b 50 52 4f 43 .. LPFRHOOKPROC
3880: 20 6c 70 66 6e 48 6f 6f 6b 3b 0d 0a 20 20 4c 50 lpfnHook;.. LP
3890: 43 53 54 52 20 6c 70 54 65 6d 70 6c 61 74 65 4e CSTR lpTemplateN
38a0: 61 6d 65 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 74 ame;..}..alias t
38b0: 61 67 46 49 4e 44 52 45 50 4c 41 43 45 41 20 46 agFINDREPLACEA F
38c0: 49 4e 44 52 45 50 4c 41 43 45 41 3b 0d 0a 61 6c INDREPLACEA;..al
38d0: 69 61 73 20 74 61 67 46 49 4e 44 52 45 50 4c 41 ias tagFINDREPLA
38e0: 43 45 41 2a 20 4c 50 46 49 4e 44 52 45 50 4c 41 CEA* LPFINDREPLA
38f0: 43 45 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 74 CEA;....struct t
3900: 61 67 46 49 4e 44 52 45 50 4c 41 43 45 57 20 7b agFINDREPLACEW {
3910: 0d 0a 20 20 44 57 4f 52 44 20 6c 53 74 72 75 63 .. DWORD lStruc
3920: 74 53 69 7a 65 3b 0d 0a 20 20 48 57 4e 44 20 68 tSize;.. HWND h
3930: 77 6e 64 4f 77 6e 65 72 3b 0d 0a 20 20 48 49 4e wndOwner;.. HIN
3940: 53 54 41 4e 43 45 20 68 49 6e 73 74 61 6e 63 65 STANCE hInstance
3950: 3b 0d 0a 0d 0a 20 20 44 57 4f 52 44 20 46 6c 61 ;.... DWORD Fla
3960: 67 73 3b 0d 0a 20 20 4c 50 57 53 54 52 20 6c 70 gs;.. LPWSTR lp
3970: 73 74 72 46 69 6e 64 57 68 61 74 3b 0d 0a 20 20 strFindWhat;..
3980: 4c 50 57 53 54 52 20 6c 70 73 74 72 52 65 70 6c LPWSTR lpstrRepl
3990: 61 63 65 57 69 74 68 3b 0d 0a 20 20 57 4f 52 44 aceWith;.. WORD
39a0: 20 77 46 69 6e 64 57 68 61 74 4c 65 6e 3b 0d 0a wFindWhatLen;..
39b0: 20 20 57 4f 52 44 20 77 52 65 70 6c 61 63 65 57 WORD wReplaceW
39c0: 69 74 68 4c 65 6e 3b 0d 0a 20 20 4c 50 41 52 41 ithLen;.. LPARA
39d0: 4d 20 6c 43 75 73 74 44 61 74 61 3b 0d 0a 20 20 M lCustData;..
39e0: 4c 50 46 52 48 4f 4f 4b 50 52 4f 43 20 6c 70 66 LPFRHOOKPROC lpf
39f0: 6e 48 6f 6f 6b 3b 0d 0a 20 20 4c 50 43 57 53 54 nHook;.. LPCWST
3a00: 52 20 6c 70 54 65 6d 70 6c 61 74 65 4e 61 6d 65 R lpTemplateName
3a10: 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 74 61 67 46 ;..}..alias tagF
3a20: 49 4e 44 52 45 50 4c 41 43 45 57 20 46 49 4e 44 INDREPLACEW FIND
3a30: 52 45 50 4c 41 43 45 57 3b 0d 0a 61 6c 69 61 73 REPLACEW;..alias
3a40: 20 74 61 67 46 49 4e 44 52 45 50 4c 41 43 45 57 tagFINDREPLACEW
3a50: 2a 20 4c 50 46 49 4e 44 52 45 50 4c 41 43 45 57 * LPFINDREPLACEW
3a60: 3b 0d 0a 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 ;....// #ifdef U
3a70: 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 73 20 46 49 NICODE..alias FI
3a80: 4e 44 52 45 50 4c 41 43 45 57 20 46 49 4e 44 52 NDREPLACEW FINDR
3a90: 45 50 4c 41 43 45 3b 0d 0a 61 6c 69 61 73 20 4c EPLACE;..alias L
3aa0: 50 46 49 4e 44 52 45 50 4c 41 43 45 57 20 4c 50 PFINDREPLACEW LP
3ab0: 46 49 4e 44 52 45 50 4c 41 43 45 3b 0d 0a 2f 2f FINDREPLACE;..//
3ac0: 20 23 65 6c 73 65 0d 0a 2f 2f 20 2e 2e 2e 0d 0a #else..// .....
3ad0: 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 55 4e 49 // #endif // UNI
3ae0: 43 4f 44 45 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 CODE....enum : u
3af0: 69 6e 74 20 7b 20 46 52 5f 44 4f 57 4e 20 3d 20 int { FR_DOWN =
3b00: 30 78 30 30 30 30 30 30 30 31 20 7d 0d 0a 65 6e 0x00000001 }..en
3b10: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 46 52 5f 57 um : uint { FR_W
3b20: 48 4f 4c 45 57 4f 52 44 20 3d 20 30 78 30 30 30 HOLEWORD = 0x000
3b30: 30 30 30 30 32 20 7d 0d 0a 65 6e 75 6d 20 3a 20 00002 }..enum :
3b40: 75 69 6e 74 20 7b 20 46 52 5f 4d 41 54 43 48 43 uint { FR_MATCHC
3b50: 41 53 45 20 3d 20 30 78 30 30 30 30 30 30 30 34 ASE = 0x00000004
3b60: 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 }..enum : uint
3b70: 7b 20 46 52 5f 46 49 4e 44 4e 45 58 54 20 3d 20 { FR_FINDNEXT =
3b80: 30 78 30 30 30 30 30 30 30 38 20 7d 0d 0a 65 6e 0x00000008 }..en
3b90: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 46 52 5f 52 um : uint { FR_R
3ba0: 45 50 4c 41 43 45 20 3d 20 30 78 30 30 30 30 30 EPLACE = 0x00000
3bb0: 30 31 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 010 }..enum : ui
3bc0: 6e 74 20 7b 20 46 52 5f 52 45 50 4c 41 43 45 41 nt { FR_REPLACEA
3bd0: 4c 4c 20 3d 20 30 78 30 30 30 30 30 30 32 30 20 LL = 0x00000020
3be0: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
3bf0: 20 46 52 5f 44 49 41 4c 4f 47 54 45 52 4d 20 3d FR_DIALOGTERM =
3c00: 20 30 78 30 30 30 30 30 30 34 30 20 7d 0d 0a 65 0x00000040 }..e
3c10: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 46 52 5f num : uint { FR_
3c20: 53 48 4f 57 48 45 4c 50 20 3d 20 30 78 30 30 30 SHOWHELP = 0x000
3c30: 30 30 30 38 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 00080 }..enum :
3c40: 75 69 6e 74 20 7b 20 46 52 5f 45 4e 41 42 4c 45 uint { FR_ENABLE
3c50: 48 4f 4f 4b 20 3d 20 30 78 30 30 30 30 30 31 30 HOOK = 0x0000010
3c60: 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 0 }..enum : uint
3c70: 20 7b 20 46 52 5f 45 4e 41 42 4c 45 54 45 4d 50 { FR_ENABLETEMP
3c80: 4c 41 54 45 20 3d 20 30 78 30 30 30 30 30 32 30 LATE = 0x0000020
3c90: 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 0 }..enum : uint
3ca0: 20 7b 20 46 52 5f 4e 4f 55 50 44 4f 57 4e 20 3d { FR_NOUPDOWN =
3cb0: 20 30 78 30 30 30 30 30 34 30 30 20 7d 0d 0a 65 0x00000400 }..e
3cc0: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 46 52 5f num : uint { FR_
3cd0: 4e 4f 4d 41 54 43 48 43 41 53 45 20 3d 20 30 78 NOMATCHCASE = 0x
3ce0: 30 30 30 30 30 38 30 30 20 7d 0d 0a 65 6e 75 6d 00000800 }..enum
3cf0: 20 3a 20 75 69 6e 74 20 7b 20 46 52 5f 4e 4f 57 : uint { FR_NOW
3d00: 48 4f 4c 45 57 4f 52 44 20 3d 20 30 78 30 30 30 HOLEWORD = 0x000
3d10: 30 31 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 01000 }..enum :
3d20: 75 69 6e 74 20 7b 20 46 52 5f 45 4e 41 42 4c 45 uint { FR_ENABLE
3d30: 54 45 4d 50 4c 41 54 45 48 41 4e 44 4c 45 20 3d TEMPLATEHANDLE =
3d40: 20 30 78 30 30 30 30 32 30 30 30 20 7d 0d 0a 65 0x00002000 }..e
3d50: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 46 52 5f num : uint { FR_
3d60: 48 49 44 45 55 50 44 4f 57 4e 20 3d 20 30 78 30 HIDEUPDOWN = 0x0
3d70: 30 30 30 34 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 0004000 }..enum
3d80: 3a 20 75 69 6e 74 20 7b 20 46 52 5f 48 49 44 45 : uint { FR_HIDE
3d90: 4d 41 54 43 48 43 41 53 45 20 3d 20 30 78 30 30 MATCHCASE = 0x00
3da0: 30 30 38 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 008000 }..enum :
3db0: 20 75 69 6e 74 20 7b 20 46 52 5f 48 49 44 45 57 uint { FR_HIDEW
3dc0: 48 4f 4c 45 57 4f 52 44 20 3d 20 30 78 30 30 30 HOLEWORD = 0x000
3dd0: 31 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 10000 }..enum :
3de0: 75 69 6e 74 20 7b 20 46 52 5f 52 41 57 20 3d 20 uint { FR_RAW =
3df0: 30 78 30 30 30 32 30 30 30 30 20 7d 0d 0a 65 6e 0x00020000 }..en
3e00: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 46 52 5f 4d um : uint { FR_M
3e10: 41 54 43 48 44 49 41 43 20 3d 20 30 78 32 30 30 ATCHDIAC = 0x200
3e20: 30 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 00000 }..enum :
3e30: 75 69 6e 74 20 7b 20 46 52 5f 4d 41 54 43 48 4b uint { FR_MATCHK
3e40: 41 53 48 49 44 41 20 3d 20 30 78 34 30 30 30 30 ASHIDA = 0x40000
3e50: 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 000 }..enum : ui
3e60: 6e 74 20 7b 20 46 52 5f 4d 41 54 43 48 41 4c 45 nt { FR_MATCHALE
3e70: 46 48 41 4d 5a 41 20 3d 20 30 78 38 30 30 30 30 FHAMZA = 0x80000
3e80: 30 30 30 20 7d 0d 0a 0d 0a 65 78 74 65 72 6e 28 000 }....extern(
3e90: 57 69 6e 64 6f 77 73 29 20 65 78 70 6f 72 74 20 Windows) export
3ea0: 48 57 4e 44 20 46 69 6e 64 54 65 78 74 41 28 4c HWND FindTextA(L
3eb0: 50 46 49 4e 44 52 45 50 4c 41 43 45 41 29 3b 0d PFINDREPLACEA);.
3ec0: 0a 65 78 74 65 72 6e 28 57 69 6e 64 6f 77 73 29 .extern(Windows)
3ed0: 20 65 78 70 6f 72 74 20 48 57 4e 44 20 46 69 6e export HWND Fin
3ee0: 64 54 65 78 74 57 28 4c 50 46 49 4e 44 52 45 50 dTextW(LPFINDREP
3ef0: 4c 41 43 45 57 29 3b 0d 0a 2f 2f 20 23 69 66 64 LACEW);..// #ifd
3f00: 65 66 20 55 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 ef UNICODE..alia
3f10: 73 20 46 69 6e 64 54 65 78 74 57 20 46 69 6e 64 s FindTextW Find
3f20: 54 65 78 74 3b 0d 0a 2f 2f 20 23 65 6c 73 65 0d Text;..// #else.
3f30: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e .// #.....// #en
3f40: 64 69 66 20 2f 2f 20 21 55 4e 49 43 4f 44 45 0d dif // !UNICODE.
3f50: 0a 2f 2f 20 23 69 66 6e 64 65 66 20 5f 4d 41 43 .// #ifndef _MAC
3f60: 0d 0a 65 78 74 65 72 6e 28 57 69 6e 64 6f 77 73 ..extern(Windows
3f70: 29 20 65 78 70 6f 72 74 20 48 57 4e 44 20 52 65 ) export HWND Re
3f80: 70 6c 61 63 65 54 65 78 74 41 28 4c 50 46 49 4e placeTextA(LPFIN
3f90: 44 52 45 50 4c 41 43 45 41 29 3b 0d 0a 65 78 74 DREPLACEA);..ext
3fa0: 65 72 6e 28 57 69 6e 64 6f 77 73 29 20 65 78 70 ern(Windows) exp
3fb0: 6f 72 74 20 48 57 4e 44 20 52 65 70 6c 61 63 65 ort HWND Replace
3fc0: 54 65 78 74 57 28 4c 50 46 49 4e 44 52 45 50 4c TextW(LPFINDREPL
3fd0: 41 43 45 57 29 3b 0d 0a 2f 2f 20 23 69 66 64 65 ACEW);..// #ifde
3fe0: 66 20 55 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 73 f UNICODE..alias
3ff0: 20 52 65 70 6c 61 63 65 54 65 78 74 57 20 52 65 ReplaceTextW Re
4000: 70 6c 61 63 65 54 65 78 74 3b 0d 0a 2f 2f 20 23 placeText;..// #
4010: 65 6c 73 65 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f else..// #...../
4020: 2f 20 23 65 6e 64 69 66 20 2f 2f 20 21 55 4e 49 / #endif // !UNI
4030: 43 4f 44 45 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a CODE..// #else..
4040: 2f 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 69 66 64 65 // .....// #ifde
4050: 66 20 55 4e 49 43 4f 44 45 0d 0a 2f 2f 20 23 2e f UNICODE..// #.
4060: 2e 2e 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f ....// #else..//
4070: 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 #.....// #endif
4080: 20 2f 2f 20 21 55 4e 49 43 4f 44 45 0d 0a 2f 2f // !UNICODE..//
4090: 20 23 65 6e 64 69 66 0d 0a 0d 0a 65 78 74 65 72 #endif....exter
40a0: 6e 28 57 69 6e 64 6f 77 73 29 20 61 6c 69 61 73 n(Windows) alias
40b0: 20 55 49 4e 54 5f 50 54 52 20 66 75 6e 63 74 69 UINT_PTR functi
40c0: 6f 6e 28 48 57 4e 44 2c 20 55 49 4e 54 2c 20 57 on(HWND, UINT, W
40d0: 50 41 52 41 4d 2c 20 4c 50 41 52 41 4d 29 20 4c PARAM, LPARAM) L
40e0: 50 43 46 48 4f 4f 4b 50 52 4f 43 3b 0d 0a 0d 0a PCFHOOKPROC;....
40f0: 73 74 72 75 63 74 20 74 61 67 43 48 4f 4f 53 45 struct tagCHOOSE
4100: 46 4f 4e 54 41 20 7b 0d 0a 20 20 44 57 4f 52 44 FONTA {.. DWORD
4110: 20 6c 53 74 72 75 63 74 53 69 7a 65 3b 0d 0a 20 lStructSize;..
4120: 20 48 57 4e 44 20 68 77 6e 64 4f 77 6e 65 72 3b HWND hwndOwner;
4130: 0d 0a 20 20 48 44 43 20 68 44 43 3b 0d 0a 20 20 .. HDC hDC;..
4140: 4c 50 4c 4f 47 46 4f 4e 54 41 20 6c 70 4c 6f 67 LPLOGFONTA lpLog
4150: 46 6f 6e 74 3b 0d 0a 20 20 49 4e 54 20 69 50 6f Font;.. INT iPo
4160: 69 6e 74 53 69 7a 65 3b 0d 0a 20 20 44 57 4f 52 intSize;.. DWOR
4170: 44 20 46 6c 61 67 73 3b 0d 0a 20 20 43 4f 4c 4f D Flags;.. COLO
4180: 52 52 45 46 20 72 67 62 43 6f 6c 6f 72 73 3b 0d RREF rgbColors;.
4190: 0a 20 20 4c 50 41 52 41 4d 20 6c 43 75 73 74 44 . LPARAM lCustD
41a0: 61 74 61 3b 0d 0a 20 20 4c 50 43 46 48 4f 4f 4b ata;.. LPCFHOOK
41b0: 50 52 4f 43 20 6c 70 66 6e 48 6f 6f 6b 3b 0d 0a PROC lpfnHook;..
41c0: 20 20 4c 50 43 53 54 52 20 6c 70 54 65 6d 70 6c LPCSTR lpTempl
41d0: 61 74 65 4e 61 6d 65 3b 0d 0a 20 20 48 49 4e 53 ateName;.. HINS
41e0: 54 41 4e 43 45 20 68 49 6e 73 74 61 6e 63 65 3b TANCE hInstance;
41f0: 0d 0a 0d 0a 20 20 4c 50 53 54 52 20 6c 70 73 7a .... LPSTR lpsz
4200: 53 74 79 6c 65 3b 0d 0a 0d 0a 20 20 57 4f 52 44 Style;.... WORD
4210: 20 6e 46 6f 6e 74 54 79 70 65 3b 0d 0a 0d 0a 20 nFontType;....
4220: 20 57 4f 52 44 20 5f 5f 5f 4d 49 53 53 49 4e 47 WORD ___MISSING
4230: 5f 41 4c 49 47 4e 4d 45 4e 54 5f 5f 3b 0d 0a 20 _ALIGNMENT__;..
4240: 20 49 4e 54 20 6e 53 69 7a 65 4d 69 6e 3b 0d 0a INT nSizeMin;..
4250: 20 20 49 4e 54 20 6e 53 69 7a 65 4d 61 78 3b 0d INT nSizeMax;.
4260: 0a 0d 0a 7d 0d 0a 61 6c 69 61 73 20 74 61 67 43 ...}..alias tagC
4270: 48 4f 4f 53 45 46 4f 4e 54 41 20 43 48 4f 4f 53 HOOSEFONTA CHOOS
4280: 45 46 4f 4e 54 41 3b 0d 0a 61 6c 69 61 73 20 74 EFONTA;..alias t
4290: 61 67 43 48 4f 4f 53 45 46 4f 4e 54 41 2a 20 4c agCHOOSEFONTA* L
42a0: 50 43 48 4f 4f 53 45 46 4f 4e 54 41 3b 0d 0a 0d PCHOOSEFONTA;...
42b0: 0a 73 74 72 75 63 74 20 74 61 67 43 48 4f 4f 53 .struct tagCHOOS
42c0: 45 46 4f 4e 54 57 20 7b 0d 0a 20 20 44 57 4f 52 EFONTW {.. DWOR
42d0: 44 20 6c 53 74 72 75 63 74 53 69 7a 65 3b 0d 0a D lStructSize;..
42e0: 20 20 48 57 4e 44 20 68 77 6e 64 4f 77 6e 65 72 HWND hwndOwner
42f0: 3b 0d 0a 20 20 48 44 43 20 68 44 43 3b 0d 0a 20 ;.. HDC hDC;..
4300: 20 4c 50 4c 4f 47 46 4f 4e 54 57 20 6c 70 4c 6f LPLOGFONTW lpLo
4310: 67 46 6f 6e 74 3b 0d 0a 20 20 49 4e 54 20 69 50 gFont;.. INT iP
4320: 6f 69 6e 74 53 69 7a 65 3b 0d 0a 20 20 44 57 4f ointSize;.. DWO
4330: 52 44 20 46 6c 61 67 73 3b 0d 0a 20 20 43 4f 4c RD Flags;.. COL
4340: 4f 52 52 45 46 20 72 67 62 43 6f 6c 6f 72 73 3b ORREF rgbColors;
4350: 0d 0a 20 20 4c 50 41 52 41 4d 20 6c 43 75 73 74 .. LPARAM lCust
4360: 44 61 74 61 3b 0d 0a 20 20 4c 50 43 46 48 4f 4f Data;.. LPCFHOO
4370: 4b 50 52 4f 43 20 6c 70 66 6e 48 6f 6f 6b 3b 0d KPROC lpfnHook;.
4380: 0a 20 20 4c 50 43 57 53 54 52 20 6c 70 54 65 6d . LPCWSTR lpTem
4390: 70 6c 61 74 65 4e 61 6d 65 3b 0d 0a 20 20 48 49 plateName;.. HI
43a0: 4e 53 54 41 4e 43 45 20 68 49 6e 73 74 61 6e 63 NSTANCE hInstanc
43b0: 65 3b 0d 0a 0d 0a 20 20 4c 50 57 53 54 52 20 6c e;.... LPWSTR l
43c0: 70 73 7a 53 74 79 6c 65 3b 0d 0a 0d 0a 20 20 57 pszStyle;.... W
43d0: 4f 52 44 20 6e 46 6f 6e 74 54 79 70 65 3b 0d 0a ORD nFontType;..
43e0: 0d 0a 20 20 57 4f 52 44 20 5f 5f 5f 4d 49 53 53 .. WORD ___MISS
43f0: 49 4e 47 5f 41 4c 49 47 4e 4d 45 4e 54 5f 5f 3b ING_ALIGNMENT__;
4400: 0d 0a 20 20 49 4e 54 20 6e 53 69 7a 65 4d 69 6e .. INT nSizeMin
4410: 3b 0d 0a 20 20 49 4e 54 20 6e 53 69 7a 65 4d 61 ;.. INT nSizeMa
4420: 78 3b 0d 0a 0d 0a 7d 0d 0a 61 6c 69 61 73 20 74 x;....}..alias t
4430: 61 67 43 48 4f 4f 53 45 46 4f 4e 54 57 20 43 48 agCHOOSEFONTW CH
4440: 4f 4f 53 45 46 4f 4e 54 57 3b 0d 0a 61 6c 69 61 OOSEFONTW;..alia
4450: 73 20 74 61 67 43 48 4f 4f 53 45 46 4f 4e 54 57 s tagCHOOSEFONTW
4460: 2a 20 4c 50 43 48 4f 4f 53 45 46 4f 4e 54 57 3b * LPCHOOSEFONTW;
4470: 0d 0a 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 4e ....// #ifdef UN
4480: 49 43 4f 44 45 0d 0a 61 6c 69 61 73 20 43 48 4f ICODE..alias CHO
4490: 4f 53 45 46 4f 4e 54 57 20 43 48 4f 4f 53 45 46 OSEFONTW CHOOSEF
44a0: 4f 4e 54 3b 0d 0a 61 6c 69 61 73 20 4c 50 43 48 ONT;..alias LPCH
44b0: 4f 4f 53 45 46 4f 4e 54 57 20 4c 50 43 48 4f 4f OOSEFONTW LPCHOO
44c0: 53 45 46 4f 4e 54 3b 0d 0a 2f 2f 20 23 65 6c 73 SEFONT;..// #els
44d0: 65 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 65 e..// .....// #e
44e0: 6e 64 69 66 20 2f 2f 20 55 4e 49 43 4f 44 45 0d ndif // UNICODE.
44f0: 0a 0d 0a 65 78 74 65 72 6e 28 57 69 6e 64 6f 77 ...extern(Window
4500: 73 29 20 65 78 70 6f 72 74 20 42 4f 4f 4c 20 43 s) export BOOL C
4510: 68 6f 6f 73 65 46 6f 6e 74 41 28 4c 50 43 48 4f hooseFontA(LPCHO
4520: 4f 53 45 46 4f 4e 54 41 29 3b 0d 0a 65 78 74 65 OSEFONTA);..exte
4530: 72 6e 28 57 69 6e 64 6f 77 73 29 20 65 78 70 6f rn(Windows) expo
4540: 72 74 20 42 4f 4f 4c 20 43 68 6f 6f 73 65 46 6f rt BOOL ChooseFo
4550: 6e 74 57 28 4c 50 43 48 4f 4f 53 45 46 4f 4e 54 ntW(LPCHOOSEFONT
4560: 57 29 3b 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 W);..// #ifdef U
4570: 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 73 20 43 68 NICODE..alias Ch
4580: 6f 6f 73 65 46 6f 6e 74 57 20 43 68 6f 6f 73 65 ooseFontW Choose
4590: 46 6f 6e 74 3b 0d 0a 2f 2f 20 23 65 6c 73 65 0d Font;..// #else.
45a0: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e .// #.....// #en
45b0: 64 69 66 20 2f 2f 20 21 55 4e 49 43 4f 44 45 0d dif // !UNICODE.
45c0: 0a 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b ...enum : uint {
45d0: 20 43 46 5f 53 43 52 45 45 4e 46 4f 4e 54 53 20 CF_SCREENFONTS
45e0: 3d 20 30 78 30 30 30 30 30 30 30 31 20 7d 0d 0a = 0x00000001 }..
45f0: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 46 enum : uint { CF
4600: 5f 50 52 49 4e 54 45 52 46 4f 4e 54 53 20 3d 20 _PRINTERFONTS =
4610: 30 78 30 30 30 30 30 30 30 32 20 7d 0d 0a 63 6f 0x00000002 }..co
4620: 6e 73 74 20 75 69 6e 74 20 43 46 5f 42 4f 54 48 nst uint CF_BOTH
4630: 20 3d 20 43 46 5f 53 43 52 45 45 4e 46 4f 4e 54 = CF_SCREENFONT
4640: 53 20 7c 20 43 46 5f 50 52 49 4e 54 45 52 46 4f S | CF_PRINTERFO
4650: 4e 54 53 3b 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e NTS;..enum : uin
4660: 74 20 7b 20 43 46 5f 53 48 4f 57 48 45 4c 50 20 t { CF_SHOWHELP
4670: 3d 20 30 78 30 30 30 30 30 30 30 34 20 7d 0d 0a = 0x00000004 }..
4680: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 46 enum : uint { CF
4690: 5f 45 4e 41 42 4c 45 48 4f 4f 4b 20 3d 20 30 78 _ENABLEHOOK = 0x
46a0: 30 30 30 30 30 30 30 38 20 7d 0d 0a 65 6e 75 6d 00000008 }..enum
46b0: 20 3a 20 75 69 6e 74 20 7b 20 43 46 5f 45 4e 41 : uint { CF_ENA
46c0: 42 4c 45 54 45 4d 50 4c 41 54 45 20 3d 20 30 78 BLETEMPLATE = 0x
46d0: 30 30 30 30 30 30 31 30 20 7d 0d 0a 65 6e 75 6d 00000010 }..enum
46e0: 20 3a 20 75 69 6e 74 20 7b 20 43 46 5f 45 4e 41 : uint { CF_ENA
46f0: 42 4c 45 54 45 4d 50 4c 41 54 45 48 41 4e 44 4c BLETEMPLATEHANDL
4700: 45 20 3d 20 30 78 30 30 30 30 30 30 32 30 20 7d E = 0x00000020 }
4710: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
4720: 43 46 5f 49 4e 49 54 54 4f 4c 4f 47 46 4f 4e 54 CF_INITTOLOGFONT
4730: 53 54 52 55 43 54 20 3d 20 30 78 30 30 30 30 30 STRUCT = 0x00000
4740: 30 34 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 040 }..enum : ui
4750: 6e 74 20 7b 20 43 46 5f 55 53 45 53 54 59 4c 45 nt { CF_USESTYLE
4760: 20 3d 20 30 78 30 30 30 30 30 30 38 30 20 7d 0d = 0x00000080 }.
4770: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 .enum : uint { C
4780: 46 5f 45 46 46 45 43 54 53 20 3d 20 30 78 30 30 F_EFFECTS = 0x00
4790: 30 30 30 31 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 000100 }..enum :
47a0: 20 75 69 6e 74 20 7b 20 43 46 5f 41 50 50 4c 59 uint { CF_APPLY
47b0: 20 3d 20 30 78 30 30 30 30 30 32 30 30 20 7d 0d = 0x00000200 }.
47c0: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 .enum : uint { C
47d0: 46 5f 41 4e 53 49 4f 4e 4c 59 20 3d 20 30 78 30 F_ANSIONLY = 0x0
47e0: 30 30 30 30 34 30 30 20 7d 0d 0a 2f 2f 20 23 69 0000400 }..// #i
47f0: 66 28 57 49 4e 56 45 52 20 3e 3d 20 30 78 30 34 f(WINVER >= 0x04
4800: 30 30 29 0d 0a 61 6c 69 61 73 20 43 46 5f 41 4e 00)..alias CF_AN
4810: 53 49 4f 4e 4c 59 20 43 46 5f 53 43 52 49 50 54 SIONLY CF_SCRIPT
4820: 53 4f 4e 4c 59 3b 0d 0a 2f 2f 20 23 65 6e 64 69 SONLY;..// #endi
4830: 66 20 2f 2a 20 57 49 4e 56 45 52 20 3e 3d 20 30 f /* WINVER >= 0
4840: 78 30 34 30 30 20 2a 2f 0d 0a 65 6e 75 6d 20 3a x0400 */..enum :
4850: 20 75 69 6e 74 20 7b 20 43 46 5f 4e 4f 56 45 43 uint { CF_NOVEC
4860: 54 4f 52 46 4f 4e 54 53 20 3d 20 30 78 30 30 30 TORFONTS = 0x000
4870: 30 30 38 30 30 20 7d 0d 0a 61 6c 69 61 73 20 43 00800 }..alias C
4880: 46 5f 4e 4f 56 45 43 54 4f 52 46 4f 4e 54 53 20 F_NOVECTORFONTS
4890: 43 46 5f 4e 4f 4f 45 4d 46 4f 4e 54 53 3b 0d 0a CF_NOOEMFONTS;..
48a0: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 46 enum : uint { CF
48b0: 5f 4e 4f 53 49 4d 55 4c 41 54 49 4f 4e 53 20 3d _NOSIMULATIONS =
48c0: 20 30 78 30 30 30 30 31 30 30 30 20 7d 0d 0a 65 0x00001000 }..e
48d0: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 46 5f num : uint { CF_
48e0: 4c 49 4d 49 54 53 49 5a 45 20 3d 20 30 78 30 30 LIMITSIZE = 0x00
48f0: 30 30 32 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 002000 }..enum :
4900: 20 75 69 6e 74 20 7b 20 43 46 5f 46 49 58 45 44 uint { CF_FIXED
4910: 50 49 54 43 48 4f 4e 4c 59 20 3d 20 30 78 30 30 PITCHONLY = 0x00
4920: 30 30 34 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 004000 }..enum :
4930: 20 75 69 6e 74 20 7b 20 43 46 5f 57 59 53 49 57 uint { CF_WYSIW
4940: 59 47 20 3d 20 30 78 30 30 30 30 38 30 30 30 20 YG = 0x00008000
4950: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
4960: 20 43 46 5f 46 4f 52 43 45 46 4f 4e 54 45 58 49 CF_FORCEFONTEXI
4970: 53 54 20 3d 20 30 78 30 30 30 31 30 30 30 30 20 ST = 0x00010000
4980: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
4990: 20 43 46 5f 53 43 41 4c 41 42 4c 45 4f 4e 4c 59 CF_SCALABLEONLY
49a0: 20 3d 20 30 78 30 30 30 32 30 30 30 30 20 7d 0d = 0x00020000 }.
49b0: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 .enum : uint { C
49c0: 46 5f 54 54 4f 4e 4c 59 20 3d 20 30 78 30 30 30 F_TTONLY = 0x000
49d0: 34 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 40000 }..enum :
49e0: 75 69 6e 74 20 7b 20 43 46 5f 4e 4f 46 41 43 45 uint { CF_NOFACE
49f0: 53 45 4c 20 3d 20 30 78 30 30 30 38 30 30 30 30 SEL = 0x00080000
4a00: 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 }..enum : uint
4a10: 7b 20 43 46 5f 4e 4f 53 54 59 4c 45 53 45 4c 20 { CF_NOSTYLESEL
4a20: 3d 20 30 78 30 30 31 30 30 30 30 30 20 7d 0d 0a = 0x00100000 }..
4a30: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 46 enum : uint { CF
4a40: 5f 4e 4f 53 49 5a 45 53 45 4c 20 3d 20 30 78 30 _NOSIZESEL = 0x0
4a50: 30 32 30 30 30 30 30 20 7d 0d 0a 2f 2f 20 23 69 0200000 }..// #i
4a60: 66 28 57 49 4e 56 45 52 20 3e 3d 20 30 78 30 34 f(WINVER >= 0x04
4a70: 30 30 29 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 00)..enum : uint
4a80: 20 7b 20 43 46 5f 53 45 4c 45 43 54 53 43 52 49 { CF_SELECTSCRI
4a90: 50 54 20 3d 20 30 78 30 30 34 30 30 30 30 30 20 PT = 0x00400000
4aa0: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
4ab0: 20 43 46 5f 4e 4f 53 43 52 49 50 54 53 45 4c 20 CF_NOSCRIPTSEL
4ac0: 3d 20 30 78 30 30 38 30 30 30 30 30 20 7d 0d 0a = 0x00800000 }..
4ad0: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 46 enum : uint { CF
4ae0: 5f 4e 4f 56 45 52 54 46 4f 4e 54 53 20 3d 20 30 _NOVERTFONTS = 0
4af0: 78 30 31 30 30 30 30 30 30 20 7d 0d 0a 2f 2f 20 x01000000 }..//
4b00: 23 65 6e 64 69 66 20 2f 2a 20 57 49 4e 56 45 52 #endif /* WINVER
4b10: 20 3e 3d 20 30 78 30 34 30 30 20 2a 2f 0d 0a 0d >= 0x0400 */...
4b20: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 53 .enum : uint { S
4b30: 49 4d 55 4c 41 54 45 44 5f 46 4f 4e 54 54 59 50 IMULATED_FONTTYP
4b40: 45 20 3d 20 30 78 38 30 30 30 20 7d 0d 0a 65 6e E = 0x8000 }..en
4b50: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 52 49 4e um : uint { PRIN
4b60: 54 45 52 5f 46 4f 4e 54 54 59 50 45 20 3d 20 30 TER_FONTTYPE = 0
4b70: 78 34 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 x4000 }..enum :
4b80: 75 69 6e 74 20 7b 20 53 43 52 45 45 4e 5f 46 4f uint { SCREEN_FO
4b90: 4e 54 54 59 50 45 20 3d 20 30 78 32 30 30 30 20 NTTYPE = 0x2000
4ba0: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
4bb0: 20 42 4f 4c 44 5f 46 4f 4e 54 54 59 50 45 20 3d BOLD_FONTTYPE =
4bc0: 20 30 78 30 31 30 30 20 7d 0d 0a 65 6e 75 6d 20 0x0100 }..enum
4bd0: 3a 20 75 69 6e 74 20 7b 20 49 54 41 4c 49 43 5f : uint { ITALIC_
4be0: 46 4f 4e 54 54 59 50 45 20 3d 20 30 78 30 32 30 FONTTYPE = 0x020
4bf0: 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 0 }..enum : uint
4c00: 20 7b 20 52 45 47 55 4c 41 52 5f 46 4f 4e 54 54 { REGULAR_FONTT
4c10: 59 50 45 20 3d 20 30 78 30 34 30 30 20 7d 0d 0a YPE = 0x0400 }..
4c20: 0d 0a 2f 2f 20 23 69 66 64 65 66 20 57 49 4e 4e ..// #ifdef WINN
4c30: 54 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 T..// #.....// #
4c40: 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f .....// #.....//
4c50: 20 23 65 6e 64 69 66 0d 0a 0d 0a 63 6f 6e 73 74 #endif....const
4c60: 20 75 69 6e 74 20 57 4d 5f 43 48 4f 4f 53 45 46 uint WM_CHOOSEF
4c70: 4f 4e 54 5f 47 45 54 4c 4f 47 46 4f 4e 54 20 3d ONT_GETLOGFONT =
4c80: 20 57 4d 5f 55 53 45 52 20 2b 20 31 3b 0d 0a 63 WM_USER + 1;..c
4c90: 6f 6e 73 74 20 75 69 6e 74 20 57 4d 5f 43 48 4f onst uint WM_CHO
4ca0: 4f 53 45 46 4f 4e 54 5f 53 45 54 4c 4f 47 46 4f OSEFONT_SETLOGFO
4cb0: 4e 54 20 3d 20 57 4d 5f 55 53 45 52 20 2b 20 31 NT = WM_USER + 1
4cc0: 30 31 3b 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 01;..const uint
4cd0: 57 4d 5f 43 48 4f 4f 53 45 46 4f 4e 54 5f 53 45 WM_CHOOSEFONT_SE
4ce0: 54 46 4c 41 47 53 20 3d 20 57 4d 5f 55 53 45 52 TFLAGS = WM_USER
4cf0: 20 2b 20 31 30 32 3b 0d 0a 0d 0a 63 6f 6e 73 74 + 102;....const
4d00: 20 63 68 61 72 5b 5d 20 4c 42 53 45 4c 43 48 53 char[] LBSELCHS
4d10: 54 52 49 4e 47 41 20 3d 20 22 63 6f 6d 6d 64 6c TRINGA = "commdl
4d20: 67 5f 4c 42 53 65 6c 43 68 61 6e 67 65 64 4e 6f g_LBSelChangedNo
4d30: 74 69 66 79 22 3b 0d 0a 63 6f 6e 73 74 20 63 68 tify";..const ch
4d40: 61 72 5b 5d 20 53 48 41 52 45 56 49 53 54 52 49 ar[] SHAREVISTRI
4d50: 4e 47 41 20 3d 20 22 63 6f 6d 6d 64 6c 67 5f 53 NGA = "commdlg_S
4d60: 68 61 72 65 56 69 6f 6c 61 74 69 6f 6e 22 3b 0d hareViolation";.
4d70: 0a 63 6f 6e 73 74 20 63 68 61 72 5b 5d 20 46 49 .const char[] FI
4d80: 4c 45 4f 4b 53 54 52 49 4e 47 41 20 3d 20 22 63 LEOKSTRINGA = "c
4d90: 6f 6d 6d 64 6c 67 5f 46 69 6c 65 4e 61 6d 65 4f ommdlg_FileNameO
4da0: 4b 22 3b 0d 0a 63 6f 6e 73 74 20 63 68 61 72 5b K";..const char[
4db0: 5d 20 43 4f 4c 4f 52 4f 4b 53 54 52 49 4e 47 41 ] COLOROKSTRINGA
4dc0: 20 3d 20 22 63 6f 6d 6d 64 6c 67 5f 43 6f 6c 6f = "commdlg_Colo
4dd0: 72 4f 4b 22 3b 0d 0a 63 6f 6e 73 74 20 63 68 61 rOK";..const cha
4de0: 72 5b 5d 20 53 45 54 52 47 42 53 54 52 49 4e 47 r[] SETRGBSTRING
4df0: 41 20 3d 20 22 63 6f 6d 6d 64 6c 67 5f 53 65 74 A = "commdlg_Set
4e00: 52 47 42 43 6f 6c 6f 72 22 3b 0d 0a 63 6f 6e 73 RGBColor";..cons
4e10: 74 20 63 68 61 72 5b 5d 20 48 45 4c 50 4d 53 47 t char[] HELPMSG
4e20: 53 54 52 49 4e 47 41 20 3d 20 22 63 6f 6d 6d 64 STRINGA = "commd
4e30: 6c 67 5f 68 65 6c 70 22 3b 0d 0a 63 6f 6e 73 74 lg_help";..const
4e40: 20 63 68 61 72 5b 5d 20 46 49 4e 44 4d 53 47 53 char[] FINDMSGS
4e50: 54 52 49 4e 47 41 20 3d 20 22 63 6f 6d 6d 64 6c TRINGA = "commdl
4e60: 67 5f 46 69 6e 64 52 65 70 6c 61 63 65 22 3b 0d g_FindReplace";.
4e70: 0a 0d 0a 63 6f 6e 73 74 20 77 63 68 61 72 5b 5d ...const wchar[]
4e80: 20 4c 42 53 45 4c 43 48 53 54 52 49 4e 47 57 20 LBSELCHSTRINGW
4e90: 3d 20 22 63 6f 6d 6d 64 6c 67 5f 4c 42 53 65 6c = "commdlg_LBSel
4ea0: 43 68 61 6e 67 65 64 4e 6f 74 69 66 79 22 3b 0d ChangedNotify";.
4eb0: 0a 63 6f 6e 73 74 20 77 63 68 61 72 5b 5d 20 53 .const wchar[] S
4ec0: 48 41 52 45 56 49 53 54 52 49 4e 47 57 20 3d 20 HAREVISTRINGW =
4ed0: 22 63 6f 6d 6d 64 6c 67 5f 53 68 61 72 65 56 69 "commdlg_ShareVi
4ee0: 6f 6c 61 74 69 6f 6e 22 3b 0d 0a 63 6f 6e 73 74 olation";..const
4ef0: 20 77 63 68 61 72 5b 5d 20 46 49 4c 45 4f 4b 53 wchar[] FILEOKS
4f00: 54 52 49 4e 47 57 20 3d 20 22 63 6f 6d 6d 64 6c TRINGW = "commdl
4f10: 67 5f 46 69 6c 65 4e 61 6d 65 4f 4b 22 3b 0d 0a g_FileNameOK";..
4f20: 63 6f 6e 73 74 20 77 63 68 61 72 5b 5d 20 43 4f const wchar[] CO
4f30: 4c 4f 52 4f 4b 53 54 52 49 4e 47 57 20 3d 20 22 LOROKSTRINGW = "
4f40: 63 6f 6d 6d 64 6c 67 5f 43 6f 6c 6f 72 4f 4b 22 commdlg_ColorOK"
4f50: 3b 0d 0a 63 6f 6e 73 74 20 77 63 68 61 72 5b 5d ;..const wchar[]
4f60: 20 53 45 54 52 47 42 53 54 52 49 4e 47 57 20 3d SETRGBSTRINGW =
4f70: 20 22 63 6f 6d 6d 64 6c 67 5f 53 65 74 52 47 42 "commdlg_SetRGB
4f80: 43 6f 6c 6f 72 22 3b 0d 0a 63 6f 6e 73 74 20 77 Color";..const w
4f90: 63 68 61 72 5b 5d 20 48 45 4c 50 4d 53 47 53 54 char[] HELPMSGST
4fa0: 52 49 4e 47 57 20 3d 20 22 63 6f 6d 6d 64 6c 67 RINGW = "commdlg
4fb0: 5f 68 65 6c 70 22 3b 0d 0a 63 6f 6e 73 74 20 77 _help";..const w
4fc0: 63 68 61 72 5b 5d 20 46 49 4e 44 4d 53 47 53 54 char[] FINDMSGST
4fd0: 52 49 4e 47 57 20 3d 20 22 63 6f 6d 6d 64 6c 67 RINGW = "commdlg
4fe0: 5f 46 69 6e 64 52 65 70 6c 61 63 65 22 3b 0d 0a _FindReplace";..
4ff0: 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 4e 49 43 ..// #ifdef UNIC
5000: 4f 44 45 0d 0a 61 6c 69 61 73 20 4c 42 53 45 4c ODE..alias LBSEL
5010: 43 48 53 54 52 49 4e 47 57 20 4c 42 53 45 4c 43 CHSTRINGW LBSELC
5020: 48 53 54 52 49 4e 47 3b 0d 0a 61 6c 69 61 73 20 HSTRING;..alias
5030: 53 48 41 52 45 56 49 53 54 52 49 4e 47 57 20 53 SHAREVISTRINGW S
5040: 48 41 52 45 56 49 53 54 52 49 4e 47 3b 0d 0a 61 HAREVISTRING;..a
5050: 6c 69 61 73 20 46 49 4c 45 4f 4b 53 54 52 49 4e lias FILEOKSTRIN
5060: 47 57 20 46 49 4c 45 4f 4b 53 54 52 49 4e 47 3b GW FILEOKSTRING;
5070: 0d 0a 61 6c 69 61 73 20 43 4f 4c 4f 52 4f 4b 53 ..alias COLOROKS
5080: 54 52 49 4e 47 57 20 43 4f 4c 4f 52 4f 4b 53 54 TRINGW COLOROKST
5090: 52 49 4e 47 3b 0d 0a 61 6c 69 61 73 20 53 45 54 RING;..alias SET
50a0: 52 47 42 53 54 52 49 4e 47 57 20 53 45 54 52 47 RGBSTRINGW SETRG
50b0: 42 53 54 52 49 4e 47 3b 0d 0a 61 6c 69 61 73 20 BSTRING;..alias
50c0: 48 45 4c 50 4d 53 47 53 54 52 49 4e 47 57 20 48 HELPMSGSTRINGW H
50d0: 45 4c 50 4d 53 47 53 54 52 49 4e 47 3b 0d 0a 61 ELPMSGSTRING;..a
50e0: 6c 69 61 73 20 46 49 4e 44 4d 53 47 53 54 52 49 lias FINDMSGSTRI
50f0: 4e 47 57 20 46 49 4e 44 4d 53 47 53 54 52 49 4e NGW FINDMSGSTRIN
5100: 47 3b 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f G;..// #else..//
5110: 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a #.....// #.....
5120: 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e // #.....// #...
5130: 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e ..// #.....// #.
5140: 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 ....// #.....//
5150: 23 65 6e 64 69 66 0d 0a 0d 0a 65 6e 75 6d 20 7b #endif....enum {
5160: 20 43 44 5f 4c 42 53 45 4c 4e 4f 49 54 45 4d 53 CD_LBSELNOITEMS
5170: 20 3d 20 2d 31 20 7d 0d 0a 65 6e 75 6d 20 3a 20 = -1 }..enum :
5180: 75 69 6e 74 20 7b 20 43 44 5f 4c 42 53 45 4c 43 uint { CD_LBSELC
5190: 48 41 4e 47 45 20 3d 20 30 20 7d 0d 0a 65 6e 75 HANGE = 0 }..enu
51a0: 6d 20 3a 20 75 69 6e 74 20 7b 20 43 44 5f 4c 42 m : uint { CD_LB
51b0: 53 45 4c 53 55 42 20 3d 20 31 20 7d 0d 0a 65 6e SELSUB = 1 }..en
51c0: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 43 44 5f 4c um : uint { CD_L
51d0: 42 53 45 4c 41 44 44 20 3d 20 32 20 7d 0d 0a 0d BSELADD = 2 }...
51e0: 0a 65 78 74 65 72 6e 28 57 69 6e 64 6f 77 73 29 .extern(Windows)
51f0: 20 61 6c 69 61 73 20 55 49 4e 54 5f 50 54 52 20 alias UINT_PTR
5200: 66 75 6e 63 74 69 6f 6e 28 48 57 4e 44 2c 20 55 function(HWND, U
5210: 49 4e 54 2c 20 57 50 41 52 41 4d 2c 20 4c 50 41 INT, WPARAM, LPA
5220: 52 41 4d 29 20 4c 50 50 52 49 4e 54 48 4f 4f 4b RAM) LPPRINTHOOK
5230: 50 52 4f 43 3b 0d 0a 65 78 74 65 72 6e 28 57 69 PROC;..extern(Wi
5240: 6e 64 6f 77 73 29 20 61 6c 69 61 73 20 55 49 4e ndows) alias UIN
5250: 54 5f 50 54 52 20 66 75 6e 63 74 69 6f 6e 28 48 T_PTR function(H
5260: 57 4e 44 2c 20 55 49 4e 54 2c 20 57 50 41 52 41 WND, UINT, WPARA
5270: 4d 2c 20 4c 50 41 52 41 4d 29 20 4c 50 53 45 54 M, LPARAM) LPSET
5280: 55 50 48 4f 4f 4b 50 52 4f 43 3b 0d 0a 0d 0a 73 UPHOOKPROC;....s
5290: 74 72 75 63 74 20 74 61 67 50 44 41 20 7b 0d 0a truct tagPDA {..
52a0: 20 20 44 57 4f 52 44 20 6c 53 74 72 75 63 74 53 DWORD lStructS
52b0: 69 7a 65 3b 0d 0a 20 20 48 57 4e 44 20 68 77 6e ize;.. HWND hwn
52c0: 64 4f 77 6e 65 72 3b 0d 0a 20 20 48 47 4c 4f 42 dOwner;.. HGLOB
52d0: 41 4c 20 68 44 65 76 4d 6f 64 65 3b 0d 0a 20 20 AL hDevMode;..
52e0: 48 47 4c 4f 42 41 4c 20 68 44 65 76 4e 61 6d 65 HGLOBAL hDevName
52f0: 73 3b 0d 0a 20 20 48 44 43 20 68 44 43 3b 0d 0a s;.. HDC hDC;..
5300: 20 20 44 57 4f 52 44 20 46 6c 61 67 73 3b 0d 0a DWORD Flags;..
5310: 20 20 57 4f 52 44 20 6e 46 72 6f 6d 50 61 67 65 WORD nFromPage
5320: 3b 0d 0a 20 20 57 4f 52 44 20 6e 54 6f 50 61 67 ;.. WORD nToPag
5330: 65 3b 0d 0a 20 20 57 4f 52 44 20 6e 4d 69 6e 50 e;.. WORD nMinP
5340: 61 67 65 3b 0d 0a 20 20 57 4f 52 44 20 6e 4d 61 age;.. WORD nMa
5350: 78 50 61 67 65 3b 0d 0a 20 20 57 4f 52 44 20 6e xPage;.. WORD n
5360: 43 6f 70 69 65 73 3b 0d 0a 20 20 48 49 4e 53 54 Copies;.. HINST
5370: 41 4e 43 45 20 68 49 6e 73 74 61 6e 63 65 3b 0d ANCE hInstance;.
5380: 0a 20 20 4c 50 41 52 41 4d 20 6c 43 75 73 74 44 . LPARAM lCustD
5390: 61 74 61 3b 0d 0a 20 20 4c 50 50 52 49 4e 54 48 ata;.. LPPRINTH
53a0: 4f 4f 4b 50 52 4f 43 20 6c 70 66 6e 50 72 69 6e OOKPROC lpfnPrin
53b0: 74 48 6f 6f 6b 3b 0d 0a 20 20 4c 50 53 45 54 55 tHook;.. LPSETU
53c0: 50 48 4f 4f 4b 50 52 4f 43 20 6c 70 66 6e 53 65 PHOOKPROC lpfnSe
53d0: 74 75 70 48 6f 6f 6b 3b 0d 0a 20 20 4c 50 43 53 tupHook;.. LPCS
53e0: 54 52 20 6c 70 50 72 69 6e 74 54 65 6d 70 6c 61 TR lpPrintTempla
53f0: 74 65 4e 61 6d 65 3b 0d 0a 20 20 4c 50 43 53 54 teName;.. LPCST
5400: 52 20 6c 70 53 65 74 75 70 54 65 6d 70 6c 61 74 R lpSetupTemplat
5410: 65 4e 61 6d 65 3b 0d 0a 20 20 48 47 4c 4f 42 41 eName;.. HGLOBA
5420: 4c 20 68 50 72 69 6e 74 54 65 6d 70 6c 61 74 65 L hPrintTemplate
5430: 3b 0d 0a 20 20 48 47 4c 4f 42 41 4c 20 68 53 65 ;.. HGLOBAL hSe
5440: 74 75 70 54 65 6d 70 6c 61 74 65 3b 0d 0a 7d 0d tupTemplate;..}.
5450: 0a 61 6c 69 61 73 20 74 61 67 50 44 41 20 50 52 .alias tagPDA PR
5460: 49 4e 54 44 4c 47 41 3b 0d 0a 61 6c 69 61 73 20 INTDLGA;..alias
5470: 74 61 67 50 44 41 2a 20 4c 50 50 52 49 4e 54 44 tagPDA* LPPRINTD
5480: 4c 47 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 74 LGA;....struct t
5490: 61 67 50 44 57 20 7b 0d 0a 20 20 44 57 4f 52 44 agPDW {.. DWORD
54a0: 20 6c 53 74 72 75 63 74 53 69 7a 65 3b 0d 0a 20 lStructSize;..
54b0: 20 48 57 4e 44 20 68 77 6e 64 4f 77 6e 65 72 3b HWND hwndOwner;
54c0: 0d 0a 20 20 48 47 4c 4f 42 41 4c 20 68 44 65 76 .. HGLOBAL hDev
54d0: 4d 6f 64 65 3b 0d 0a 20 20 48 47 4c 4f 42 41 4c Mode;.. HGLOBAL
54e0: 20 68 44 65 76 4e 61 6d 65 73 3b 0d 0a 20 20 48 hDevNames;.. H
54f0: 44 43 20 68 44 43 3b 0d 0a 20 20 44 57 4f 52 44 DC hDC;.. DWORD
5500: 20 46 6c 61 67 73 3b 0d 0a 20 20 57 4f 52 44 20 Flags;.. WORD
5510: 6e 46 72 6f 6d 50 61 67 65 3b 0d 0a 20 20 57 4f nFromPage;.. WO
5520: 52 44 20 6e 54 6f 50 61 67 65 3b 0d 0a 20 20 57 RD nToPage;.. W
5530: 4f 52 44 20 6e 4d 69 6e 50 61 67 65 3b 0d 0a 20 ORD nMinPage;..
5540: 20 57 4f 52 44 20 6e 4d 61 78 50 61 67 65 3b 0d WORD nMaxPage;.
5550: 0a 20 20 57 4f 52 44 20 6e 43 6f 70 69 65 73 3b . WORD nCopies;
5560: 0d 0a 20 20 48 49 4e 53 54 41 4e 43 45 20 68 49 .. HINSTANCE hI
5570: 6e 73 74 61 6e 63 65 3b 0d 0a 20 20 4c 50 41 52 nstance;.. LPAR
5580: 41 4d 20 6c 43 75 73 74 44 61 74 61 3b 0d 0a 20 AM lCustData;..
5590: 20 4c 50 50 52 49 4e 54 48 4f 4f 4b 50 52 4f 43 LPPRINTHOOKPROC
55a0: 20 6c 70 66 6e 50 72 69 6e 74 48 6f 6f 6b 3b 0d lpfnPrintHook;.
55b0: 0a 20 20 4c 50 53 45 54 55 50 48 4f 4f 4b 50 52 . LPSETUPHOOKPR
55c0: 4f 43 20 6c 70 66 6e 53 65 74 75 70 48 6f 6f 6b OC lpfnSetupHook
55d0: 3b 0d 0a 20 20 4c 50 43 57 53 54 52 20 6c 70 50 ;.. LPCWSTR lpP
55e0: 72 69 6e 74 54 65 6d 70 6c 61 74 65 4e 61 6d 65 rintTemplateName
55f0: 3b 0d 0a 20 20 4c 50 43 57 53 54 52 20 6c 70 53 ;.. LPCWSTR lpS
5600: 65 74 75 70 54 65 6d 70 6c 61 74 65 4e 61 6d 65 etupTemplateName
5610: 3b 0d 0a 20 20 48 47 4c 4f 42 41 4c 20 68 50 72 ;.. HGLOBAL hPr
5620: 69 6e 74 54 65 6d 70 6c 61 74 65 3b 0d 0a 20 20 intTemplate;..
5630: 48 47 4c 4f 42 41 4c 20 68 53 65 74 75 70 54 65 HGLOBAL hSetupTe
5640: 6d 70 6c 61 74 65 3b 0d 0a 7d 0d 0a 61 6c 69 61 mplate;..}..alia
5650: 73 20 74 61 67 50 44 57 20 50 52 49 4e 54 44 4c s tagPDW PRINTDL
5660: 47 57 3b 0d 0a 61 6c 69 61 73 20 74 61 67 50 44 GW;..alias tagPD
5670: 57 2a 20 4c 50 50 52 49 4e 54 44 4c 47 57 3b 0d W* LPPRINTDLGW;.
5680: 0a 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 4e 49 ...// #ifdef UNI
5690: 43 4f 44 45 0d 0a 61 6c 69 61 73 20 50 52 49 4e CODE..alias PRIN
56a0: 54 44 4c 47 57 20 50 52 49 4e 54 44 4c 47 3b 0d TDLGW PRINTDLG;.
56b0: 0a 61 6c 69 61 73 20 4c 50 50 52 49 4e 54 44 4c .alias LPPRINTDL
56c0: 47 57 20 4c 50 50 52 49 4e 54 44 4c 47 3b 0d 0a GW LPPRINTDLG;..
56d0: 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 2e 2e 2e // #else..// ...
56e0: 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 55 ..// #endif // U
56f0: 4e 49 43 4f 44 45 0d 0a 0d 0a 65 78 74 65 72 6e NICODE....extern
5700: 28 57 69 6e 64 6f 77 73 29 20 65 78 70 6f 72 74 (Windows) export
5710: 20 42 4f 4f 4c 20 50 72 69 6e 74 44 6c 67 41 28 BOOL PrintDlgA(
5720: 4c 50 50 52 49 4e 54 44 4c 47 41 29 3b 0d 0a 65 LPPRINTDLGA);..e
5730: 78 74 65 72 6e 28 57 69 6e 64 6f 77 73 29 20 65 xtern(Windows) e
5740: 78 70 6f 72 74 20 42 4f 4f 4c 20 50 72 69 6e 74 xport BOOL Print
5750: 44 6c 67 57 28 4c 50 50 52 49 4e 54 44 4c 47 57 DlgW(LPPRINTDLGW
5760: 29 3b 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 4e );..// #ifdef UN
5770: 49 43 4f 44 45 0d 0a 61 6c 69 61 73 20 50 72 69 ICODE..alias Pri
5780: 6e 74 44 6c 67 57 20 50 72 69 6e 74 44 6c 67 3b ntDlgW PrintDlg;
5790: 0d 0a 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 23 ..// #else..// #
57a0: 2e 2e 2e 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f .....// #endif /
57b0: 2f 20 21 55 4e 49 43 4f 44 45 0d 0a 0d 0a 2f 2f / !UNICODE....//
57c0: 20 23 69 66 28 57 49 4e 56 45 52 20 3e 3d 20 30 #if(WINVER >= 0
57d0: 78 30 35 30 30 29 0d 0a 0d 0a 2f 2f 20 23 69 66 x0500)....// #if
57e0: 64 65 66 20 53 54 44 4d 45 54 48 4f 44 0d 0a 0d def STDMETHOD...
57f0: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e .// #.....// #..
5800: 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f .....// ......./
5810: 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 23 2e 2e 2e / .......// #...
5820: 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 ..// #.......//
5830: 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d .......// ......
5840: 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e .// .......// ..
5850: 2e 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 4e 49 ...// #ifdef UNI
5860: 43 4f 44 45 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 2f 2f CODE..// .....//
5870: 20 23 65 6c 73 65 0d 0a 2f 2f 20 2e 2e 2e 0d 0a #else..// .....
5880: 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 55 4e 49 // #endif // UNI
5890: 43 4f 44 45 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a CODE....// .....
58a0: 2f 2f 20 23 69 66 64 65 66 20 55 4e 49 43 4f 44 // #ifdef UNICOD
58b0: 45 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 E..// #.....// #
58c0: 65 6c 73 65 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f else..// #...../
58d0: 2f 20 23 65 6e 64 69 66 20 2f 2f 20 21 55 4e 49 / #endif // !UNI
58e0: 43 4f 44 45 0d 0a 0d 0a 2f 2f 20 23 65 6e 64 69 CODE....// #endi
58f0: 66 0d 0a 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f f....// #endif /
5900: 2a 20 57 49 4e 56 45 52 20 3e 3d 20 30 78 30 35 * WINVER >= 0x05
5910: 30 30 20 2a 2f 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 00 */....enum :
5920: 75 69 6e 74 20 7b 20 50 44 5f 41 4c 4c 50 41 47 uint { PD_ALLPAG
5930: 45 53 20 3d 20 30 78 30 30 30 30 30 30 30 30 20 ES = 0x00000000
5940: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
5950: 20 50 44 5f 53 45 4c 45 43 54 49 4f 4e 20 3d 20 PD_SELECTION =
5960: 30 78 30 30 30 30 30 30 30 31 20 7d 0d 0a 65 6e 0x00000001 }..en
5970: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 5f 50 um : uint { PD_P
5980: 41 47 45 4e 55 4d 53 20 3d 20 30 78 30 30 30 30 AGENUMS = 0x0000
5990: 30 30 30 32 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 0002 }..enum : u
59a0: 69 6e 74 20 7b 20 50 44 5f 4e 4f 53 45 4c 45 43 int { PD_NOSELEC
59b0: 54 49 4f 4e 20 3d 20 30 78 30 30 30 30 30 30 30 TION = 0x0000000
59c0: 34 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 4 }..enum : uint
59d0: 20 7b 20 50 44 5f 4e 4f 50 41 47 45 4e 55 4d 53 { PD_NOPAGENUMS
59e0: 20 3d 20 30 78 30 30 30 30 30 30 30 38 20 7d 0d = 0x00000008 }.
59f0: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 .enum : uint { P
5a00: 44 5f 43 4f 4c 4c 41 54 45 20 3d 20 30 78 30 30 D_COLLATE = 0x00
5a10: 30 30 30 30 31 30 20 7d 0d 0a 65 6e 75 6d 20 3a 000010 }..enum :
5a20: 20 75 69 6e 74 20 7b 20 50 44 5f 50 52 49 4e 54 uint { PD_PRINT
5a30: 54 4f 46 49 4c 45 20 3d 20 30 78 30 30 30 30 30 TOFILE = 0x00000
5a40: 30 32 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 020 }..enum : ui
5a50: 6e 74 20 7b 20 50 44 5f 50 52 49 4e 54 53 45 54 nt { PD_PRINTSET
5a60: 55 50 20 3d 20 30 78 30 30 30 30 30 30 34 30 20 UP = 0x00000040
5a70: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
5a80: 20 50 44 5f 4e 4f 57 41 52 4e 49 4e 47 20 3d 20 PD_NOWARNING =
5a90: 30 78 30 30 30 30 30 30 38 30 20 7d 0d 0a 65 6e 0x00000080 }..en
5aa0: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 5f 52 um : uint { PD_R
5ab0: 45 54 55 52 4e 44 43 20 3d 20 30 78 30 30 30 30 ETURNDC = 0x0000
5ac0: 30 31 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 0100 }..enum : u
5ad0: 69 6e 74 20 7b 20 50 44 5f 52 45 54 55 52 4e 49 int { PD_RETURNI
5ae0: 43 20 3d 20 30 78 30 30 30 30 30 32 30 30 20 7d C = 0x00000200 }
5af0: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
5b00: 50 44 5f 52 45 54 55 52 4e 44 45 46 41 55 4c 54 PD_RETURNDEFAULT
5b10: 20 3d 20 30 78 30 30 30 30 30 34 30 30 20 7d 0d = 0x00000400 }.
5b20: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 .enum : uint { P
5b30: 44 5f 53 48 4f 57 48 45 4c 50 20 3d 20 30 78 30 D_SHOWHELP = 0x0
5b40: 30 30 30 30 38 30 30 20 7d 0d 0a 65 6e 75 6d 20 0000800 }..enum
5b50: 3a 20 75 69 6e 74 20 7b 20 50 44 5f 45 4e 41 42 : uint { PD_ENAB
5b60: 4c 45 50 52 49 4e 54 48 4f 4f 4b 20 3d 20 30 78 LEPRINTHOOK = 0x
5b70: 30 30 30 30 31 30 30 30 20 7d 0d 0a 65 6e 75 6d 00001000 }..enum
5b80: 20 3a 20 75 69 6e 74 20 7b 20 50 44 5f 45 4e 41 : uint { PD_ENA
5b90: 42 4c 45 53 45 54 55 50 48 4f 4f 4b 20 3d 20 30 BLESETUPHOOK = 0
5ba0: 78 30 30 30 30 32 30 30 30 20 7d 0d 0a 65 6e 75 x00002000 }..enu
5bb0: 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 5f 45 4e m : uint { PD_EN
5bc0: 41 42 4c 45 50 52 49 4e 54 54 45 4d 50 4c 41 54 ABLEPRINTTEMPLAT
5bd0: 45 20 3d 20 30 78 30 30 30 30 34 30 30 30 20 7d E = 0x00004000 }
5be0: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
5bf0: 50 44 5f 45 4e 41 42 4c 45 53 45 54 55 50 54 45 PD_ENABLESETUPTE
5c00: 4d 50 4c 41 54 45 20 3d 20 30 78 30 30 30 30 38 MPLATE = 0x00008
5c10: 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 000 }..enum : ui
5c20: 6e 74 20 7b 20 50 44 5f 45 4e 41 42 4c 45 50 52 nt { PD_ENABLEPR
5c30: 49 4e 54 54 45 4d 50 4c 41 54 45 48 41 4e 44 4c INTTEMPLATEHANDL
5c40: 45 20 3d 20 30 78 30 30 30 31 30 30 30 30 20 7d E = 0x00010000 }
5c50: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
5c60: 50 44 5f 45 4e 41 42 4c 45 53 45 54 55 50 54 45 PD_ENABLESETUPTE
5c70: 4d 50 4c 41 54 45 48 41 4e 44 4c 45 20 3d 20 30 MPLATEHANDLE = 0
5c80: 78 30 30 30 32 30 30 30 30 20 7d 0d 0a 65 6e 75 x00020000 }..enu
5c90: 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 5f 55 53 m : uint { PD_US
5ca0: 45 44 45 56 4d 4f 44 45 43 4f 50 49 45 53 20 3d EDEVMODECOPIES =
5cb0: 20 30 78 30 30 30 34 30 30 30 30 20 7d 0d 0a 65 0x00040000 }..e
5cc0: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 5f num : uint { PD_
5cd0: 55 53 45 44 45 56 4d 4f 44 45 43 4f 50 49 45 53 USEDEVMODECOPIES
5ce0: 41 4e 44 43 4f 4c 4c 41 54 45 20 3d 20 30 78 30 ANDCOLLATE = 0x0
5cf0: 30 30 34 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 0040000 }..enum
5d00: 3a 20 75 69 6e 74 20 7b 20 50 44 5f 44 49 53 41 : uint { PD_DISA
5d10: 42 4c 45 50 52 49 4e 54 54 4f 46 49 4c 45 20 3d BLEPRINTTOFILE =
5d20: 20 30 78 30 30 30 38 30 30 30 30 20 7d 0d 0a 65 0x00080000 }..e
5d30: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 5f num : uint { PD_
5d40: 48 49 44 45 50 52 49 4e 54 54 4f 46 49 4c 45 20 HIDEPRINTTOFILE
5d50: 3d 20 30 78 30 30 31 30 30 30 30 30 20 7d 0d 0a = 0x00100000 }..
5d60: 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 enum : uint { PD
5d70: 5f 4e 4f 4e 45 54 57 4f 52 4b 42 55 54 54 4f 4e _NONETWORKBUTTON
5d80: 20 3d 20 30 78 30 30 32 30 30 30 30 30 20 7d 0d = 0x00200000 }.
5d90: 0a 2f 2f 20 23 69 66 28 57 49 4e 56 45 52 20 3e .// #if(WINVER >
5da0: 3d 20 30 78 30 35 30 30 29 0d 0a 65 6e 75 6d 20 = 0x0500)..enum
5db0: 3a 20 75 69 6e 74 20 7b 20 50 44 5f 43 55 52 52 : uint { PD_CURR
5dc0: 45 4e 54 50 41 47 45 20 3d 20 30 78 30 30 34 30 ENTPAGE = 0x0040
5dd0: 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 0000 }..enum : u
5de0: 69 6e 74 20 7b 20 50 44 5f 4e 4f 43 55 52 52 45 int { PD_NOCURRE
5df0: 4e 54 50 41 47 45 20 3d 20 30 78 30 30 38 30 30 NTPAGE = 0x00800
5e00: 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 000 }..enum : ui
5e10: 6e 74 20 7b 20 50 44 5f 45 58 43 4c 55 53 49 4f nt { PD_EXCLUSIO
5e20: 4e 46 4c 41 47 53 20 3d 20 30 78 30 31 30 30 30 NFLAGS = 0x01000
5e30: 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 000 }..enum : ui
5e40: 6e 74 20 7b 20 50 44 5f 55 53 45 4c 41 52 47 45 nt { PD_USELARGE
5e50: 54 45 4d 50 4c 41 54 45 20 3d 20 30 78 31 30 30 TEMPLATE = 0x100
5e60: 30 30 30 30 30 20 7d 0d 0a 2f 2f 20 23 65 6e 64 00000 }..// #end
5e70: 69 66 20 2f 2a 20 57 49 4e 56 45 52 20 3e 3d 20 if /* WINVER >=
5e80: 30 78 30 35 30 30 20 2a 2f 0d 0a 0d 0a 2f 2f 20 0x0500 */....//
5e90: 23 69 66 28 57 49 4e 56 45 52 20 3e 3d 20 30 78 #if(WINVER >= 0x
5ea0: 30 35 30 30 29 0d 0a 0d 0a 63 6f 6e 73 74 20 75 0500)....const u
5eb0: 69 6e 74 20 50 44 5f 45 58 43 4c 5f 43 4f 50 49 int PD_EXCL_COPI
5ec0: 45 53 41 4e 44 43 4f 4c 4c 41 54 45 20 3d 20 44 ESANDCOLLATE = D
5ed0: 4d 5f 43 4f 50 49 45 53 20 7c 20 44 4d 5f 43 4f M_COPIES | DM_CO
5ee0: 4c 4c 41 54 45 3b 0d 0a 0d 0a 65 6e 75 6d 20 3a LLATE;....enum :
5ef0: 20 75 69 6e 74 20 7b 20 53 54 41 52 54 5f 50 41 uint { START_PA
5f00: 47 45 5f 47 45 4e 45 52 41 4c 20 3d 20 30 78 66 GE_GENERAL = 0xf
5f10: 66 66 66 66 66 66 66 20 7d 0d 0a 0d 0a 65 6e 75 fffffff }....enu
5f20: 6d 20 3a 20 75 69 6e 74 20 7b 20 50 44 5f 52 45 m : uint { PD_RE
5f30: 53 55 4c 54 5f 43 41 4e 43 45 4c 20 3d 20 30 20 SULT_CANCEL = 0
5f40: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
5f50: 20 50 44 5f 52 45 53 55 4c 54 5f 50 52 49 4e 54 PD_RESULT_PRINT
5f60: 20 3d 20 31 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 = 1 }..enum : u
5f70: 69 6e 74 20 7b 20 50 44 5f 52 45 53 55 4c 54 5f int { PD_RESULT_
5f80: 41 50 50 4c 59 20 3d 20 32 20 7d 0d 0a 0d 0a 2f APPLY = 2 }..../
5f90: 2f 20 23 65 6e 64 69 66 20 2f 2a 20 57 49 4e 56 / #endif /* WINV
5fa0: 45 52 20 3e 3d 20 30 78 30 35 30 30 20 2a 2f 0d ER >= 0x0500 */.
5fb0: 0a 0d 0a 73 74 72 75 63 74 20 74 61 67 44 45 56 ...struct tagDEV
5fc0: 4e 41 4d 45 53 20 7b 0d 0a 20 20 57 4f 52 44 20 NAMES {.. WORD
5fd0: 77 44 72 69 76 65 72 4f 66 66 73 65 74 3b 0d 0a wDriverOffset;..
5fe0: 20 20 57 4f 52 44 20 77 44 65 76 69 63 65 4f 66 WORD wDeviceOf
5ff0: 66 73 65 74 3b 0d 0a 20 20 57 4f 52 44 20 77 4f fset;.. WORD wO
6000: 75 74 70 75 74 4f 66 66 73 65 74 3b 0d 0a 20 20 utputOffset;..
6010: 57 4f 52 44 20 77 44 65 66 61 75 6c 74 3b 0d 0a WORD wDefault;..
6020: 7d 0d 0a 61 6c 69 61 73 20 74 61 67 44 45 56 4e }..alias tagDEVN
6030: 41 4d 45 53 20 44 45 56 4e 41 4d 45 53 3b 0d 0a AMES DEVNAMES;..
6040: 61 6c 69 61 73 20 74 61 67 44 45 56 4e 41 4d 45 alias tagDEVNAME
6050: 53 2a 20 4c 50 44 45 56 4e 41 4d 45 53 3b 0d 0a S* LPDEVNAMES;..
6060: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
6070: 44 4e 5f 44 45 46 41 55 4c 54 50 52 4e 20 3d 20 DN_DEFAULTPRN =
6080: 30 78 30 30 30 31 20 7d 0d 0a 0d 0a 65 78 74 65 0x0001 }....exte
6090: 72 6e 28 57 69 6e 64 6f 77 73 29 20 65 78 70 6f rn(Windows) expo
60a0: 72 74 20 44 57 4f 52 44 20 43 6f 6d 6d 44 6c 67 rt DWORD CommDlg
60b0: 45 78 74 65 6e 64 65 64 45 72 72 6f 72 28 29 3b ExtendedError();
60c0: 0d 0a 0d 0a 2f 2f 20 23 69 66 28 57 49 4e 56 45 ....// #if(WINVE
60d0: 52 20 3e 3d 20 30 78 30 34 30 30 29 0d 0a 63 6f R >= 0x0400)..co
60e0: 6e 73 74 20 75 69 6e 74 20 57 4d 5f 50 53 44 5f nst uint WM_PSD_
60f0: 50 41 47 45 53 45 54 55 50 44 4c 47 20 3d 20 57 PAGESETUPDLG = W
6100: 4d 5f 55 53 45 52 20 3b 0d 0a 63 6f 6e 73 74 20 M_USER ;..const
6110: 75 69 6e 74 20 57 4d 5f 50 53 44 5f 46 55 4c 4c uint WM_PSD_FULL
6120: 50 41 47 45 52 45 43 54 20 3d 20 57 4d 5f 55 53 PAGERECT = WM_US
6130: 45 52 2b 31 3b 0d 0a 63 6f 6e 73 74 20 75 69 6e ER+1;..const uin
6140: 74 20 57 4d 5f 50 53 44 5f 4d 49 4e 4d 41 52 47 t WM_PSD_MINMARG
6150: 49 4e 52 45 43 54 20 3d 20 57 4d 5f 55 53 45 52 INRECT = WM_USER
6160: 2b 32 3b 0d 0a 63 6f 6e 73 74 20 75 69 6e 74 20 +2;..const uint
6170: 57 4d 5f 50 53 44 5f 4d 41 52 47 49 4e 52 45 43 WM_PSD_MARGINREC
6180: 54 20 3d 20 57 4d 5f 55 53 45 52 2b 33 3b 0d 0a T = WM_USER+3;..
6190: 63 6f 6e 73 74 20 75 69 6e 74 20 57 4d 5f 50 53 const uint WM_PS
61a0: 44 5f 47 52 45 45 4b 54 45 58 54 52 45 43 54 20 D_GREEKTEXTRECT
61b0: 3d 20 57 4d 5f 55 53 45 52 2b 34 3b 0d 0a 63 6f = WM_USER+4;..co
61c0: 6e 73 74 20 75 69 6e 74 20 57 4d 5f 50 53 44 5f nst uint WM_PSD_
61d0: 45 4e 56 53 54 41 4d 50 52 45 43 54 20 3d 20 57 ENVSTAMPRECT = W
61e0: 4d 5f 55 53 45 52 2b 35 3b 0d 0a 63 6f 6e 73 74 M_USER+5;..const
61f0: 20 75 69 6e 74 20 57 4d 5f 50 53 44 5f 59 41 46 uint WM_PSD_YAF
6200: 55 4c 4c 50 41 47 45 52 45 43 54 20 3d 20 57 4d ULLPAGERECT = WM
6210: 5f 55 53 45 52 2b 36 3b 0d 0a 0d 0a 65 78 74 65 _USER+6;....exte
6220: 72 6e 28 57 69 6e 64 6f 77 73 29 20 61 6c 69 61 rn(Windows) alia
6230: 73 20 55 49 4e 54 5f 50 54 52 20 66 75 6e 63 74 s UINT_PTR funct
6240: 69 6f 6e 28 20 48 57 4e 44 2c 20 55 49 4e 54 2c ion( HWND, UINT,
6250: 20 57 50 41 52 41 4d 2c 20 4c 50 41 52 41 4d 20 WPARAM, LPARAM
6260: 29 20 4c 50 50 41 47 45 50 41 49 4e 54 48 4f 4f ) LPPAGEPAINTHOO
6270: 4b 3b 0d 0a 65 78 74 65 72 6e 28 57 69 6e 64 6f K;..extern(Windo
6280: 77 73 29 20 61 6c 69 61 73 20 55 49 4e 54 5f 50 ws) alias UINT_P
6290: 54 52 20 66 75 6e 63 74 69 6f 6e 28 20 48 57 4e TR function( HWN
62a0: 44 2c 20 55 49 4e 54 2c 20 57 50 41 52 41 4d 2c D, UINT, WPARAM,
62b0: 20 4c 50 41 52 41 4d 20 29 20 4c 50 50 41 47 45 LPARAM ) LPPAGE
62c0: 53 45 54 55 50 48 4f 4f 4b 3b 0d 0a 0d 0a 73 74 SETUPHOOK;....st
62d0: 72 75 63 74 20 74 61 67 50 53 44 41 20 7b 0d 0a ruct tagPSDA {..
62e0: 20 20 44 57 4f 52 44 20 6c 53 74 72 75 63 74 53 DWORD lStructS
62f0: 69 7a 65 3b 0d 0a 20 20 48 57 4e 44 20 68 77 6e ize;.. HWND hwn
6300: 64 4f 77 6e 65 72 3b 0d 0a 20 20 48 47 4c 4f 42 dOwner;.. HGLOB
6310: 41 4c 20 68 44 65 76 4d 6f 64 65 3b 0d 0a 20 20 AL hDevMode;..
6320: 48 47 4c 4f 42 41 4c 20 68 44 65 76 4e 61 6d 65 HGLOBAL hDevName
6330: 73 3b 0d 0a 20 20 44 57 4f 52 44 20 46 6c 61 67 s;.. DWORD Flag
6340: 73 3b 0d 0a 20 20 50 4f 49 4e 54 20 70 74 50 61 s;.. POINT ptPa
6350: 70 65 72 53 69 7a 65 3b 0d 0a 20 20 52 45 43 54 perSize;.. RECT
6360: 20 72 74 4d 69 6e 4d 61 72 67 69 6e 3b 0d 0a 20 rtMinMargin;..
6370: 20 52 45 43 54 20 72 74 4d 61 72 67 69 6e 3b 0d RECT rtMargin;.
6380: 0a 20 20 48 49 4e 53 54 41 4e 43 45 20 68 49 6e . HINSTANCE hIn
6390: 73 74 61 6e 63 65 3b 0d 0a 20 20 4c 50 41 52 41 stance;.. LPARA
63a0: 4d 20 6c 43 75 73 74 44 61 74 61 3b 0d 0a 20 20 M lCustData;..
63b0: 4c 50 50 41 47 45 53 45 54 55 50 48 4f 4f 4b 20 LPPAGESETUPHOOK
63c0: 6c 70 66 6e 50 61 67 65 53 65 74 75 70 48 6f 6f lpfnPageSetupHoo
63d0: 6b 3b 0d 0a 20 20 4c 50 50 41 47 45 50 41 49 4e k;.. LPPAGEPAIN
63e0: 54 48 4f 4f 4b 20 6c 70 66 6e 50 61 67 65 50 61 THOOK lpfnPagePa
63f0: 69 6e 74 48 6f 6f 6b 3b 0d 0a 20 20 4c 50 43 53 intHook;.. LPCS
6400: 54 52 20 6c 70 50 61 67 65 53 65 74 75 70 54 65 TR lpPageSetupTe
6410: 6d 70 6c 61 74 65 4e 61 6d 65 3b 0d 0a 20 20 48 mplateName;.. H
6420: 47 4c 4f 42 41 4c 20 68 50 61 67 65 53 65 74 75 GLOBAL hPageSetu
6430: 70 54 65 6d 70 6c 61 74 65 3b 0d 0a 7d 0d 0a 61 pTemplate;..}..a
6440: 6c 69 61 73 20 74 61 67 50 53 44 41 20 50 41 47 lias tagPSDA PAG
6450: 45 53 45 54 55 50 44 4c 47 41 3b 0d 0a 61 6c 69 ESETUPDLGA;..ali
6460: 61 73 20 74 61 67 50 53 44 41 2a 20 4c 50 50 41 as tagPSDA* LPPA
6470: 47 45 53 45 54 55 50 44 4c 47 41 3b 0d 0a 0d 0a GESETUPDLGA;....
6480: 73 74 72 75 63 74 20 74 61 67 50 53 44 57 20 7b struct tagPSDW {
6490: 0d 0a 20 20 44 57 4f 52 44 20 6c 53 74 72 75 63 .. DWORD lStruc
64a0: 74 53 69 7a 65 3b 0d 0a 20 20 48 57 4e 44 20 68 tSize;.. HWND h
64b0: 77 6e 64 4f 77 6e 65 72 3b 0d 0a 20 20 48 47 4c wndOwner;.. HGL
64c0: 4f 42 41 4c 20 68 44 65 76 4d 6f 64 65 3b 0d 0a OBAL hDevMode;..
64d0: 20 20 48 47 4c 4f 42 41 4c 20 68 44 65 76 4e 61 HGLOBAL hDevNa
64e0: 6d 65 73 3b 0d 0a 20 20 44 57 4f 52 44 20 46 6c mes;.. DWORD Fl
64f0: 61 67 73 3b 0d 0a 20 20 50 4f 49 4e 54 20 70 74 ags;.. POINT pt
6500: 50 61 70 65 72 53 69 7a 65 3b 0d 0a 20 20 52 45 PaperSize;.. RE
6510: 43 54 20 72 74 4d 69 6e 4d 61 72 67 69 6e 3b 0d CT rtMinMargin;.
6520: 0a 20 20 52 45 43 54 20 72 74 4d 61 72 67 69 6e . RECT rtMargin
6530: 3b 0d 0a 20 20 48 49 4e 53 54 41 4e 43 45 20 68 ;.. HINSTANCE h
6540: 49 6e 73 74 61 6e 63 65 3b 0d 0a 20 20 4c 50 41 Instance;.. LPA
6550: 52 41 4d 20 6c 43 75 73 74 44 61 74 61 3b 0d 0a RAM lCustData;..
6560: 20 20 4c 50 50 41 47 45 53 45 54 55 50 48 4f 4f LPPAGESETUPHOO
6570: 4b 20 6c 70 66 6e 50 61 67 65 53 65 74 75 70 48 K lpfnPageSetupH
6580: 6f 6f 6b 3b 0d 0a 20 20 4c 50 50 41 47 45 50 41 ook;.. LPPAGEPA
6590: 49 4e 54 48 4f 4f 4b 20 6c 70 66 6e 50 61 67 65 INTHOOK lpfnPage
65a0: 50 61 69 6e 74 48 6f 6f 6b 3b 0d 0a 20 20 4c 50 PaintHook;.. LP
65b0: 43 57 53 54 52 20 6c 70 50 61 67 65 53 65 74 75 CWSTR lpPageSetu
65c0: 70 54 65 6d 70 6c 61 74 65 4e 61 6d 65 3b 0d 0a pTemplateName;..
65d0: 20 20 48 47 4c 4f 42 41 4c 20 68 50 61 67 65 53 HGLOBAL hPageS
65e0: 65 74 75 70 54 65 6d 70 6c 61 74 65 3b 0d 0a 7d etupTemplate;..}
65f0: 0d 0a 61 6c 69 61 73 20 74 61 67 50 53 44 57 20 ..alias tagPSDW
6600: 50 41 47 45 53 45 54 55 50 44 4c 47 57 3b 0d 0a PAGESETUPDLGW;..
6610: 61 6c 69 61 73 20 74 61 67 50 53 44 57 2a 20 4c alias tagPSDW* L
6620: 50 50 41 47 45 53 45 54 55 50 44 4c 47 57 3b 0d PPAGESETUPDLGW;.
6630: 0a 0d 0a 2f 2f 20 23 69 66 64 65 66 20 55 4e 49 ...// #ifdef UNI
6640: 43 4f 44 45 0d 0a 61 6c 69 61 73 20 50 41 47 45 CODE..alias PAGE
6650: 53 45 54 55 50 44 4c 47 57 20 50 41 47 45 53 45 SETUPDLGW PAGESE
6660: 54 55 50 44 4c 47 3b 0d 0a 61 6c 69 61 73 20 4c TUPDLG;..alias L
6670: 50 50 41 47 45 53 45 54 55 50 44 4c 47 57 20 4c PPAGESETUPDLGW L
6680: 50 50 41 47 45 53 45 54 55 50 44 4c 47 3b 0d 0a PPAGESETUPDLG;..
6690: 2f 2f 20 23 65 6c 73 65 0d 0a 2f 2f 20 2e 2e 2e // #else..// ...
66a0: 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 55 ..// #endif // U
66b0: 4e 49 43 4f 44 45 0d 0a 0d 0a 65 78 74 65 72 6e NICODE....extern
66c0: 28 57 69 6e 64 6f 77 73 29 20 65 78 70 6f 72 74 (Windows) export
66d0: 20 42 4f 4f 4c 20 50 61 67 65 53 65 74 75 70 44 BOOL PageSetupD
66e0: 6c 67 41 28 20 4c 50 50 41 47 45 53 45 54 55 50 lgA( LPPAGESETUP
66f0: 44 4c 47 41 20 29 3b 0d 0a 65 78 74 65 72 6e 28 DLGA );..extern(
6700: 57 69 6e 64 6f 77 73 29 20 65 78 70 6f 72 74 20 Windows) export
6710: 42 4f 4f 4c 20 50 61 67 65 53 65 74 75 70 44 6c BOOL PageSetupDl
6720: 67 57 28 20 4c 50 50 41 47 45 53 45 54 55 50 44 gW( LPPAGESETUPD
6730: 4c 47 57 20 29 3b 0d 0a 2f 2f 20 23 69 66 64 65 LGW );..// #ifde
6740: 66 20 55 4e 49 43 4f 44 45 0d 0a 61 6c 69 61 73 f UNICODE..alias
6750: 20 50 61 67 65 53 65 74 75 70 44 6c 67 57 20 50 PageSetupDlgW P
6760: 61 67 65 53 65 74 75 70 44 6c 67 3b 0d 0a 2f 2f ageSetupDlg;..//
6770: 20 23 65 6c 73 65 0d 0a 2f 2f 20 23 2e 2e 2e 0d #else..// #....
6780: 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2f 20 21 55 .// #endif // !U
6790: 4e 49 43 4f 44 45 0d 0a 0d 0a 65 6e 75 6d 20 3a NICODE....enum :
67a0: 20 75 69 6e 74 20 7b 20 50 53 44 5f 44 45 46 41 uint { PSD_DEFA
67b0: 55 4c 54 4d 49 4e 4d 41 52 47 49 4e 53 20 3d 20 ULTMINMARGINS =
67c0: 30 78 30 30 30 30 30 30 30 30 20 7d 0d 0a 65 6e 0x00000000 }..en
67d0: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 53 44 5f um : uint { PSD_
67e0: 49 4e 57 49 4e 49 4e 49 49 4e 54 4c 4d 45 41 53 INWININIINTLMEAS
67f0: 55 52 45 20 3d 20 30 78 30 30 30 30 30 30 30 30 URE = 0x00000000
6800: 20 7d 0d 0a 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e }....enum : uin
6810: 74 20 7b 20 50 53 44 5f 4d 49 4e 4d 41 52 47 49 t { PSD_MINMARGI
6820: 4e 53 20 3d 20 30 78 30 30 30 30 30 30 30 31 20 NS = 0x00000001
6830: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
6840: 20 50 53 44 5f 4d 41 52 47 49 4e 53 20 3d 20 30 PSD_MARGINS = 0
6850: 78 30 30 30 30 30 30 30 32 20 7d 0d 0a 65 6e 75 x00000002 }..enu
6860: 6d 20 3a 20 75 69 6e 74 20 7b 20 50 53 44 5f 49 m : uint { PSD_I
6870: 4e 54 48 4f 55 53 41 4e 44 54 48 53 4f 46 49 4e NTHOUSANDTHSOFIN
6880: 43 48 45 53 20 3d 20 30 78 30 30 30 30 30 30 30 CHES = 0x0000000
6890: 34 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 4 }..enum : uint
68a0: 20 7b 20 50 53 44 5f 49 4e 48 55 4e 44 52 45 44 { PSD_INHUNDRED
68b0: 54 48 53 4f 46 4d 49 4c 4c 49 4d 45 54 45 52 53 THSOFMILLIMETERS
68c0: 20 3d 20 30 78 30 30 30 30 30 30 30 38 20 7d 0d = 0x00000008 }.
68d0: 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 .enum : uint { P
68e0: 53 44 5f 44 49 53 41 42 4c 45 4d 41 52 47 49 4e SD_DISABLEMARGIN
68f0: 53 20 3d 20 30 78 30 30 30 30 30 30 31 30 20 7d S = 0x00000010 }
6900: 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 ..enum : uint {
6910: 50 53 44 5f 44 49 53 41 42 4c 45 50 52 49 4e 54 PSD_DISABLEPRINT
6920: 45 52 20 3d 20 30 78 30 30 30 30 30 30 32 30 20 ER = 0x00000020
6930: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
6940: 20 50 53 44 5f 4e 4f 57 41 52 4e 49 4e 47 20 3d PSD_NOWARNING =
6950: 20 30 78 30 30 30 30 30 30 38 30 20 7d 0d 0a 65 0x00000080 }..e
6960: 6e 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 53 44 num : uint { PSD
6970: 5f 44 49 53 41 42 4c 45 4f 52 49 45 4e 54 41 54 _DISABLEORIENTAT
6980: 49 4f 4e 20 3d 20 30 78 30 30 30 30 30 31 30 30 ION = 0x00000100
6990: 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 }..enum : uint
69a0: 7b 20 50 53 44 5f 52 45 54 55 52 4e 44 45 46 41 { PSD_RETURNDEFA
69b0: 55 4c 54 20 3d 20 30 78 30 30 30 30 30 34 30 30 ULT = 0x00000400
69c0: 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 }..enum : uint
69d0: 7b 20 50 53 44 5f 44 49 53 41 42 4c 45 50 41 50 { PSD_DISABLEPAP
69e0: 45 52 20 3d 20 30 78 30 30 30 30 30 32 30 30 20 ER = 0x00000200
69f0: 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 7b }..enum : uint {
6a00: 20 50 53 44 5f 53 48 4f 57 48 45 4c 50 20 3d 20 PSD_SHOWHELP =
6a10: 30 78 30 30 30 30 30 38 30 30 20 7d 0d 0a 65 6e 0x00000800 }..en
6a20: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 53 44 5f um : uint { PSD_
6a30: 45 4e 41 42 4c 45 50 41 47 45 53 45 54 55 50 48 ENABLEPAGESETUPH
6a40: 4f 4f 4b 20 3d 20 30 78 30 30 30 30 32 30 30 30 OOK = 0x00002000
6a50: 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 }..enum : uint
6a60: 7b 20 50 53 44 5f 45 4e 41 42 4c 45 50 41 47 45 { PSD_ENABLEPAGE
6a70: 53 45 54 55 50 54 45 4d 50 4c 41 54 45 20 3d 20 SETUPTEMPLATE =
6a80: 30 78 30 30 30 30 38 30 30 30 20 7d 0d 0a 65 6e 0x00008000 }..en
6a90: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 53 44 5f um : uint { PSD_
6aa0: 45 4e 41 42 4c 45 50 41 47 45 53 45 54 55 50 54 ENABLEPAGESETUPT
6ab0: 45 4d 50 4c 41 54 45 48 41 4e 44 4c 45 20 3d 20 EMPLATEHANDLE =
6ac0: 30 78 30 30 30 32 30 30 30 30 20 7d 0d 0a 65 6e 0x00020000 }..en
6ad0: 75 6d 20 3a 20 75 69 6e 74 20 7b 20 50 53 44 5f um : uint { PSD_
6ae0: 45 4e 41 42 4c 45 50 41 47 45 50 41 49 4e 54 48 ENABLEPAGEPAINTH
6af0: 4f 4f 4b 20 3d 20 30 78 30 30 30 34 30 30 30 30 OOK = 0x00040000
6b00: 20 7d 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 20 }..enum : uint
6b10: 7b 20 50 53 44 5f 44 49 53 41 42 4c 45 50 41 47 { PSD_DISABLEPAG
6b20: 45 50 41 49 4e 54 49 4e 47 20 3d 20 30 78 30 30 EPAINTING = 0x00
6b30: 30 38 30 30 30 30 20 7d 0d 0a 65 6e 75 6d 20 3a 080000 }..enum :
6b40: 20 75 69 6e 74 20 7b 20 50 53 44 5f 4e 4f 4e 45 uint { PSD_NONE
6b50: 54 57 4f 52 4b 42 55 54 54 4f 4e 20 3d 20 30 78 TWORKBUTTON = 0x
6b60: 30 30 32 30 30 30 30 30 20 7d 0d 0a 2f 2f 20 23 00200000 }..// #
6b70: 65 6e 64 69 66 20 2f 2a 20 57 49 4e 56 45 52 20 endif /* WINVER
6b80: 3e 3d 20 30 78 30 34 30 30 20 2a 2f 0d 0a 0d 0a >= 0x0400 */....
6b90: 2f 2f 20 23 69 66 20 21 64 65 66 69 6e 65 64 28 // #if !defined(
6ba0: 52 43 5f 49 4e 56 4f 4b 45 44 29 20 2f 2a 20 52 RC_INVOKED) /* R
6bb0: 43 20 63 6f 6d 70 6c 61 69 6e 73 20 61 62 6f 75 C complains abou
6bc0: 74 20 6c 6f 6e 67 20 73 79 6d 62 6f 6c 73 20 69 t long symbols i
6bd0: 6e 20 23 69 66 73 20 2a 2f 0d 0a 2f 2f 20 23 69 n #ifs */..// #i
6be0: 66 20 49 53 4f 4c 41 54 49 4f 4e 5f 41 57 41 52 f ISOLATION_AWAR
6bf0: 45 5f 45 4e 41 42 4c 45 44 0d 0a 0d 0a 2f 2f 20 E_ENABLED....//
6c00: 23 69 66 20 21 64 65 66 69 6e 65 64 28 49 53 4f #if !defined(ISO
6c10: 4c 41 54 49 4f 4e 5f 41 57 41 52 45 5f 49 4e 4c LATION_AWARE_INL
6c20: 49 4e 45 29 0d 0a 2f 2f 20 23 69 66 20 64 65 66 INE)..// #if def
6c30: 69 6e 65 64 28 5f 5f 63 70 6c 75 73 70 6c 75 73 ined(__cplusplus
6c40: 29 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 )..// #.....// #
6c50: 65 6c 73 65 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f else..// #...../
6c60: 2f 20 23 65 6e 64 69 66 0d 0a 2f 2f 20 23 65 6e / #endif..// #en
6c70: 64 69 66 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d dif....// ......
6c80: 0a 2f 2f 20 2e 2e 2e 0d 0a 2f 2f 20 23 69 66 20 .// .....// #if
6c90: 64 65 66 69 6e 65 64 28 53 54 44 4d 45 54 48 4f defined(STDMETHO
6ca0: 44 29 20 26 26 20 28 57 49 4e 56 45 52 20 3e 3d D) && (WINVER >=
6cb0: 20 30 78 30 35 30 30 29 0d 0a 2f 2f 20 2e 2e 2e 0x0500)..// ...
6cc0: 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2a 20 64 ..// #endif /* d
6cd0: 65 66 69 6e 65 64 28 53 54 44 4d 45 54 48 4f 44 efined(STDMETHOD
6ce0: 29 20 26 26 20 28 57 49 4e 56 45 52 20 3e 3d 20 ) && (WINVER >=
6cf0: 30 78 30 35 30 30 29 20 2a 2f 0d 0a 2f 2f 20 2e 0x0500) */..// .
6d00: 2e 2e 0d 0a 0d 0a 2f 2f 20 23 69 66 20 64 65 66 ......// #if def
6d10: 69 6e 65 64 28 55 4e 49 43 4f 44 45 29 0d 0a 0d ined(UNICODE)...
6d20: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e .// #.....// #..
6d30: 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 ...// #.....// #
6d40: 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f .....// #.....//
6d50: 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a #.....// #.....
6d60: 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e // #.....// #...
6d70: 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 ..// #.......//
6d80: 23 65 6c 73 65 20 2f 2a 20 55 4e 49 43 4f 44 45 #else /* UNICODE
6d90: 20 2a 2f 0d 0a 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a */....// #.....
6da0: 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e // #.....// #...
6db0: 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e ..// #.....// #.
6dc0: 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 ....// #.....//
6dd0: 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f #.....// #...../
6de0: 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d / #.....// #....
6df0: 0a 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f 2a 20 ...// #endif /*
6e00: 55 4e 49 43 4f 44 45 20 2a 2f 0d 0a 0d 0a 2f 2f UNICODE */....//
6e10: 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a .......// .....
6e20: 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e ..// .......// .
6e30: 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a ......// .......
6e40: 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e // .......// ...
6e50: 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f ....// .......//
6e60: 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a .......// .....
6e70: 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e ..// .......// .
6e80: 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a ......// .......
6e90: 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e // .......// ...
6ea0: 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f ....// .......//
6eb0: 20 23 69 66 20 64 65 66 69 6e 65 64 28 53 54 44 #if defined(STD
6ec0: 4d 45 54 48 4f 44 29 20 26 26 20 28 57 49 4e 56 METHOD) && (WINV
6ed0: 45 52 20 3e 3d 20 30 78 30 35 30 30 29 0d 0a 0d ER >= 0x0500)...
6ee0: 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e .// .......// ..
6ef0: 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f .....// ......./
6f00: 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 23 65 6e 64 / .......// #end
6f10: 69 66 20 2f 2a 20 64 65 66 69 6e 65 64 28 53 54 if /* defined(ST
6f20: 44 4d 45 54 48 4f 44 29 20 26 26 20 28 57 49 4e DMETHOD) && (WIN
6f30: 56 45 52 20 3e 3d 20 30 78 30 35 30 30 29 20 2a VER >= 0x0500) *
6f40: 2f 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f /....// ......./
6f50: 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 2e 2e 2e 0d / .......// ....
6f60: 0a 0d 0a 2f 2f 20 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 ...// .......//
6f70: 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f #.....// #...../
6f80: 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d / #.....// #....
6f90: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e .// #.....// #..
6fa0: 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 ...// #.....// #
6fb0: 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f .....// #.....//
6fc0: 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a #.....// #.....
6fd0: 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e // #.....// #...
6fe0: 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e ..// #.....// #.
6ff0: 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 ....// #.....//
7000: 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d 0a 2f #.....// #...../
7010: 2f 20 23 2e 2e 2e 0d 0a 2f 2f 20 23 2e 2e 2e 0d / #.....// #....
7020: 0a 2f 2f 20 23 2e 2e 2e 0d 0a 0d 0a 2f 2f 20 23 .// #.......// #
7030: 65 6e 64 69 66 20 2f 2a 20 49 53 4f 4c 41 54 49 endif /* ISOLATI
7040: 4f 4e 5f 41 57 41 52 45 5f 45 4e 41 42 4c 45 44 ON_AWARE_ENABLED
7050: 20 2a 2f 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 2f */..// #endif /
7060: 2a 20 52 43 20 2a 2f 0d 0a 0d 0a 2f 2f 20 23 69 * RC */....// #i
7070: 66 64 65 66 20 5f 5f 63 70 6c 75 73 70 6c 75 73 fdef __cplusplus
7080: 0d 0a 2f 2f 20 7d 0d 0a 2f 2f 20 23 65 6e 64 69 ..// }..// #endi
7090: 66 20 20 2f 2a 20 5f 5f 63 70 6c 75 73 70 6c 75 f /* __cplusplu
70a0: 73 20 2a 2f 0d 0a 0d 0a 2f 2f 20 23 69 66 20 21 s */....// #if !
70b0: 64 65 66 69 6e 65 64 28 5f 57 49 4e 36 34 29 0d defined(_WIN64).
70c0: 0a 61 6c 69 67 6e 3a 0d 0a 2f 2f 20 23 65 6e 64 .align:..// #end
70d0: 69 66 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 20 2f if..// #endif /
70e0: 2a 20 47 55 49 44 5f 44 45 46 53 5f 4f 4e 4c 59 * GUID_DEFS_ONLY
70f0: 20 2a 2f 0d 0a 2f 2f 20 23 65 6e 64 69 66 20 20 */..// #endif
7100: 2f 2a 20 21 5f 49 4e 43 5f 43 4f 4d 4d 44 4c 47 /* !_INC_COMMDLG
7110: 20 2a 2f 0d 0a 0d 0a */....