annotate win32/oleidl.d @ 1:4a9dcbd9e54f

-files of 0.13 beta -fixes so that it now compiles with the current dmd version
author marton@basel.hu
date Tue, 05 Apr 2011 20:44:01 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
1 /***********************************************************************\
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
2 * oleidl.d *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
3 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
4 * Windows API header module *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
5 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
6 * Translated from MinGW Windows headers *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
7 * *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
8 * Placed into public domain *
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
9 \***********************************************************************/
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
10 module win32.oleidl;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
11
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
12 // DAC: This is defined in ocidl !!
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
13 // what is it doing in here?
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
14 //alias IEnumOleUndoUnits* LPENUMOLEUNDOUNITS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
15
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
16 private import win32.basetyps, win32.objidl, win32.unknwn, win32.windef,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
17 win32.winuser, win32.wtypes;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
18 private import win32.objfwd; // for LPMONIKER
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
19 private import win32.wingdi; // for LPLOGPALETTE
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
20
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
21 const MK_ALT = 32;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
22
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
23 enum BINDSPEED {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
24 BINDSPEED_INDEFINITE = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
25 BINDSPEED_MODERATE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
26 BINDSPEED_IMMEDIATE
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
27 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
28
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
29 enum OLEWHICHMK {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
30 OLEWHICHMK_CONTAINER = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
31 OLEWHICHMK_OBJREL,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
32 OLEWHICHMK_OBJFULL
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
33 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
34
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
35 enum OLEGETMONIKER {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
36 OLEGETMONIKER_ONLYIFTHERE = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
37 OLEGETMONIKER_FORCEASSIGN,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
38 OLEGETMONIKER_UNASSIGN,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
39 OLEGETMONIKER_TEMPFORUSER
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
40 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
41
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
42 enum USERCLASSTYPE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
43 USERCLASSTYPE_FULL = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
44 USERCLASSTYPE_SHORT,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
45 USERCLASSTYPE_APPNAME
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
46 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
47
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
48 enum DROPEFFECT {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
49 DROPEFFECT_NONE = 0,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
50 DROPEFFECT_COPY = 1,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
51 DROPEFFECT_MOVE = 2,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
52 DROPEFFECT_LINK = 4,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
53 DROPEFFECT_SCROLL = 0x80000000
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
54 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
55
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
56 struct OLEMENUGROUPWIDTHS {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
57 LONG width[6];
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
58 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
59 alias OLEMENUGROUPWIDTHS* LPOLEMENUGROUPWIDTHS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
60
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
61 alias HGLOBAL HOLEMENU;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
62
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
63 enum OLECLOSE {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
64 OLECLOSE_SAVEIFDIRTY,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
65 OLECLOSE_NOSAVE,
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
66 OLECLOSE_PROMPTSAVE
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
67 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
68
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
69 struct OLEVERB {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
70 LONG lVerb;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
71 LPWSTR lpszVerbName;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
72 DWORD fuFlags;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
73 DWORD grfAttribs;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
74 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
75 alias OLEVERB* LPOLEVERB;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
76
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
77 alias RECT BORDERWIDTHS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
78 alias LPRECT LPBORDERWIDTHS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
79 alias LPCRECT LPCBORDERWIDTHS;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
80
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
81 struct OLEINPLACEFRAMEINFO {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
82 UINT cb;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
83 BOOL fMDIApp;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
84 HWND hwndFrame;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
85 HACCEL haccel;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
86 UINT cAccelEntries;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
87 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
88 alias OLEINPLACEFRAMEINFO* LPOLEINPLACEFRAMEINFO;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
89
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
90 interface IEnumOLEVERB : public IUnknown
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
91 {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
92 HRESULT Next(ULONG,OLEVERB*,ULONG*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
93 HRESULT Skip(ULONG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
94 HRESULT Reset();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
95 HRESULT Clone(IEnumOLEVERB**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
96 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
97 //alias IEnumOLEVERB IEnumOleVerb;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
98 alias IEnumOLEVERB LPENUMOLEVERB;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
99
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
100
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
101 interface IParseDisplayName : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
102 HRESULT ParseDisplayName(IBindCtx*,LPOLESTR,ULONG*,IMoniker**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
103 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
104 alias IParseDisplayName LPPARSEDISPLAYNAME;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
105
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
106 interface IOleContainer : public IParseDisplayName {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
107 HRESULT EnumObjects(DWORD,IEnumUnknown**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
108 HRESULT LockContainer(BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
109 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
110 alias IOleContainer LPOLECONTAINER;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
111
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
112 interface IOleItemContainer : public IOleContainer {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
113 HRESULT GetObject(LPOLESTR,DWORD,IBindCtx*,REFIID,void**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
114 HRESULT GetObjectStorage(LPOLESTR,IBindCtx*,REFIID,void**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
115 HRESULT IsRunning(LPOLESTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
116 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
117
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
118
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
119 interface IOleClientSite : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
120 HRESULT SaveObject();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
121 HRESULT GetMoniker(DWORD,DWORD,LPMONIKER*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
122 HRESULT GetContainer(LPOLECONTAINER*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
123 HRESULT ShowObject();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
124 HRESULT OnShowWindow(BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
125 HRESULT RequestNewObjectLayout();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
126 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
127 alias IOleClientSite LPOLECLIENTSITE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
128
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
129 interface IOleObject : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
130 HRESULT SetClientSite(LPOLECLIENTSITE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
131 HRESULT GetClientSite(LPOLECLIENTSITE*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
132 HRESULT SetHostNames(LPCOLESTR,LPCOLESTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
133 HRESULT Close(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
134 HRESULT SetMoniker(DWORD,LPMONIKER);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
135 HRESULT GetMoniker(DWORD,DWORD,LPMONIKER*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
136 HRESULT InitFromData(LPDATAOBJECT,BOOL,DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
137 HRESULT GetClipboardData(DWORD,LPDATAOBJECT*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
138 HRESULT DoVerb(LONG,LPMSG,LPOLECLIENTSITE,LONG,HWND,LPCRECT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
139 HRESULT EnumVerbs(LPENUMOLEVERB*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
140 HRESULT Update();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
141 HRESULT IsUpToDate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
142 HRESULT GetUserClassID(LPCLSID);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
143 HRESULT GetUserType(DWORD,LPOLESTR*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
144 HRESULT SetExtent(DWORD,SIZEL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
145 HRESULT GetExtent(DWORD,SIZEL*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
146 HRESULT Advise(LPADVISESINK,PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
147 HRESULT Unadvise(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
148 HRESULT EnumAdvise(LPENUMSTATDATA*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
149 HRESULT GetMiscStatus(DWORD,PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
150 HRESULT SetColorScheme(LPLOGPALETTE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
151 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
152 alias IOleObject LPOLEOBJECT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
153
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
154 interface IOleWindow : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
155 HRESULT GetWindow(HWND*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
156 HRESULT ContextSensitiveHelp(BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
157 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
158 alias IOleWindow LPOLEWINDOW;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
159
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
160 interface IOleInPlaceUIWindow : public IOleWindow {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
161 HRESULT GetBorder(LPRECT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
162 HRESULT RequestBorderSpace(LPCBORDERWIDTHS);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
163 HRESULT SetBorderSpace(LPCBORDERWIDTHS);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
164 HRESULT SetActiveObject(LPOLEINPLACEACTIVEOBJECT,LPCOLESTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
165 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
166 alias IOleInPlaceUIWindow LPOLEINPLACEUIWINDOW;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
167
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
168 interface IOleInPlaceObject : public IOleWindow {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
169 HRESULT InPlaceDeactivate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
170 HRESULT UIDeactivate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
171 HRESULT SetObjectRects(LPCRECT,LPCRECT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
172 HRESULT ReactivateAndUndo();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
173 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
174
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
175
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
176 interface IOleInPlaceActiveObject : public IOleWindow {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
177 HRESULT TranslateAccelerator(LPMSG);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
178 HRESULT OnFrameWindowActivate(BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
179 HRESULT OnDocWindowActivate(BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
180 HRESULT ResizeBorder(LPCRECT,LPOLEINPLACEUIWINDOW,BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
181 HRESULT EnableModeless(BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
182 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
183 alias IOleInPlaceActiveObject LPOLEINPLACEACTIVEOBJECT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
184
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
185 interface IOleInPlaceFrame : public IOleInPlaceUIWindow {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
186 HRESULT InsertMenus(HMENU,LPOLEMENUGROUPWIDTHS);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
187 HRESULT SetMenu(HMENU,HOLEMENU,HWND);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
188 HRESULT RemoveMenus(HMENU);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
189 HRESULT SetStatusText(LPCOLESTR);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
190 HRESULT EnableModeless(BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
191 HRESULT TranslateAccelerator(LPMSG,WORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
192 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
193 alias IOleInPlaceFrame LPOLEINPLACEFRAME;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
194
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
195 interface IOleInPlaceSite : public IOleWindow {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
196 HRESULT CanInPlaceActivate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
197 HRESULT OnInPlaceActivate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
198 HRESULT OnUIActivate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
199 HRESULT GetWindowContext(IOleInPlaceFrame*,IOleInPlaceUIWindow*,LPRECT,LPRECT,LPOLEINPLACEFRAMEINFO);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
200 HRESULT Scroll(SIZE);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
201 HRESULT OnUIDeactivate(BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
202 HRESULT OnInPlaceDeactivate();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
203 HRESULT DiscardUndoState();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
204 HRESULT DeactivateAndUndo();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
205 HRESULT OnPosRectChange(LPCRECT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
206 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
207
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
208 interface IOleAdviseHolder : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
209 HRESULT Advise(LPADVISESINK,PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
210 HRESULT Unadvise(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
211 HRESULT EnumAdvise(LPENUMSTATDATA*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
212 HRESULT SendOnRename(LPMONIKER);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
213 HRESULT SendOnSave();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
214 HRESULT SendOnClose();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
215 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
216 alias IOleAdviseHolder LPOLEADVISEHOLDER;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
217
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
218 interface IDropSource : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
219 HRESULT QueryContinueDrag(BOOL,DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
220 HRESULT GiveFeedback(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
221 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
222 alias IDropSource LPDROPSOURCE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
223
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
224 interface IDropTarget : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
225 HRESULT DragEnter(LPDATAOBJECT,DWORD,POINTL,PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
226 HRESULT DragOver(DWORD,POINTL,PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
227 HRESULT DragLeave();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
228 HRESULT Drop(LPDATAOBJECT,DWORD,POINTL,PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
229 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
230 alias IDropTarget LPDROPTARGET;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
231
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
232 extern (Windows) {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
233 alias BOOL function(DWORD) __IView_pfncont;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
234 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
235
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
236 interface IViewObject : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
237 HRESULT Draw(DWORD,LONG,PVOID,DVTARGETDEVICE*,HDC,HDC,LPCRECTL,LPCRECTL,__IView_pfncont pfnContinue,DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
238 HRESULT GetColorSet(DWORD,LONG,PVOID,DVTARGETDEVICE*,HDC,LPLOGPALETTE*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
239 HRESULT Freeze(DWORD,LONG,PVOID,PDWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
240 HRESULT Unfreeze(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
241 HRESULT SetAdvise(DWORD,DWORD,IAdviseSink*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
242 HRESULT GetAdvise(PDWORD,PDWORD,IAdviseSink**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
243 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
244 alias IViewObject LPVIEWOBJECT;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
245
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
246 interface IViewObject2 : public IViewObject {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
247 HRESULT GetExtent(DWORD,LONG,DVTARGETDEVICE*,LPSIZEL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
248 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
249 alias IViewObject2 LPVIEWOBJECT2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
250
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
251 interface IOleCache : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
252 HRESULT Cache(FORMATETC*,DWORD,DWORD*);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
253 HRESULT Uncache(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
254 HRESULT EnumCache(IEnumSTATDATA**);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
255 HRESULT InitCache(LPDATAOBJECT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
256 HRESULT SetData(FORMATETC*,STGMEDIUM*,BOOL);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
257 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
258 alias IOleCache LPOLECACHE;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
259
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
260 interface IOleCache2 : public IOleCache {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
261 HRESULT UpdateCache(LPDATAOBJECT,DWORD,LPVOID);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
262 HRESULT DiscardCache(DWORD);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
263 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
264 alias IOleCache2 LPOLECACHE2;
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
265
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
266 interface IOleCacheControl : public IUnknown {
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
267 HRESULT OnRun(LPDATAOBJECT);
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
268 HRESULT OnStop();
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
269 }
4a9dcbd9e54f -files of 0.13 beta
marton@basel.hu
parents:
diff changeset
270 alias IOleCacheControl LPOLECACHECONTROL;