l3codeca.acm: Avoid mpg123 functions with suffix.
[wine.git] / dlls / stdole2.tlb / stdole2.idl
blob178d9b7169037feccd1a4eee61cfaae570dda260
1 /*
2 * Copyright (C) 2003 Robert Shearman
3 * 2005 Huw Davies
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #if 0
22 #pragma makedep regtypelib
23 #endif
25 #include <olectl.h>
27 /* These typedefs need to have the same size as their real counterparts. */
28 typedef short VARIANT_BOOL;
29 typedef void *BSTR;
30 typedef double CURRENCY;
31 typedef unsigned long HRESULT;
32 typedef struct {
33 short word1, word2, word3, word4;
34 void *ptr1, *ptr2;
35 } VARIANT;
36 typedef unsigned long SCODE;
39 uuid(00020430-0000-0000-C000-000000000046),
40 version(2.0),
41 helpstring("OLE Automation")
43 library stdole
45 typedef struct GUID {
46 unsigned long Data1;
47 unsigned short Data2;
48 unsigned short Data3;
49 unsigned char Data4[ 8 ];
50 } GUID;
52 typedef struct DISPPARAMS {
53 VARIANT *rgvarg;
54 long *rgdispidNamedArgs;
55 unsigned int cArgs;
56 unsigned int cNamedArgs;
57 } DISPPARAMS;
59 typedef struct EXCEPINFO {
60 unsigned short wCode;
61 unsigned short wReserved;
62 BSTR bstrSource;
63 BSTR bstrDescription;
64 BSTR bstrHelpFile;
65 unsigned long dwHelpContext;
66 void *pvReserved;
67 void *pfnDeferredFillIn;
68 SCODE scode;
69 } EXCEPINFO;
72 odl,
73 uuid(00000000-0000-0000-C000-000000000046),
74 hidden
76 interface IUnknown
78 [restricted]
79 HRESULT QueryInterface(
80 [in] GUID *riid,
81 [out] void **ppvObj);
83 [restricted]
84 unsigned long AddRef();
86 [restricted]
87 unsigned long Release();
91 odl,
92 uuid(00020400-0000-0000-C000-000000000046),
93 restricted
95 interface IDispatch : IUnknown
97 [restricted]
98 HRESULT GetTypeInfoCount(
99 [out] unsigned int *pctinfo);
101 [restricted]
102 HRESULT GetTypeInfo(
103 [in] unsigned int itinfo,
104 [in] unsigned long lcid,
105 [out] void **pptinfo);
107 [restricted]
108 HRESULT GetIDsOfNames(
109 [in] GUID *riid,
110 [in] char **rgszNames,
111 [in] unsigned int cNames,
112 [in] unsigned long lcid,
113 [out] long *rgdispid);
115 [restricted]
116 HRESULT Invoke(
117 [in] long dispidMember,
118 [in] GUID *riid,
119 [in] unsigned long lcid,
120 [in] unsigned short wFlags,
121 [in] DISPPARAMS *pdispparams,
122 [out] VARIANT *pvarResult,
123 [out] EXCEPINFO *pexcepinfo,
124 [out] unsigned int *puArgErr);
129 odl,
130 uuid(00020404-0000-0000-C000-000000000046),
131 hidden
133 interface IEnumVARIANT : IUnknown
135 HRESULT Next(
136 [in] unsigned long celt,
137 [in] VARIANT *rgvar,
138 [out] unsigned long *pceltFetched);
140 HRESULT Skip(
141 [in] unsigned long celt);
143 HRESULT Reset();
145 HRESULT Clone(
146 [out] IEnumVARIANT **ppenum);
149 typedef [uuid(66504301-BE0F-101A-8BBB-00AA00300CAB), public]
150 unsigned long OLE_COLOR;
152 typedef [uuid(66504302-BE0F-101A-8BBB-00AA00300CAB), public]
153 long OLE_XPOS_PIXELS;
155 typedef [uuid(66504303-BE0F-101A-8BBB-00AA00300CAB), public]
156 long OLE_YPOS_PIXELS;
158 typedef [uuid(66504304-BE0F-101A-8BBB-00AA00300CAB), public]
159 long OLE_XSIZE_PIXELS;
161 typedef [uuid(66504305-BE0F-101A-8BBB-00AA00300CAB), public]
162 long OLE_YSIZE_PIXELS;
164 typedef [uuid(66504306-BE0F-101A-8BBB-00AA00300CAB), public]
165 long OLE_XPOS_HIMETRIC;
167 typedef [uuid(66504307-BE0F-101A-8BBB-00AA00300CAB), public]
168 long OLE_YPOS_HIMETRIC;
170 typedef [uuid(66504308-BE0F-101A-8BBB-00AA00300CAB), public]
171 long OLE_XSIZE_HIMETRIC;
173 typedef [uuid(66504309-BE0F-101A-8BBB-00AA00300CAB), public]
174 long OLE_YSIZE_HIMETRIC;
176 typedef [uuid(BF030640-9069-101B-AE2D-08002B2EC713), public]
177 float OLE_XPOS_CONTAINER;
179 typedef [uuid(BF030641-9069-101B-AE2D-08002B2EC713), public]
180 float OLE_YPOS_CONTAINER;
182 typedef [uuid(BF030642-9069-101B-AE2D-08002B2EC713), public]
183 float OLE_XSIZE_CONTAINER;
185 typedef [uuid(BF030643-9069-101B-AE2D-08002B2EC713), public]
186 float OLE_YSIZE_CONTAINER;
188 typedef [uuid(66504313-BE0F-101A-8BBB-00AA00300CAB), public]
189 int OLE_HANDLE;
191 typedef [uuid(6650430B-BE0F-101A-8BBB-00AA00300CAB), public]
192 VARIANT_BOOL OLE_OPTEXCLUSIVE;
194 typedef [uuid(BF030644-9069-101B-AE2D-08002B2EC713), public]
195 VARIANT_BOOL OLE_CANCELBOOL;
197 typedef [uuid(BF030645-9069-101B-AE2D-08002B2EC713), public]
198 VARIANT_BOOL OLE_ENABLEDEFAULTBOOL;
201 uuid(6650430A-BE0F-101A-8BBB-00AA00300CAB)
203 enum OLE_TRISTATE {
204 Unchecked = 0,
205 Checked = 1,
206 Gray = 2
209 typedef [uuid(6650430D-BE0F-101A-8BBB-00AA00300CAB), public]
210 BSTR FONTNAME;
212 typedef [uuid(6650430E-BE0F-101A-8BBB-00AA00300CAB), public]
213 CURRENCY FONTSIZE;
215 typedef [uuid(6650430F-BE0F-101A-8BBB-00AA00300CAB), public]
216 VARIANT_BOOL FONTBOLD;
218 typedef [uuid(66504310-BE0F-101A-8BBB-00AA00300CAB), public]
219 VARIANT_BOOL FONTITALIC;
221 typedef [uuid(66504311-BE0F-101A-8BBB-00AA00300CAB), public]
222 VARIANT_BOOL FONTUNDERSCORE;
224 typedef [uuid(66504312-BE0F-101A-8BBB-00AA00300CAB), public]
225 VARIANT_BOOL FONTSTRIKETHROUGH;
229 odl,
230 uuid(BEF6E002-A874-101A-8BBA-00AA00300CAB),
231 helpstring("Font Object"),
232 hidden
234 interface IFont : IUnknown {
235 [propget] HRESULT Name([out, retval] BSTR *pname);
236 [propput] HRESULT Name([in] BSTR pname);
238 [propget] HRESULT Size([out, retval] CURRENCY *psize);
239 [propput] HRESULT Size([in] CURRENCY psize);
241 [propget] HRESULT Bold([out, retval] VARIANT_BOOL *pbold);
242 [propput] HRESULT Bold([in] VARIANT_BOOL pbold);
244 [propget] HRESULT Italic([out, retval] VARIANT_BOOL *pitalic);
245 [propput] HRESULT Italic([in] VARIANT_BOOL pitalic);
247 [propget] HRESULT Underline([out, retval] VARIANT_BOOL *punderline);
248 [propput] HRESULT Underline([in] VARIANT_BOOL punderline);
250 [propget] HRESULT Strikethrough([out, retval] VARIANT_BOOL *pstrikethrough);
251 [propput] HRESULT Strikethrough([in] VARIANT_BOOL pstrikethrough);
253 [propget] HRESULT Weight([out, retval] short *pweight);
254 [propput] HRESULT Weight([in] short pweight);
256 [propget] HRESULT Charset([out, retval] short *pcharset);
257 [propput] HRESULT Charset([in] short pcharset);
259 [propget] HRESULT hFont([out, retval] OLE_HANDLE *phfont);
261 HRESULT Clone([out] IFont **ppfont);
263 HRESULT IsEqual([in] IFont *pfontOther);
265 HRESULT SetRatio([in] long cyLogical, [in] long cyHimetric);
267 HRESULT AddRefHfont([in] OLE_HANDLE hFont);
269 HRESULT ReleaseHfont([in] OLE_HANDLE hFont);
274 odl,
275 uuid(BEF6E003-A874-101A-8BBA-00AA00300CAB)
277 dispinterface Font {
278 properties:
279 [id(DISPID_FONT_NAME)] BSTR Name;
280 [id(DISPID_FONT_SIZE)] CURRENCY Size;
281 [id(DISPID_FONT_BOLD)] VARIANT_BOOL Bold;
282 [id(DISPID_FONT_ITALIC)] VARIANT_BOOL Italic;
283 [id(DISPID_FONT_UNDER)] VARIANT_BOOL Underline;
284 [id(DISPID_FONT_STRIKE)] VARIANT_BOOL Strikethrough;
285 [id(DISPID_FONT_WEIGHT)] short Weight;
286 [id(DISPID_FONT_CHARSET)] short Charset;
287 methods:
290 typedef [public] Font IFontDisp;
293 uuid(0BE35203-8F91-11CE-9DE3-00AA004BB851)
295 coclass StdFont {
296 [default] dispinterface Font;
297 /* FIXME: We can't reference dispinterface FontEvents here because we need it to
298 appear at the end of the typelib. */
299 /* [default, source] dispinterface FontEvents;*/
300 interface IFont;
304 odl,
305 uuid(7BF80980-BF32-101A-8BBB-00AA00300CAB),
306 helpstring("Picture Object"),
307 hidden
309 interface IPicture : IUnknown {
310 [propget] HRESULT Handle([out, retval] OLE_HANDLE *phandle);
312 [propget] HRESULT hPal([out, retval] OLE_HANDLE *phpal);
314 [propget] HRESULT Type([out, retval] short *ptype);
316 [propget] HRESULT Width([out, retval] OLE_XSIZE_HIMETRIC *pwidth);
318 [propget] HRESULT Height([out, retval] OLE_YSIZE_HIMETRIC *pheight);
320 HRESULT Render([in] int hdc,
321 [in] long x,
322 [in] long y,
323 [in] long cx,
324 [in] long cy,
325 [in] OLE_XPOS_HIMETRIC xSrc,
326 [in] OLE_YPOS_HIMETRIC ySrc,
327 [in] OLE_XSIZE_HIMETRIC cxSrc,
328 [in] OLE_YSIZE_HIMETRIC cySrc,
329 [in] void *prcWBounds);
331 [propput] HRESULT hPal([in] OLE_HANDLE phpal);
333 [propget] HRESULT CurDC([out, retval] int *phdcOut);
335 HRESULT SelectPicture([in] int hdcIn,
336 [out] int *phdcOut,
337 [out] OLE_HANDLE *phbmpOut);
339 [propget] HRESULT KeepOriginalFormat([out, retval] VARIANT_BOOL *pfkeep);
340 [propput] HRESULT KeepOriginalFormat([in] VARIANT_BOOL pfkeep);
342 HRESULT PictureChanged();
344 HRESULT SaveAsFile([in] void *pstm,
345 [in] VARIANT_BOOL fSaveMemCopy,
346 [out] long *pcbSize);
348 [propget] HRESULT Attributes([out, retval] long *pdwAttr);
350 HRESULT SetHdc([in] OLE_HANDLE hdc);
354 uuid(7BF80981-BF32-101A-8BBB-00AA00300CAB)
356 dispinterface Picture {
357 properties:
358 [id(DISPID_PICT_HANDLE), readonly] OLE_HANDLE Handle;
359 [id(DISPID_PICT_HPAL)] OLE_HANDLE hPal;
360 [id(DISPID_PICT_TYPE), readonly] short Type;
361 [id(DISPID_PICT_WIDTH), readonly] OLE_XSIZE_HIMETRIC Width;
362 [id(DISPID_PICT_HEIGHT), readonly] OLE_YSIZE_HIMETRIC Height;
363 methods:
364 [id(DISPID_PICT_RENDER)]
365 void Render(int hdc,
366 long x,
367 long y,
368 long cx,
369 long cy,
370 OLE_XPOS_HIMETRIC xSrc,
371 OLE_YPOS_HIMETRIC ySrc,
372 OLE_XSIZE_HIMETRIC cxSrc,
373 OLE_YSIZE_HIMETRIC cySrc,
374 void *prcWBounds);
377 typedef [public] Picture IPictureDisp;
380 uuid(0BE35204-8F91-11CE-9DE3-00AA004BB851)
382 coclass StdPicture {
383 [default] dispinterface Picture;
384 interface IPicture;
388 uuid(E6C8FA08-BD9F-11D0-985E-00C04FC29993)
390 enum LoadPictureConstants {
391 Default = 0,
392 Monochrome = 1,
393 VgaColor = 2,
394 Color = 4
398 dllname("oleaut32.dll"),
399 uuid(91209AC0-60F6-11CF-9C5D-00AA00C1489E),
400 helpstring("Functions for Standard OLE Objects"),
401 helpcontext(0x2775)
403 module StdFunctions{
405 entry("OleLoadPictureFileEx"),
406 helpstring("Loads a picture from a file"),
407 helpcontext(0x2775)
409 HRESULT LoadPicture([in, optional] VARIANT filename,
410 [in, defaultvalue(0)] int widthDesired,
411 [in, defaultvalue(0)] int heightDesired,
412 [in, defaultvalue(Default)] enum LoadPictureConstants flags,
413 [out, retval] IPictureDisp **retval);
415 entry("OleSavePictureFile"),
416 helpstring("Saves a picture to a file"),
417 helpcontext(0x2775)
419 HRESULT SavePicture([in] IPictureDisp *Picture,
420 [in] BSTR filename);
425 uuid(4EF6100A-AF88-11D0-9846-00C04FC29993),
426 helpstring("Event Interface for the Font Object"),
427 hidden
429 dispinterface FontEvents {
430 properties:
431 methods:
432 [id(DISPID_FONT_CHANGED)] void FontChanged([in] BSTR PropertyName);
435 typedef [public] FontEvents IFontEventsDisp;