Artifact 7389b9c0e57070f9cb6604ce41ad516043f5347c:
- File
src/win32/oleidl.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
0000: 2f 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a /***************
0010: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0020: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0030: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0040: 2a 2a 2a 2a 2a 2a 2a 2a 5c 0d 0a 2a 20 20 20 20 ********\..*
0050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0060: 20 20 20 20 20 20 20 20 20 20 20 20 6f 6c 65 69 olei
0070: 64 6c 2e 64 20 20 20 20 20 20 20 20 20 20 20 20 dl.d
0080: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0090: 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 20 *..*
00a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 0d *.
00e0: 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .*
00f0: 20 20 20 20 20 20 20 20 20 57 69 6e 64 6f 77 73 Windows
0100: 20 41 50 49 20 68 65 61 64 65 72 20 6d 6f 64 75 API header modu
0110: 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 le
0120: 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 20 *..*
0130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0140: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0150: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0170: 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 *..*
0180: 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 6c 61 Transla
0190: 74 65 64 20 66 72 6f 6d 20 4d 69 6e 47 57 20 57 ted from MinGW W
01a0: 69 6e 64 6f 77 73 20 68 65 61 64 65 72 73 20 20 indows headers
01b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a *
01c0: 0d 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..*
01d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
01e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
01f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0200: 20 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 *..*
0210: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0220: 20 20 20 20 20 50 6c 61 63 65 64 20 69 6e 74 6f Placed into
0230: 20 70 75 62 6c 69 63 20 64 6f 6d 61 69 6e 20 20 public domain
0240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0250: 20 20 20 20 20 2a 0d 0a 5c 2a 2a 2a 2a 2a 2a 2a *..\*******
0260: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0270: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0280: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0290: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
02a0: 2f 0d 0a 6d 6f 64 75 6c 65 20 77 69 6e 33 32 2e /..module win32.
02b0: 6f 6c 65 69 64 6c 3b 0d 0a 0d 0a 2f 2f 20 44 41 oleidl;....// DA
02c0: 43 3a 20 54 68 69 73 20 69 73 20 64 65 66 69 6e C: This is defin
02d0: 65 64 20 69 6e 20 6f 63 69 64 6c 20 21 21 0d 0a ed in ocidl !!..
02e0: 2f 2f 20 77 68 61 74 20 69 73 20 69 74 20 64 6f // what is it do
02f0: 69 6e 67 20 69 6e 20 68 65 72 65 3f 0d 0a 2f 2f ing in here?..//
0300: 61 6c 69 61 73 20 49 45 6e 75 6d 4f 6c 65 55 6e alias IEnumOleUn
0310: 64 6f 55 6e 69 74 73 20 4c 50 45 4e 55 4d 4f 4c doUnits LPENUMOL
0320: 45 55 4e 44 4f 55 4e 49 54 53 3b 0d 0a 0d 0a 70 EUNDOUNITS;....p
0330: 72 69 76 61 74 65 20 69 6d 70 6f 72 74 20 77 69 rivate import wi
0340: 6e 33 32 2e 62 61 73 65 74 79 70 73 2c 20 77 69 n32.basetyps, wi
0350: 6e 33 32 2e 6f 62 6a 69 64 6c 2c 20 77 69 6e 33 n32.objidl, win3
0360: 32 2e 75 6e 6b 6e 77 6e 2c 20 77 69 6e 33 32 2e 2.unknwn, win32.
0370: 77 69 6e 64 65 66 2c 0d 0a 20 20 77 69 6e 33 32 windef,.. win32
0380: 2e 77 69 6e 75 73 65 72 2c 20 77 69 6e 33 32 2e .winuser, win32.
0390: 77 74 79 70 65 73 3b 0d 0a 70 72 69 76 61 74 65 wtypes;..private
03a0: 20 69 6d 70 6f 72 74 20 77 69 6e 33 32 2e 6f 62 import win32.ob
03b0: 6a 66 77 64 3b 20 2f 2f 20 66 6f 72 20 4c 50 4d jfwd; // for LPM
03c0: 4f 4e 49 4b 45 52 0d 0a 70 72 69 76 61 74 65 20 ONIKER..private
03d0: 69 6d 70 6f 72 74 20 77 69 6e 33 32 2e 77 69 6e import win32.win
03e0: 67 64 69 3b 20 2f 2f 20 66 6f 72 20 4c 50 4c 4f gdi; // for LPLO
03f0: 47 50 41 4c 45 54 54 45 0d 0a 0d 0a 63 6f 6e 73 GPALETTE....cons
0400: 74 20 4d 4b 5f 41 4c 54 20 3d 20 33 32 3b 0d 0a t MK_ALT = 32;..
0410: 0d 0a 65 6e 75 6d 20 42 49 4e 44 53 50 45 45 44 ..enum BINDSPEED
0420: 20 7b 0d 0a 09 42 49 4e 44 53 50 45 45 44 5f 49 {...BINDSPEED_I
0430: 4e 44 45 46 49 4e 49 54 45 20 3d 20 31 2c 0d 0a NDEFINITE = 1,..
0440: 09 42 49 4e 44 53 50 45 45 44 5f 4d 4f 44 45 52 .BINDSPEED_MODER
0450: 41 54 45 2c 0d 0a 09 42 49 4e 44 53 50 45 45 44 ATE,...BINDSPEED
0460: 5f 49 4d 4d 45 44 49 41 54 45 0d 0a 7d 0d 0a 0d _IMMEDIATE..}...
0470: 0a 65 6e 75 6d 20 4f 4c 45 57 48 49 43 48 4d 4b .enum OLEWHICHMK
0480: 20 7b 0d 0a 09 4f 4c 45 57 48 49 43 48 4d 4b 5f {...OLEWHICHMK_
0490: 43 4f 4e 54 41 49 4e 45 52 20 3d 20 31 2c 0d 0a CONTAINER = 1,..
04a0: 09 4f 4c 45 57 48 49 43 48 4d 4b 5f 4f 42 4a 52 .OLEWHICHMK_OBJR
04b0: 45 4c 2c 0d 0a 09 4f 4c 45 57 48 49 43 48 4d 4b EL,...OLEWHICHMK
04c0: 5f 4f 42 4a 46 55 4c 4c 0d 0a 7d 0d 0a 0d 0a 65 _OBJFULL..}....e
04d0: 6e 75 6d 20 4f 4c 45 47 45 54 4d 4f 4e 49 4b 45 num OLEGETMONIKE
04e0: 52 20 7b 0d 0a 09 4f 4c 45 47 45 54 4d 4f 4e 49 R {...OLEGETMONI
04f0: 4b 45 52 5f 4f 4e 4c 59 49 46 54 48 45 52 45 20 KER_ONLYIFTHERE
0500: 3d 20 31 2c 0d 0a 09 4f 4c 45 47 45 54 4d 4f 4e = 1,...OLEGETMON
0510: 49 4b 45 52 5f 46 4f 52 43 45 41 53 53 49 47 4e IKER_FORCEASSIGN
0520: 2c 0d 0a 09 4f 4c 45 47 45 54 4d 4f 4e 49 4b 45 ,...OLEGETMONIKE
0530: 52 5f 55 4e 41 53 53 49 47 4e 2c 0d 0a 09 4f 4c R_UNASSIGN,...OL
0540: 45 47 45 54 4d 4f 4e 49 4b 45 52 5f 54 45 4d 50 EGETMONIKER_TEMP
0550: 46 4f 52 55 53 45 52 0d 0a 7d 0d 0a 0d 0a 65 6e FORUSER..}....en
0560: 75 6d 20 55 53 45 52 43 4c 41 53 53 54 59 50 45 um USERCLASSTYPE
0570: 20 7b 0d 0a 09 55 53 45 52 43 4c 41 53 53 54 59 {...USERCLASSTY
0580: 50 45 5f 46 55 4c 4c 20 3d 20 31 2c 0d 0a 09 55 PE_FULL = 1,...U
0590: 53 45 52 43 4c 41 53 53 54 59 50 45 5f 53 48 4f SERCLASSTYPE_SHO
05a0: 52 54 2c 0d 0a 09 55 53 45 52 43 4c 41 53 53 54 RT,...USERCLASST
05b0: 59 50 45 5f 41 50 50 4e 41 4d 45 0d 0a 7d 0d 0a YPE_APPNAME..}..
05c0: 0d 0a 65 6e 75 6d 20 44 52 4f 50 45 46 46 45 43 ..enum DROPEFFEC
05d0: 54 20 7b 0d 0a 09 44 52 4f 50 45 46 46 45 43 54 T {...DROPEFFECT
05e0: 5f 4e 4f 4e 45 20 20 20 3d 20 30 2c 0d 0a 09 44 _NONE = 0,...D
05f0: 52 4f 50 45 46 46 45 43 54 5f 43 4f 50 59 20 20 ROPEFFECT_COPY
0600: 20 3d 20 31 2c 0d 0a 09 44 52 4f 50 45 46 46 45 = 1,...DROPEFFE
0610: 43 54 5f 4d 4f 56 45 20 20 20 3d 20 32 2c 0d 0a CT_MOVE = 2,..
0620: 09 44 52 4f 50 45 46 46 45 43 54 5f 4c 49 4e 4b .DROPEFFECT_LINK
0630: 20 20 20 3d 20 34 2c 0d 0a 09 44 52 4f 50 45 46 = 4,...DROPEF
0640: 46 45 43 54 5f 53 43 52 4f 4c 4c 20 3d 20 30 78 FECT_SCROLL = 0x
0650: 38 30 30 30 30 30 30 30 0d 0a 7d 0d 0a 0d 0a 73 80000000..}....s
0660: 74 72 75 63 74 20 4f 4c 45 4d 45 4e 55 47 52 4f truct OLEMENUGRO
0670: 55 50 57 49 44 54 48 53 20 7b 0d 0a 09 4c 4f 4e UPWIDTHS {...LON
0680: 47 5b 36 5d 20 77 69 64 74 68 3b 0d 0a 7d 0d 0a G[6] width;..}..
0690: 61 6c 69 61 73 20 4f 4c 45 4d 45 4e 55 47 52 4f alias OLEMENUGRO
06a0: 55 50 57 49 44 54 48 53 2a 20 4c 50 4f 4c 45 4d UPWIDTHS* LPOLEM
06b0: 45 4e 55 47 52 4f 55 50 57 49 44 54 48 53 3b 0d ENUGROUPWIDTHS;.
06c0: 0a 0d 0a 61 6c 69 61 73 20 48 47 4c 4f 42 41 4c ...alias HGLOBAL
06d0: 20 48 4f 4c 45 4d 45 4e 55 3b 0d 0a 0d 0a 65 6e HOLEMENU;....en
06e0: 75 6d 20 4f 4c 45 43 4c 4f 53 45 20 7b 0d 0a 09 um OLECLOSE {...
06f0: 4f 4c 45 43 4c 4f 53 45 5f 53 41 56 45 49 46 44 OLECLOSE_SAVEIFD
0700: 49 52 54 59 2c 0d 0a 09 4f 4c 45 43 4c 4f 53 45 IRTY,...OLECLOSE
0710: 5f 4e 4f 53 41 56 45 2c 0d 0a 09 4f 4c 45 43 4c _NOSAVE,...OLECL
0720: 4f 53 45 5f 50 52 4f 4d 50 54 53 41 56 45 0d 0a OSE_PROMPTSAVE..
0730: 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 4f 4c 45 56 }....struct OLEV
0740: 45 52 42 20 7b 0d 0a 09 4c 4f 4e 47 20 6c 56 65 ERB {...LONG lVe
0750: 72 62 3b 0d 0a 09 4c 50 57 53 54 52 20 6c 70 73 rb;...LPWSTR lps
0760: 7a 56 65 72 62 4e 61 6d 65 3b 0d 0a 09 44 57 4f zVerbName;...DWO
0770: 52 44 20 66 75 46 6c 61 67 73 3b 0d 0a 09 44 57 RD fuFlags;...DW
0780: 4f 52 44 20 67 72 66 41 74 74 72 69 62 73 3b 0d ORD grfAttribs;.
0790: 0a 7d 0d 0a 61 6c 69 61 73 20 4f 4c 45 56 45 52 .}..alias OLEVER
07a0: 42 2a 20 4c 50 4f 4c 45 56 45 52 42 3b 0d 0a 0d B* LPOLEVERB;...
07b0: 0a 61 6c 69 61 73 20 52 45 43 54 20 42 4f 52 44 .alias RECT BORD
07c0: 45 52 57 49 44 54 48 53 3b 0d 0a 61 6c 69 61 73 ERWIDTHS;..alias
07d0: 20 4c 50 52 45 43 54 20 4c 50 42 4f 52 44 45 52 LPRECT LPBORDER
07e0: 57 49 44 54 48 53 3b 0d 0a 61 6c 69 61 73 20 4c WIDTHS;..alias L
07f0: 50 43 52 45 43 54 20 4c 50 43 42 4f 52 44 45 52 PCRECT LPCBORDER
0800: 57 49 44 54 48 53 3b 0d 0a 0d 0a 73 74 72 75 63 WIDTHS;....struc
0810: 74 20 4f 4c 45 49 4e 50 4c 41 43 45 46 52 41 4d t OLEINPLACEFRAM
0820: 45 49 4e 46 4f 20 7b 0d 0a 09 55 49 4e 54 20 63 EINFO {...UINT c
0830: 62 3b 0d 0a 09 42 4f 4f 4c 20 66 4d 44 49 41 70 b;...BOOL fMDIAp
0840: 70 3b 0d 0a 09 48 57 4e 44 20 68 77 6e 64 46 72 p;...HWND hwndFr
0850: 61 6d 65 3b 0d 0a 09 48 41 43 43 45 4c 20 68 61 ame;...HACCEL ha
0860: 63 63 65 6c 3b 0d 0a 09 55 49 4e 54 20 63 41 63 ccel;...UINT cAc
0870: 63 65 6c 45 6e 74 72 69 65 73 3b 0d 0a 7d 0d 0a celEntries;..}..
0880: 61 6c 69 61 73 20 4f 4c 45 49 4e 50 4c 41 43 45 alias OLEINPLACE
0890: 46 52 41 4d 45 49 4e 46 4f 2a 20 4c 50 4f 4c 45 FRAMEINFO* LPOLE
08a0: 49 4e 50 4c 41 43 45 46 52 41 4d 45 49 4e 46 4f INPLACEFRAMEINFO
08b0: 3b 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 ;....interface I
08c0: 45 6e 75 6d 4f 4c 45 56 45 52 42 20 3a 20 49 55 EnumOLEVERB : IU
08d0: 6e 6b 6e 6f 77 6e 0d 0a 7b 0d 0a 09 20 20 48 52 nknown..{... HR
08e0: 45 53 55 4c 54 20 4e 65 78 74 28 55 4c 4f 4e 47 ESULT Next(ULONG
08f0: 2c 4f 4c 45 56 45 52 42 2a 2c 55 4c 4f 4e 47 2a ,OLEVERB*,ULONG*
0900: 29 3b 0d 0a 09 20 20 48 52 45 53 55 4c 54 20 53 );... HRESULT S
0910: 6b 69 70 28 55 4c 4f 4e 47 29 3b 0d 0a 09 20 20 kip(ULONG);...
0920: 48 52 45 53 55 4c 54 20 52 65 73 65 74 28 29 3b HRESULT Reset();
0930: 0d 0a 09 20 20 48 52 45 53 55 4c 54 20 43 6c 6f ... HRESULT Clo
0940: 6e 65 28 49 45 6e 75 6d 4f 4c 45 56 45 52 42 2a ne(IEnumOLEVERB*
0950: 29 3b 0d 0a 7d 0d 0a 2f 2f 61 6c 69 61 73 20 49 );..}..//alias I
0960: 45 6e 75 6d 4f 4c 45 56 45 52 42 20 49 45 6e 75 EnumOLEVERB IEnu
0970: 6d 4f 6c 65 56 65 72 62 3b 0d 0a 61 6c 69 61 73 mOleVerb;..alias
0980: 20 49 45 6e 75 6d 4f 4c 45 56 45 52 42 20 4c 50 IEnumOLEVERB LP
0990: 45 4e 55 4d 4f 4c 45 56 45 52 42 3b 0d 0a 0d 0a ENUMOLEVERB;....
09a0: 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 50 61 72 ..interface IPar
09b0: 73 65 44 69 73 70 6c 61 79 4e 61 6d 65 20 3a 20 seDisplayName :
09c0: 49 55 6e 6b 6e 6f 77 6e 20 7b 0d 0a 09 48 52 45 IUnknown {...HRE
09d0: 53 55 4c 54 20 50 61 72 73 65 44 69 73 70 6c 61 SULT ParseDispla
09e0: 79 4e 61 6d 65 28 49 42 69 6e 64 43 74 78 2c 4c yName(IBindCtx,L
09f0: 50 4f 4c 45 53 54 52 2c 55 4c 4f 4e 47 2a 2c 49 POLESTR,ULONG*,I
0a00: 4d 6f 6e 69 6b 65 72 2a 29 3b 0d 0a 7d 0d 0a 61 Moniker*);..}..a
0a10: 6c 69 61 73 20 49 50 61 72 73 65 44 69 73 70 6c lias IParseDispl
0a20: 61 79 4e 61 6d 65 20 4c 50 50 41 52 53 45 44 49 ayName LPPARSEDI
0a30: 53 50 4c 41 59 4e 41 4d 45 3b 0d 0a 0d 0a 69 6e SPLAYNAME;....in
0a40: 74 65 72 66 61 63 65 20 49 4f 6c 65 43 6f 6e 74 terface IOleCont
0a50: 61 69 6e 65 72 20 3a 20 49 50 61 72 73 65 44 69 ainer : IParseDi
0a60: 73 70 6c 61 79 4e 61 6d 65 20 7b 0d 0a 09 48 52 splayName {...HR
0a70: 45 53 55 4c 54 20 45 6e 75 6d 4f 62 6a 65 63 74 ESULT EnumObject
0a80: 73 28 44 57 4f 52 44 2c 49 45 6e 75 6d 55 6e 6b s(DWORD,IEnumUnk
0a90: 6e 6f 77 6e 2a 29 3b 0d 0a 09 48 52 45 53 55 4c nown*);...HRESUL
0aa0: 54 20 4c 6f 63 6b 43 6f 6e 74 61 69 6e 65 72 28 T LockContainer(
0ab0: 42 4f 4f 4c 29 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 BOOL);..}..alias
0ac0: 20 49 4f 6c 65 43 6f 6e 74 61 69 6e 65 72 20 4c IOleContainer L
0ad0: 50 4f 4c 45 43 4f 4e 54 41 49 4e 45 52 3b 0d 0a POLECONTAINER;..
0ae0: 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 4f 6c 65 ..interface IOle
0af0: 49 74 65 6d 43 6f 6e 74 61 69 6e 65 72 20 3a 20 ItemContainer :
0b00: 49 4f 6c 65 43 6f 6e 74 61 69 6e 65 72 20 7b 0d IOleContainer {.
0b10: 0a 09 48 52 45 53 55 4c 54 20 47 65 74 4f 62 6a ..HRESULT GetObj
0b20: 65 63 74 28 4c 50 4f 4c 45 53 54 52 2c 44 57 4f ect(LPOLESTR,DWO
0b30: 52 44 2c 49 42 69 6e 64 43 74 78 2c 52 45 46 49 RD,IBindCtx,REFI
0b40: 49 44 2c 76 6f 69 64 2a 2a 29 3b 0d 0a 09 48 52 ID,void**);...HR
0b50: 45 53 55 4c 54 20 47 65 74 4f 62 6a 65 63 74 53 ESULT GetObjectS
0b60: 74 6f 72 61 67 65 28 4c 50 4f 4c 45 53 54 52 2c torage(LPOLESTR,
0b70: 49 42 69 6e 64 43 74 78 2c 52 45 46 49 49 44 2c IBindCtx,REFIID,
0b80: 76 6f 69 64 2a 2a 29 3b 0d 0a 09 48 52 45 53 55 void**);...HRESU
0b90: 4c 54 20 49 73 52 75 6e 6e 69 6e 67 28 4c 50 4f LT IsRunning(LPO
0ba0: 4c 45 53 54 52 29 3b 0d 0a 7d 0d 0a 0d 0a 0d 0a LESTR);..}......
0bb0: 69 6e 74 65 72 66 61 63 65 20 49 4f 6c 65 43 6c interface IOleCl
0bc0: 69 65 6e 74 53 69 74 65 20 3a 20 49 55 6e 6b 6e ientSite : IUnkn
0bd0: 6f 77 6e 20 7b 0d 0a 09 48 52 45 53 55 4c 54 20 own {...HRESULT
0be0: 53 61 76 65 4f 62 6a 65 63 74 28 29 3b 0d 0a 09 SaveObject();...
0bf0: 48 52 45 53 55 4c 54 20 47 65 74 4d 6f 6e 69 6b HRESULT GetMonik
0c00: 65 72 28 44 57 4f 52 44 2c 44 57 4f 52 44 2c 4c er(DWORD,DWORD,L
0c10: 50 4d 4f 4e 49 4b 45 52 2a 29 3b 0d 0a 09 48 52 PMONIKER*);...HR
0c20: 45 53 55 4c 54 20 47 65 74 43 6f 6e 74 61 69 6e ESULT GetContain
0c30: 65 72 28 4c 50 4f 4c 45 43 4f 4e 54 41 49 4e 45 er(LPOLECONTAINE
0c40: 52 2a 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 53 R*);...HRESULT S
0c50: 68 6f 77 4f 62 6a 65 63 74 28 29 3b 0d 0a 09 48 howObject();...H
0c60: 52 45 53 55 4c 54 20 4f 6e 53 68 6f 77 57 69 6e RESULT OnShowWin
0c70: 64 6f 77 28 42 4f 4f 4c 29 3b 0d 0a 09 48 52 45 dow(BOOL);...HRE
0c80: 53 55 4c 54 20 52 65 71 75 65 73 74 4e 65 77 4f SULT RequestNewO
0c90: 62 6a 65 63 74 4c 61 79 6f 75 74 28 29 3b 0d 0a bjectLayout();..
0ca0: 7d 0d 0a 61 6c 69 61 73 20 49 4f 6c 65 43 6c 69 }..alias IOleCli
0cb0: 65 6e 74 53 69 74 65 20 4c 50 4f 4c 45 43 4c 49 entSite LPOLECLI
0cc0: 45 4e 54 53 49 54 45 3b 0d 0a 0d 0a 69 6e 74 65 ENTSITE;....inte
0cd0: 72 66 61 63 65 20 49 4f 6c 65 4f 62 6a 65 63 74 rface IOleObject
0ce0: 20 3a 20 49 55 6e 6b 6e 6f 77 6e 20 7b 0d 0a 09 : IUnknown {...
0cf0: 48 52 45 53 55 4c 54 20 53 65 74 43 6c 69 65 6e HRESULT SetClien
0d00: 74 53 69 74 65 28 4c 50 4f 4c 45 43 4c 49 45 4e tSite(LPOLECLIEN
0d10: 54 53 49 54 45 29 3b 0d 0a 09 48 52 45 53 55 4c TSITE);...HRESUL
0d20: 54 20 47 65 74 43 6c 69 65 6e 74 53 69 74 65 28 T GetClientSite(
0d30: 4c 50 4f 4c 45 43 4c 49 45 4e 54 53 49 54 45 2a LPOLECLIENTSITE*
0d40: 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 53 65 74 );...HRESULT Set
0d50: 48 6f 73 74 4e 61 6d 65 73 28 4c 50 43 4f 4c 45 HostNames(LPCOLE
0d60: 53 54 52 2c 4c 50 43 4f 4c 45 53 54 52 29 3b 0d STR,LPCOLESTR);.
0d70: 0a 09 48 52 45 53 55 4c 54 20 43 6c 6f 73 65 28 ..HRESULT Close(
0d80: 44 57 4f 52 44 29 3b 0d 0a 09 48 52 45 53 55 4c DWORD);...HRESUL
0d90: 54 20 53 65 74 4d 6f 6e 69 6b 65 72 28 44 57 4f T SetMoniker(DWO
0da0: 52 44 2c 4c 50 4d 4f 4e 49 4b 45 52 29 3b 0d 0a RD,LPMONIKER);..
0db0: 09 48 52 45 53 55 4c 54 20 47 65 74 4d 6f 6e 69 .HRESULT GetMoni
0dc0: 6b 65 72 28 44 57 4f 52 44 2c 44 57 4f 52 44 2c ker(DWORD,DWORD,
0dd0: 4c 50 4d 4f 4e 49 4b 45 52 2a 29 3b 0d 0a 09 48 LPMONIKER*);...H
0de0: 52 45 53 55 4c 54 20 49 6e 69 74 46 72 6f 6d 44 RESULT InitFromD
0df0: 61 74 61 28 4c 50 44 41 54 41 4f 42 4a 45 43 54 ata(LPDATAOBJECT
0e00: 2c 42 4f 4f 4c 2c 44 57 4f 52 44 29 3b 0d 0a 09 ,BOOL,DWORD);...
0e10: 48 52 45 53 55 4c 54 20 47 65 74 43 6c 69 70 62 HRESULT GetClipb
0e20: 6f 61 72 64 44 61 74 61 28 44 57 4f 52 44 2c 4c oardData(DWORD,L
0e30: 50 44 41 54 41 4f 42 4a 45 43 54 2a 29 3b 0d 0a PDATAOBJECT*);..
0e40: 09 48 52 45 53 55 4c 54 20 44 6f 56 65 72 62 28 .HRESULT DoVerb(
0e50: 4c 4f 4e 47 2c 4c 50 4d 53 47 2c 4c 50 4f 4c 45 LONG,LPMSG,LPOLE
0e60: 43 4c 49 45 4e 54 53 49 54 45 2c 4c 4f 4e 47 2c CLIENTSITE,LONG,
0e70: 48 57 4e 44 2c 4c 50 43 52 45 43 54 29 3b 0d 0a HWND,LPCRECT);..
0e80: 09 48 52 45 53 55 4c 54 20 45 6e 75 6d 56 65 72 .HRESULT EnumVer
0e90: 62 73 28 4c 50 45 4e 55 4d 4f 4c 45 56 45 52 42 bs(LPENUMOLEVERB
0ea0: 2a 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 55 70 *);...HRESULT Up
0eb0: 64 61 74 65 28 29 3b 0d 0a 09 48 52 45 53 55 4c date();...HRESUL
0ec0: 54 20 49 73 55 70 54 6f 44 61 74 65 28 29 3b 0d T IsUpToDate();.
0ed0: 0a 09 48 52 45 53 55 4c 54 20 47 65 74 55 73 65 ..HRESULT GetUse
0ee0: 72 43 6c 61 73 73 49 44 28 4c 50 43 4c 53 49 44 rClassID(LPCLSID
0ef0: 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 47 65 74 );...HRESULT Get
0f00: 55 73 65 72 54 79 70 65 28 44 57 4f 52 44 2c 4c UserType(DWORD,L
0f10: 50 4f 4c 45 53 54 52 2a 29 3b 0d 0a 09 48 52 45 POLESTR*);...HRE
0f20: 53 55 4c 54 20 53 65 74 45 78 74 65 6e 74 28 44 SULT SetExtent(D
0f30: 57 4f 52 44 2c 53 49 5a 45 4c 2a 29 3b 0d 0a 09 WORD,SIZEL*);...
0f40: 48 52 45 53 55 4c 54 20 47 65 74 45 78 74 65 6e HRESULT GetExten
0f50: 74 28 44 57 4f 52 44 2c 53 49 5a 45 4c 2a 29 3b t(DWORD,SIZEL*);
0f60: 0d 0a 09 48 52 45 53 55 4c 54 20 41 64 76 69 73 ...HRESULT Advis
0f70: 65 28 4c 50 41 44 56 49 53 45 53 49 4e 4b 2c 50 e(LPADVISESINK,P
0f80: 44 57 4f 52 44 29 3b 0d 0a 09 48 52 45 53 55 4c DWORD);...HRESUL
0f90: 54 20 55 6e 61 64 76 69 73 65 28 44 57 4f 52 44 T Unadvise(DWORD
0fa0: 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 45 6e 75 );...HRESULT Enu
0fb0: 6d 41 64 76 69 73 65 28 4c 50 45 4e 55 4d 53 54 mAdvise(LPENUMST
0fc0: 41 54 44 41 54 41 2a 29 3b 0d 0a 09 48 52 45 53 ATDATA*);...HRES
0fd0: 55 4c 54 20 47 65 74 4d 69 73 63 53 74 61 74 75 ULT GetMiscStatu
0fe0: 73 28 44 57 4f 52 44 2c 50 44 57 4f 52 44 29 3b s(DWORD,PDWORD);
0ff0: 0d 0a 09 48 52 45 53 55 4c 54 20 53 65 74 43 6f ...HRESULT SetCo
1000: 6c 6f 72 53 63 68 65 6d 65 28 4c 50 4c 4f 47 50 lorScheme(LPLOGP
1010: 41 4c 45 54 54 45 29 3b 0d 0a 7d 0d 0a 61 6c 69 ALETTE);..}..ali
1020: 61 73 20 49 4f 6c 65 4f 62 6a 65 63 74 20 4c 50 as IOleObject LP
1030: 4f 4c 45 4f 42 4a 45 43 54 3b 0d 0a 0d 0a 69 6e OLEOBJECT;....in
1040: 74 65 72 66 61 63 65 20 49 4f 6c 65 57 69 6e 64 terface IOleWind
1050: 6f 77 20 3a 20 49 55 6e 6b 6e 6f 77 6e 20 7b 0d ow : IUnknown {.
1060: 0a 09 48 52 45 53 55 4c 54 20 47 65 74 57 69 6e ..HRESULT GetWin
1070: 64 6f 77 28 48 57 4e 44 2a 29 3b 0d 0a 09 48 52 dow(HWND*);...HR
1080: 45 53 55 4c 54 20 43 6f 6e 74 65 78 74 53 65 6e ESULT ContextSen
1090: 73 69 74 69 76 65 48 65 6c 70 28 42 4f 4f 4c 29 sitiveHelp(BOOL)
10a0: 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 49 4f 6c 65 ;..}..alias IOle
10b0: 57 69 6e 64 6f 77 20 4c 50 4f 4c 45 57 49 4e 44 Window LPOLEWIND
10c0: 4f 57 3b 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 OW;....interface
10d0: 20 49 4f 6c 65 49 6e 50 6c 61 63 65 55 49 57 69 IOleInPlaceUIWi
10e0: 6e 64 6f 77 20 3a 20 49 4f 6c 65 57 69 6e 64 6f ndow : IOleWindo
10f0: 77 20 7b 0d 0a 09 48 52 45 53 55 4c 54 20 47 65 w {...HRESULT Ge
1100: 74 42 6f 72 64 65 72 28 4c 50 52 45 43 54 29 3b tBorder(LPRECT);
1110: 0d 0a 09 48 52 45 53 55 4c 54 20 52 65 71 75 65 ...HRESULT Reque
1120: 73 74 42 6f 72 64 65 72 53 70 61 63 65 28 4c 50 stBorderSpace(LP
1130: 43 42 4f 52 44 45 52 57 49 44 54 48 53 29 3b 0d CBORDERWIDTHS);.
1140: 0a 09 48 52 45 53 55 4c 54 20 53 65 74 42 6f 72 ..HRESULT SetBor
1150: 64 65 72 53 70 61 63 65 28 4c 50 43 42 4f 52 44 derSpace(LPCBORD
1160: 45 52 57 49 44 54 48 53 29 3b 0d 0a 09 48 52 45 ERWIDTHS);...HRE
1170: 53 55 4c 54 20 53 65 74 41 63 74 69 76 65 4f 62 SULT SetActiveOb
1180: 6a 65 63 74 28 4c 50 4f 4c 45 49 4e 50 4c 41 43 ject(LPOLEINPLAC
1190: 45 41 43 54 49 56 45 4f 42 4a 45 43 54 2c 4c 50 EACTIVEOBJECT,LP
11a0: 43 4f 4c 45 53 54 52 29 3b 0d 0a 7d 0d 0a 61 6c COLESTR);..}..al
11b0: 69 61 73 20 49 4f 6c 65 49 6e 50 6c 61 63 65 55 ias IOleInPlaceU
11c0: 49 57 69 6e 64 6f 77 20 4c 50 4f 4c 45 49 4e 50 IWindow LPOLEINP
11d0: 4c 41 43 45 55 49 57 49 4e 44 4f 57 3b 0d 0a 0d LACEUIWINDOW;...
11e0: 0a 69 6e 74 65 72 66 61 63 65 20 49 4f 6c 65 49 .interface IOleI
11f0: 6e 50 6c 61 63 65 4f 62 6a 65 63 74 20 3a 20 49 nPlaceObject : I
1200: 4f 6c 65 57 69 6e 64 6f 77 20 7b 0d 0a 09 48 52 OleWindow {...HR
1210: 45 53 55 4c 54 20 49 6e 50 6c 61 63 65 44 65 61 ESULT InPlaceDea
1220: 63 74 69 76 61 74 65 28 29 3b 0d 0a 09 48 52 45 ctivate();...HRE
1230: 53 55 4c 54 20 55 49 44 65 61 63 74 69 76 61 74 SULT UIDeactivat
1240: 65 28 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 53 e();...HRESULT S
1250: 65 74 4f 62 6a 65 63 74 52 65 63 74 73 28 4c 50 etObjectRects(LP
1260: 43 52 45 43 54 2c 4c 50 43 52 45 43 54 29 3b 0d CRECT,LPCRECT);.
1270: 0a 09 48 52 45 53 55 4c 54 20 52 65 61 63 74 69 ..HRESULT Reacti
1280: 76 61 74 65 41 6e 64 55 6e 64 6f 28 29 3b 0d 0a vateAndUndo();..
1290: 7d 0d 0a 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 }......interface
12a0: 20 49 4f 6c 65 49 6e 50 6c 61 63 65 41 63 74 69 IOleInPlaceActi
12b0: 76 65 4f 62 6a 65 63 74 20 3a 20 49 4f 6c 65 57 veObject : IOleW
12c0: 69 6e 64 6f 77 20 7b 0d 0a 09 48 52 45 53 55 4c indow {...HRESUL
12d0: 54 20 54 72 61 6e 73 6c 61 74 65 41 63 63 65 6c T TranslateAccel
12e0: 65 72 61 74 6f 72 28 4c 50 4d 53 47 29 3b 0d 0a erator(LPMSG);..
12f0: 09 48 52 45 53 55 4c 54 20 4f 6e 46 72 61 6d 65 .HRESULT OnFrame
1300: 57 69 6e 64 6f 77 41 63 74 69 76 61 74 65 28 42 WindowActivate(B
1310: 4f 4f 4c 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 OOL);...HRESULT
1320: 4f 6e 44 6f 63 57 69 6e 64 6f 77 41 63 74 69 76 OnDocWindowActiv
1330: 61 74 65 28 42 4f 4f 4c 29 3b 0d 0a 09 48 52 45 ate(BOOL);...HRE
1340: 53 55 4c 54 20 52 65 73 69 7a 65 42 6f 72 64 65 SULT ResizeBorde
1350: 72 28 4c 50 43 52 45 43 54 2c 4c 50 4f 4c 45 49 r(LPCRECT,LPOLEI
1360: 4e 50 4c 41 43 45 55 49 57 49 4e 44 4f 57 2c 42 NPLACEUIWINDOW,B
1370: 4f 4f 4c 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 OOL);...HRESULT
1380: 45 6e 61 62 6c 65 4d 6f 64 65 6c 65 73 73 28 42 EnableModeless(B
1390: 4f 4f 4c 29 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 OOL);..}..alias
13a0: 49 4f 6c 65 49 6e 50 6c 61 63 65 41 63 74 69 76 IOleInPlaceActiv
13b0: 65 4f 62 6a 65 63 74 20 4c 50 4f 4c 45 49 4e 50 eObject LPOLEINP
13c0: 4c 41 43 45 41 43 54 49 56 45 4f 42 4a 45 43 54 LACEACTIVEOBJECT
13d0: 3b 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 ;....interface I
13e0: 4f 6c 65 49 6e 50 6c 61 63 65 46 72 61 6d 65 20 OleInPlaceFrame
13f0: 3a 20 49 4f 6c 65 49 6e 50 6c 61 63 65 55 49 57 : IOleInPlaceUIW
1400: 69 6e 64 6f 77 20 7b 0d 0a 09 48 52 45 53 55 4c indow {...HRESUL
1410: 54 20 49 6e 73 65 72 74 4d 65 6e 75 73 28 48 4d T InsertMenus(HM
1420: 45 4e 55 2c 4c 50 4f 4c 45 4d 45 4e 55 47 52 4f ENU,LPOLEMENUGRO
1430: 55 50 57 49 44 54 48 53 29 3b 0d 0a 09 48 52 45 UPWIDTHS);...HRE
1440: 53 55 4c 54 20 53 65 74 4d 65 6e 75 28 48 4d 45 SULT SetMenu(HME
1450: 4e 55 2c 48 4f 4c 45 4d 45 4e 55 2c 48 57 4e 44 NU,HOLEMENU,HWND
1460: 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 52 65 6d );...HRESULT Rem
1470: 6f 76 65 4d 65 6e 75 73 28 48 4d 45 4e 55 29 3b oveMenus(HMENU);
1480: 0d 0a 09 48 52 45 53 55 4c 54 20 53 65 74 53 74 ...HRESULT SetSt
1490: 61 74 75 73 54 65 78 74 28 4c 50 43 4f 4c 45 53 atusText(LPCOLES
14a0: 54 52 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 45 TR);...HRESULT E
14b0: 6e 61 62 6c 65 4d 6f 64 65 6c 65 73 73 28 42 4f nableModeless(BO
14c0: 4f 4c 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 54 OL);...HRESULT T
14d0: 72 61 6e 73 6c 61 74 65 41 63 63 65 6c 65 72 61 ranslateAccelera
14e0: 74 6f 72 28 4c 50 4d 53 47 2c 57 4f 52 44 29 3b tor(LPMSG,WORD);
14f0: 0d 0a 7d 0d 0a 61 6c 69 61 73 20 49 4f 6c 65 49 ..}..alias IOleI
1500: 6e 50 6c 61 63 65 46 72 61 6d 65 20 4c 50 4f 4c nPlaceFrame LPOL
1510: 45 49 4e 50 4c 41 43 45 46 52 41 4d 45 3b 0d 0a EINPLACEFRAME;..
1520: 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 4f 6c 65 ..interface IOle
1530: 49 6e 50 6c 61 63 65 53 69 74 65 20 20 3a 20 49 InPlaceSite : I
1540: 4f 6c 65 57 69 6e 64 6f 77 20 7b 0d 0a 09 48 52 OleWindow {...HR
1550: 45 53 55 4c 54 20 43 61 6e 49 6e 50 6c 61 63 65 ESULT CanInPlace
1560: 41 63 74 69 76 61 74 65 28 29 3b 0d 0a 09 48 52 Activate();...HR
1570: 45 53 55 4c 54 20 4f 6e 49 6e 50 6c 61 63 65 41 ESULT OnInPlaceA
1580: 63 74 69 76 61 74 65 28 29 3b 0d 0a 09 48 52 45 ctivate();...HRE
1590: 53 55 4c 54 20 4f 6e 55 49 41 63 74 69 76 61 74 SULT OnUIActivat
15a0: 65 28 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 47 e();...HRESULT G
15b0: 65 74 57 69 6e 64 6f 77 43 6f 6e 74 65 78 74 28 etWindowContext(
15c0: 49 4f 6c 65 49 6e 50 6c 61 63 65 46 72 61 6d 65 IOleInPlaceFrame
15d0: 2c 49 4f 6c 65 49 6e 50 6c 61 63 65 55 49 57 69 ,IOleInPlaceUIWi
15e0: 6e 64 6f 77 2c 4c 50 52 45 43 54 2c 4c 50 52 45 ndow,LPRECT,LPRE
15f0: 43 54 2c 4c 50 4f 4c 45 49 4e 50 4c 41 43 45 46 CT,LPOLEINPLACEF
1600: 52 41 4d 45 49 4e 46 4f 29 3b 0d 0a 09 48 52 45 RAMEINFO);...HRE
1610: 53 55 4c 54 20 53 63 72 6f 6c 6c 28 53 49 5a 45 SULT Scroll(SIZE
1620: 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 4f 6e 55 );...HRESULT OnU
1630: 49 44 65 61 63 74 69 76 61 74 65 28 42 4f 4f 4c IDeactivate(BOOL
1640: 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 4f 6e 49 );...HRESULT OnI
1650: 6e 50 6c 61 63 65 44 65 61 63 74 69 76 61 74 65 nPlaceDeactivate
1660: 28 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 44 69 ();...HRESULT Di
1670: 73 63 61 72 64 55 6e 64 6f 53 74 61 74 65 28 29 scardUndoState()
1680: 3b 0d 0a 09 48 52 45 53 55 4c 54 20 44 65 61 63 ;...HRESULT Deac
1690: 74 69 76 61 74 65 41 6e 64 55 6e 64 6f 28 29 3b tivateAndUndo();
16a0: 0d 0a 09 48 52 45 53 55 4c 54 20 4f 6e 50 6f 73 ...HRESULT OnPos
16b0: 52 65 63 74 43 68 61 6e 67 65 28 4c 50 43 52 45 RectChange(LPCRE
16c0: 43 54 29 3b 0d 0a 7d 0d 0a 0d 0a 69 6e 74 65 72 CT);..}....inter
16d0: 66 61 63 65 20 49 4f 6c 65 41 64 76 69 73 65 48 face IOleAdviseH
16e0: 6f 6c 64 65 72 20 3a 20 49 55 6e 6b 6e 6f 77 6e older : IUnknown
16f0: 20 7b 0d 0a 09 48 52 45 53 55 4c 54 20 41 64 76 {...HRESULT Adv
1700: 69 73 65 28 4c 50 41 44 56 49 53 45 53 49 4e 4b ise(LPADVISESINK
1710: 2c 50 44 57 4f 52 44 29 3b 0d 0a 09 48 52 45 53 ,PDWORD);...HRES
1720: 55 4c 54 20 55 6e 61 64 76 69 73 65 28 44 57 4f ULT Unadvise(DWO
1730: 52 44 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 45 RD);...HRESULT E
1740: 6e 75 6d 41 64 76 69 73 65 28 4c 50 45 4e 55 4d numAdvise(LPENUM
1750: 53 54 41 54 44 41 54 41 2a 29 3b 0d 0a 09 48 52 STATDATA*);...HR
1760: 45 53 55 4c 54 20 53 65 6e 64 4f 6e 52 65 6e 61 ESULT SendOnRena
1770: 6d 65 28 4c 50 4d 4f 4e 49 4b 45 52 29 3b 0d 0a me(LPMONIKER);..
1780: 09 48 52 45 53 55 4c 54 20 53 65 6e 64 4f 6e 53 .HRESULT SendOnS
1790: 61 76 65 28 29 3b 0d 0a 09 48 52 45 53 55 4c 54 ave();...HRESULT
17a0: 20 53 65 6e 64 4f 6e 43 6c 6f 73 65 28 29 3b 0d SendOnClose();.
17b0: 0a 7d 0d 0a 61 6c 69 61 73 20 49 4f 6c 65 41 64 .}..alias IOleAd
17c0: 76 69 73 65 48 6f 6c 64 65 72 20 4c 50 4f 4c 45 viseHolder LPOLE
17d0: 41 44 56 49 53 45 48 4f 4c 44 45 52 3b 0d 0a 0d ADVISEHOLDER;...
17e0: 0a 69 6e 74 65 72 66 61 63 65 20 49 44 72 6f 70 .interface IDrop
17f0: 53 6f 75 72 63 65 20 3a 20 49 55 6e 6b 6e 6f 77 Source : IUnknow
1800: 6e 20 7b 0d 0a 09 48 52 45 53 55 4c 54 20 51 75 n {...HRESULT Qu
1810: 65 72 79 43 6f 6e 74 69 6e 75 65 44 72 61 67 28 eryContinueDrag(
1820: 42 4f 4f 4c 2c 44 57 4f 52 44 29 3b 0d 0a 09 48 BOOL,DWORD);...H
1830: 52 45 53 55 4c 54 20 47 69 76 65 46 65 65 64 62 RESULT GiveFeedb
1840: 61 63 6b 28 44 57 4f 52 44 29 3b 0d 0a 7d 0d 0a ack(DWORD);..}..
1850: 61 6c 69 61 73 20 49 44 72 6f 70 53 6f 75 72 63 alias IDropSourc
1860: 65 20 4c 50 44 52 4f 50 53 4f 55 52 43 45 3b 0d e LPDROPSOURCE;.
1870: 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 44 72 ...interface IDr
1880: 6f 70 54 61 72 67 65 74 20 3a 20 49 55 6e 6b 6e opTarget : IUnkn
1890: 6f 77 6e 20 7b 0d 0a 09 48 52 45 53 55 4c 54 20 own {...HRESULT
18a0: 44 72 61 67 45 6e 74 65 72 28 4c 50 44 41 54 41 DragEnter(LPDATA
18b0: 4f 42 4a 45 43 54 2c 44 57 4f 52 44 2c 50 4f 49 OBJECT,DWORD,POI
18c0: 4e 54 4c 2c 50 44 57 4f 52 44 29 3b 0d 0a 09 48 NTL,PDWORD);...H
18d0: 52 45 53 55 4c 54 20 44 72 61 67 4f 76 65 72 28 RESULT DragOver(
18e0: 44 57 4f 52 44 2c 50 4f 49 4e 54 4c 2c 50 44 57 DWORD,POINTL,PDW
18f0: 4f 52 44 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 ORD);...HRESULT
1900: 44 72 61 67 4c 65 61 76 65 28 29 3b 0d 0a 09 48 DragLeave();...H
1910: 52 45 53 55 4c 54 20 44 72 6f 70 28 4c 50 44 41 RESULT Drop(LPDA
1920: 54 41 4f 42 4a 45 43 54 2c 44 57 4f 52 44 2c 50 TAOBJECT,DWORD,P
1930: 4f 49 4e 54 4c 2c 50 44 57 4f 52 44 29 3b 0d 0a OINTL,PDWORD);..
1940: 7d 0d 0a 61 6c 69 61 73 20 49 44 72 6f 70 54 61 }..alias IDropTa
1950: 72 67 65 74 20 4c 50 44 52 4f 50 54 41 52 47 45 rget LPDROPTARGE
1960: 54 3b 0d 0a 0d 0a 65 78 74 65 72 6e 20 28 57 69 T;....extern (Wi
1970: 6e 64 6f 77 73 29 20 7b 0d 0a 09 61 6c 69 61 73 ndows) {...alias
1980: 20 42 4f 4f 4c 20 66 75 6e 63 74 69 6f 6e 28 44 BOOL function(D
1990: 57 4f 52 44 29 20 5f 5f 49 56 69 65 77 5f 70 66 WORD) __IView_pf
19a0: 6e 63 6f 6e 74 3b 0d 0a 7d 0d 0a 0d 0a 69 6e 74 ncont;..}....int
19b0: 65 72 66 61 63 65 20 49 56 69 65 77 4f 62 6a 65 erface IViewObje
19c0: 63 74 20 3a 20 49 55 6e 6b 6e 6f 77 6e 20 7b 0d ct : IUnknown {.
19d0: 0a 09 48 52 45 53 55 4c 54 20 44 72 61 77 28 44 ..HRESULT Draw(D
19e0: 57 4f 52 44 2c 4c 4f 4e 47 2c 50 56 4f 49 44 2c WORD,LONG,PVOID,
19f0: 44 56 54 41 52 47 45 54 44 45 56 49 43 45 2a 2c DVTARGETDEVICE*,
1a00: 48 44 43 2c 48 44 43 2c 4c 50 43 52 45 43 54 4c HDC,HDC,LPCRECTL
1a10: 2c 4c 50 43 52 45 43 54 4c 2c 5f 5f 49 56 69 65 ,LPCRECTL,__IVie
1a20: 77 5f 70 66 6e 63 6f 6e 74 20 70 66 6e 43 6f 6e w_pfncont pfnCon
1a30: 74 69 6e 75 65 2c 44 57 4f 52 44 29 3b 0d 0a 09 tinue,DWORD);...
1a40: 48 52 45 53 55 4c 54 20 47 65 74 43 6f 6c 6f 72 HRESULT GetColor
1a50: 53 65 74 28 44 57 4f 52 44 2c 4c 4f 4e 47 2c 50 Set(DWORD,LONG,P
1a60: 56 4f 49 44 2c 44 56 54 41 52 47 45 54 44 45 56 VOID,DVTARGETDEV
1a70: 49 43 45 2a 2c 48 44 43 2c 4c 50 4c 4f 47 50 41 ICE*,HDC,LPLOGPA
1a80: 4c 45 54 54 45 2a 29 3b 0d 0a 09 48 52 45 53 55 LETTE*);...HRESU
1a90: 4c 54 20 46 72 65 65 7a 65 28 44 57 4f 52 44 2c LT Freeze(DWORD,
1aa0: 4c 4f 4e 47 2c 50 56 4f 49 44 2c 50 44 57 4f 52 LONG,PVOID,PDWOR
1ab0: 44 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 55 6e D);...HRESULT Un
1ac0: 66 72 65 65 7a 65 28 44 57 4f 52 44 29 3b 0d 0a freeze(DWORD);..
1ad0: 09 48 52 45 53 55 4c 54 20 53 65 74 41 64 76 69 .HRESULT SetAdvi
1ae0: 73 65 28 44 57 4f 52 44 2c 44 57 4f 52 44 2c 49 se(DWORD,DWORD,I
1af0: 41 64 76 69 73 65 53 69 6e 6b 29 3b 0d 0a 09 48 AdviseSink);...H
1b00: 52 45 53 55 4c 54 20 47 65 74 41 64 76 69 73 65 RESULT GetAdvise
1b10: 28 50 44 57 4f 52 44 2c 50 44 57 4f 52 44 2c 49 (PDWORD,PDWORD,I
1b20: 41 64 76 69 73 65 53 69 6e 6b 2a 29 3b 0d 0a 7d AdviseSink*);..}
1b30: 0d 0a 61 6c 69 61 73 20 49 56 69 65 77 4f 62 6a ..alias IViewObj
1b40: 65 63 74 20 4c 50 56 49 45 57 4f 42 4a 45 43 54 ect LPVIEWOBJECT
1b50: 3b 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20 49 ;....interface I
1b60: 56 69 65 77 4f 62 6a 65 63 74 32 20 3a 20 49 56 ViewObject2 : IV
1b70: 69 65 77 4f 62 6a 65 63 74 20 7b 0d 0a 09 48 52 iewObject {...HR
1b80: 45 53 55 4c 54 20 47 65 74 45 78 74 65 6e 74 28 ESULT GetExtent(
1b90: 44 57 4f 52 44 2c 4c 4f 4e 47 2c 44 56 54 41 52 DWORD,LONG,DVTAR
1ba0: 47 45 54 44 45 56 49 43 45 2a 2c 4c 50 53 49 5a GETDEVICE*,LPSIZ
1bb0: 45 4c 29 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 49 EL);..}..alias I
1bc0: 56 69 65 77 4f 62 6a 65 63 74 32 20 4c 50 56 49 ViewObject2 LPVI
1bd0: 45 57 4f 42 4a 45 43 54 32 3b 0d 0a 0d 0a 69 6e EWOBJECT2;....in
1be0: 74 65 72 66 61 63 65 20 49 4f 6c 65 43 61 63 68 terface IOleCach
1bf0: 65 20 3a 20 49 55 6e 6b 6e 6f 77 6e 20 7b 0d 0a e : IUnknown {..
1c00: 09 48 52 45 53 55 4c 54 20 43 61 63 68 65 28 46 .HRESULT Cache(F
1c10: 4f 52 4d 41 54 45 54 43 2a 2c 44 57 4f 52 44 2c ORMATETC*,DWORD,
1c20: 44 57 4f 52 44 2a 29 3b 0d 0a 09 48 52 45 53 55 DWORD*);...HRESU
1c30: 4c 54 20 55 6e 63 61 63 68 65 28 44 57 4f 52 44 LT Uncache(DWORD
1c40: 29 3b 0d 0a 09 48 52 45 53 55 4c 54 20 45 6e 75 );...HRESULT Enu
1c50: 6d 43 61 63 68 65 28 49 45 6e 75 6d 53 54 41 54 mCache(IEnumSTAT
1c60: 44 41 54 41 2a 29 3b 0d 0a 09 48 52 45 53 55 4c DATA*);...HRESUL
1c70: 54 20 49 6e 69 74 43 61 63 68 65 28 4c 50 44 41 T InitCache(LPDA
1c80: 54 41 4f 42 4a 45 43 54 29 3b 0d 0a 09 48 52 45 TAOBJECT);...HRE
1c90: 53 55 4c 54 20 53 65 74 44 61 74 61 28 46 4f 52 SULT SetData(FOR
1ca0: 4d 41 54 45 54 43 2a 2c 53 54 47 4d 45 44 49 55 MATETC*,STGMEDIU
1cb0: 4d 2a 2c 42 4f 4f 4c 29 3b 0d 0a 7d 0d 0a 61 6c M*,BOOL);..}..al
1cc0: 69 61 73 20 49 4f 6c 65 43 61 63 68 65 20 4c 50 ias IOleCache LP
1cd0: 4f 4c 45 43 41 43 48 45 3b 0d 0a 0d 0a 69 6e 74 OLECACHE;....int
1ce0: 65 72 66 61 63 65 20 49 4f 6c 65 43 61 63 68 65 erface IOleCache
1cf0: 32 20 3a 20 49 4f 6c 65 43 61 63 68 65 20 7b 0d 2 : IOleCache {.
1d00: 0a 09 48 52 45 53 55 4c 54 20 55 70 64 61 74 65 ..HRESULT Update
1d10: 43 61 63 68 65 28 4c 50 44 41 54 41 4f 42 4a 45 Cache(LPDATAOBJE
1d20: 43 54 2c 44 57 4f 52 44 2c 4c 50 56 4f 49 44 29 CT,DWORD,LPVOID)
1d30: 3b 0d 0a 09 48 52 45 53 55 4c 54 20 44 69 73 63 ;...HRESULT Disc
1d40: 61 72 64 43 61 63 68 65 28 44 57 4f 52 44 29 3b ardCache(DWORD);
1d50: 0d 0a 7d 0d 0a 61 6c 69 61 73 20 49 4f 6c 65 43 ..}..alias IOleC
1d60: 61 63 68 65 32 20 4c 50 4f 4c 45 43 41 43 48 45 ache2 LPOLECACHE
1d70: 32 3b 0d 0a 0d 0a 69 6e 74 65 72 66 61 63 65 20 2;....interface
1d80: 49 4f 6c 65 43 61 63 68 65 43 6f 6e 74 72 6f 6c IOleCacheControl
1d90: 20 3a 20 49 55 6e 6b 6e 6f 77 6e 20 7b 0d 0a 09 : IUnknown {...
1da0: 48 52 45 53 55 4c 54 20 4f 6e 52 75 6e 28 4c 50 HRESULT OnRun(LP
1db0: 44 41 54 41 4f 42 4a 45 43 54 29 3b 0d 0a 09 48 DATAOBJECT);...H
1dc0: 52 45 53 55 4c 54 20 4f 6e 53 74 6f 70 28 29 3b RESULT OnStop();
1dd0: 0d 0a 7d 0d 0a 61 6c 69 61 73 20 49 4f 6c 65 43 ..}..alias IOleC
1de0: 61 63 68 65 43 6f 6e 74 72 6f 6c 20 4c 50 4f 4c acheControl LPOL
1df0: 45 43 41 43 48 45 43 4f 4e 54 52 4f 4c 3b 0d 0a ECACHECONTROL;..