ReactOS 0.4.15-dev-7998-gdb93cb1
stdole2.idl
Go to the documentation of this file.
1/*
2 * Copyright (C) 2003 Robert Shearman
3 * 2005 Huw Davies
4 *
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.
9 *
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.
14 *
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
18 *
19 */
20
21#if 0
22#pragma makedep install
23#pragma makedep typelib
24#endif
25
26#include <olectl.h>
27
28[
29 uuid(00020430-0000-0000-C000-000000000046),
30 version(2.0),
31 helpstring("OLE Automation")
32]
34{
35 /* typedefs aren't stored in the type library.
36 These type names are known by the type compiler so it
37 doesn't really matter what we define them as. */
38
39 typedef short VARIANT_BOOL;
40 typedef long BSTR;
41 typedef double CURRENCY;
42 typedef unsigned long HRESULT;
43 typedef void *VARIANT;
44 typedef unsigned long SCODE;
45
46 typedef struct GUID {
47 unsigned long Data1;
48 unsigned short Data2;
49 unsigned short Data3;
50 unsigned char Data4[ 8 ];
52
53 typedef struct DISPPARAMS {
56 unsigned int cArgs;
57 unsigned int cNamedArgs;
58 } DISPPARAMS;
59
60 typedef struct EXCEPINFO {
61 unsigned short wCode;
62 unsigned short wReserved;
66 unsigned long dwHelpContext;
70 } EXCEPINFO;
71
72 [
73 odl,
74 uuid(00000000-0000-0000-C000-000000000046),
75 hidden
76 ]
77 interface IUnknown
78 {
79 [restricted]
81 [in] GUID *riid,
82 [out] void **ppvObj);
83
84 [restricted]
85 unsigned long AddRef();
86
87 [restricted]
88 unsigned long Release();
89 }
90
91 [
92 odl,
93 uuid(00020400-0000-0000-C000-000000000046),
94 restricted
95 ]
96 interface IDispatch : IUnknown
97 {
98 [restricted]
100 [out] unsigned int *pctinfo);
101
102 [restricted]
104 [in] unsigned int itinfo,
105 [in] unsigned long lcid,
106 [out] void **pptinfo);
107
108 [restricted]
110 [in] GUID *riid,
111 [in] char **rgszNames,
112 [in] unsigned int cNames,
113 [in] unsigned long lcid,
114 [out] long *rgdispid);
115
116 [restricted]
118 [in] long dispidMember,
119 [in] GUID *riid,
120 [in] unsigned long lcid,
121 [in] unsigned short wFlags,
122 [in] DISPPARAMS *pdispparams,
123 [out] VARIANT *pvarResult,
124 [out] EXCEPINFO *pexcepinfo,
125 [out] unsigned int *puArgErr);
126
127 }
128
129 [
130 odl,
131 uuid(00020404-0000-0000-C000-000000000046),
132 hidden
133 ]
135 {
137 [in] unsigned long celt,
138 [in] VARIANT *rgvar,
139 [out] unsigned long *pceltFetched);
140
142 [in] unsigned long celt);
143
145
147 [out] IEnumVARIANT **ppenum);
148 }
149
150 typedef [uuid(66504301-BE0F-101A-8BBB-00AA00300CAB), public]
151 unsigned long OLE_COLOR;
152
153 typedef [uuid(66504302-BE0F-101A-8BBB-00AA00300CAB), public]
155
156 typedef [uuid(66504303-BE0F-101A-8BBB-00AA00300CAB), public]
158
159 typedef [uuid(66504304-BE0F-101A-8BBB-00AA00300CAB), public]
161
162 typedef [uuid(66504305-BE0F-101A-8BBB-00AA00300CAB), public]
164
165 typedef [uuid(66504306-BE0F-101A-8BBB-00AA00300CAB), public]
167
168 typedef [uuid(66504307-BE0F-101A-8BBB-00AA00300CAB), public]
170
171 typedef [uuid(66504308-BE0F-101A-8BBB-00AA00300CAB), public]
173
174 typedef [uuid(66504309-BE0F-101A-8BBB-00AA00300CAB), public]
176
177 typedef [uuid(BF030640-9069-101B-AE2D-08002B2EC713), public]
179
180 typedef [uuid(BF030641-9069-101B-AE2D-08002B2EC713), public]
182
183 typedef [uuid(BF030642-9069-101B-AE2D-08002B2EC713), public]
185
186 typedef [uuid(BF030643-9069-101B-AE2D-08002B2EC713), public]
188
189 typedef [uuid(66504313-BE0F-101A-8BBB-00AA00300CAB), public]
191
192 typedef [uuid(6650430B-BE0F-101A-8BBB-00AA00300CAB), public]
194
195 typedef [uuid(BF030644-9069-101B-AE2D-08002B2EC713), public]
197
198 typedef [uuid(BF030645-9069-101B-AE2D-08002B2EC713), public]
200
202 uuid(6650430A-BE0F-101A-8BBB-00AA00300CAB)
203 ]
204 enum OLE_TRISTATE {
205 Unchecked = 0,
206 Checked = 1,
207 Gray = 2
208 };
209
210 typedef [uuid(6650430D-BE0F-101A-8BBB-00AA00300CAB), public]
212
213 typedef [uuid(6650430E-BE0F-101A-8BBB-00AA00300CAB), public]
215
216 typedef [uuid(6650430F-BE0F-101A-8BBB-00AA00300CAB), public]
218
219 typedef [uuid(66504310-BE0F-101A-8BBB-00AA00300CAB), public]
221
222 typedef [uuid(66504311-BE0F-101A-8BBB-00AA00300CAB), public]
224
225 typedef [uuid(66504312-BE0F-101A-8BBB-00AA00300CAB), public]
227
228
229 [
230 odl,
231 uuid(BEF6E002-A874-101A-8BBA-00AA00300CAB),
232 helpstring("Font Object"),
233 hidden
234 ]
235 interface IFont : IUnknown {
236 [propget] HRESULT Name([out, retval] BSTR *pname);
237 [propput] HRESULT Name([in] BSTR pname);
238
239 [propget] HRESULT Size([out, retval] CURRENCY *psize);
240 [propput] HRESULT Size([in] CURRENCY psize);
241
242 [propget] HRESULT Bold([out, retval] VARIANT_BOOL *pbold);
243 [propput] HRESULT Bold([in] VARIANT_BOOL pbold);
244
245 [propget] HRESULT Italic([out, retval] VARIANT_BOOL *pitalic);
246 [propput] HRESULT Italic([in] VARIANT_BOOL pitalic);
247
248 [propget] HRESULT Underline([out, retval] VARIANT_BOOL *punderline);
249 [propput] HRESULT Underline([in] VARIANT_BOOL punderline);
250
251 [propget] HRESULT Strikethrough([out, retval] VARIANT_BOOL *pstrikethrough);
252 [propput] HRESULT Strikethrough([in] VARIANT_BOOL pstrikethrough);
253
254 [propget] HRESULT Weight([out, retval] short *pweight);
255 [propput] HRESULT Weight([in] short pweight);
256
257 [propget] HRESULT Charset([out, retval] short *pcharset);
258 [propput] HRESULT Charset([in] short pcharset);
259
260 [propget] HRESULT hFont([out, retval] OLE_HANDLE *phfont);
261
262 HRESULT Clone([out] IFont **ppfont);
263
264 HRESULT IsEqual([in] IFont *pfontOther);
265
266 HRESULT SetRatio([in] long cyLogical, [in] long cyHimetric);
267
269
271 };
272
273
274 [
275 odl,
276 uuid(BEF6E003-A874-101A-8BBA-00AA00300CAB)
277 ]
278 dispinterface Font {
279 properties:
286 [id(DISPID_FONT_WEIGHT)] short Weight;
287 [id(DISPID_FONT_CHARSET)] short Charset;
288 methods:
289 }
290
291 typedef [public] Font IFontDisp;
292
293 [
294 uuid(0BE35203-8F91-11CE-9DE3-00AA004BB851)
295 ]
296 coclass StdFont {
297 [default] dispinterface Font;
298 /* FIXME: We can't reference dispinterface FontEvents here because we need it to
299 appear at the end of the typelib. */
300/* [default, source] dispinterface FontEvents;*/
301 interface IFont;
302 };
303
304 [
305 odl,
306 uuid(7BF80980-BF32-101A-8BBB-00AA00300CAB),
307 helpstring("Picture Object"),
308 hidden
309 ]
310 interface IPicture : IUnknown {
311 [propget] HRESULT Handle([out, retval] OLE_HANDLE *phandle);
312
313 [propget] HRESULT hPal([out, retval] OLE_HANDLE *phpal);
314
315 [propget] HRESULT Type([out, retval] short *ptype);
316
317 [propget] HRESULT Width([out, retval] OLE_XSIZE_HIMETRIC *pwidth);
318
319 [propget] HRESULT Height([out, retval] OLE_YSIZE_HIMETRIC *pheight);
320
322 [in] long x,
323 [in] long y,
324 [in] long cx,
325 [in] long cy,
326 [in] OLE_XPOS_HIMETRIC xSrc,
327 [in] OLE_YPOS_HIMETRIC ySrc,
328 [in] OLE_XSIZE_HIMETRIC cxSrc,
329 [in] OLE_YSIZE_HIMETRIC cySrc,
330 [in] void *prcWBounds);
331
332 [propput] HRESULT hPal([in] OLE_HANDLE phpal);
333
334 [propget] HRESULT CurDC([out, retval] int *phdcOut);
335
337 [out] int *phdcOut,
338 [out] OLE_HANDLE *phbmpOut);
339
340 [propget] HRESULT KeepOriginalFormat([out, retval] VARIANT_BOOL *pfkeep);
341 [propput] HRESULT KeepOriginalFormat([in] VARIANT_BOOL pfkeep);
342
344
345 HRESULT SaveAsFile([in] void *pstm,
346 [in] VARIANT_BOOL fSaveMemCopy,
347 [out] long *pcbSize);
348
349 [propget] HRESULT Attributes([out, retval] long *pdwAttr);
350
352 };
353
354 [
355 uuid(7BF80981-BF32-101A-8BBB-00AA00300CAB)
356 ]
357 dispinterface Picture {
358 properties:
361 [id(DISPID_PICT_TYPE), readonly] short Type;
364 methods:
366 void Render(int hdc,
367 long x,
368 long y,
369 long cx,
370 long cy,
373 OLE_XSIZE_HIMETRIC cxSrc,
374 OLE_YSIZE_HIMETRIC cySrc,
375 void *prcWBounds);
376 };
377
378 typedef [public] Picture IPictureDisp;
379
380 [
381 uuid(0BE35204-8F91-11CE-9DE3-00AA004BB851)
382 ]
383 coclass StdPicture {
384 [default] dispinterface Picture;
385 interface IPicture;
386 };
387
389 uuid(E6C8FA08-BD9F-11D0-985E-00C04FC29993)
390 ]
395 Color = 4
396 };
397
398 [
399 dllname("oleaut32.dll"),
400 uuid(91209AC0-60F6-11CF-9C5D-00AA00C1489E),
401 helpstring("Functions for Standard OLE Objects"),
402 helpcontext(0x2775)
403 ]
404 module StdFunctions{
405 [
406 entry("OleLoadPictureFileEx"),
407 helpstring("Loads a picture from a file"),
408 helpcontext(0x2775)
409 ]
411 [in, defaultvalue(0)] int widthDesired,
412 [in, defaultvalue(0)] int heightDesired,
413 [in, defaultvalue(Default)] enum LoadPictureConstants flags,
414 [out, retval] IPictureDisp **retval);
415 [
416 entry("OleSavePictureFile"),
417 helpstring("Saves a picture to a file"),
418 helpcontext(0x2775)
419 ]
421 [in] BSTR filename);
422 };
423
424
425 [
426 uuid(4EF6100A-AF88-11D0-9846-00C04FC29993),
427 helpstring("Event Interface for the Font Object"),
428 hidden
429 ]
430 dispinterface FontEvents {
431 properties:
432 methods:
433 [id(DISPID_FONT_CHANGED)] void FontChanged([in] BSTR PropertyName);
434 };
435
436 typedef [public] FontEvents IFontEventsDisp;
437
438
439};
@ optional
Definition: SystemMenu.c:34
Type
Definition: Type.h:7
coclass MediaStreamFilter helpstring("Stream Class")
struct NameRec_ * Name
Definition: cdprocs.h:460
@ Gray
Definition: bl.h:205
#define D(d)
Definition: builtin.c:4557
FT_Library library
Definition: cffdrivr.c:654
Definition: ehthrow.cxx:93
Definition: ehthrow.cxx:54
static const WCHAR E[]
Definition: oid.c:1253
struct tagVARIANT VARIANT
Definition: compat.h:2377
OLECHAR * BSTR
Definition: compat.h:2293
short VARIANT_BOOL
Definition: compat.h:2290
LONG SCODE
Definition: compat.h:2252
static const WCHAR version[]
Definition: asmname.c:66
ULONG Handle
Definition: gdb_input.c:15
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLenum pname
Definition: glext.h:5645
GLuint in
Definition: glext.h:9616
GLbitfield flags
Definition: glext.h:7161
GLuint id
Definition: glext.h:5910
REFIID riid
Definition: atlbase.h:39
HFONT hFont
BSTR Name
BOOL Italic
BOOL Strikethrough
SHORT Weight
BOOL Bold
BOOL Underline
SHORT Charset
BOOL KeepOriginalFormat
OLE_HANDLE hPal
void FontChanged([in] BSTR PropertyName)
HRESULT GetTypeInfoCount([out] unsigned int *pctinfo)
HRESULT Invoke([in] long dispidMember, [in] GUID *riid, [in] unsigned long lcid, [in] unsigned short wFlags, [in] DISPPARAMS *pdispparams, [out] VARIANT *pvarResult, [out] EXCEPINFO *pexcepinfo, [out] unsigned int *puArgErr)
HRESULT GetTypeInfo([in] unsigned int itinfo, [in] unsigned long lcid, [out] void **pptinfo)
HRESULT GetIDsOfNames([in] GUID *riid, [in] char **rgszNames, [in] unsigned int cNames, [in] unsigned long lcid, [out] long *rgdispid)
HRESULT ReleaseHfont([in] OLE_HANDLE hFont)
HRESULT SetRatio([in] long cyLogical, [in] long cyHimetric)
VARIANT_BOOL Italic
OLE_HANDLE hFont
HRESULT IsEqual([in] IFont *pfontOther)
HRESULT Clone([out] IFont **ppfont)
CURRENCY Size
VARIANT_BOOL Underline
VARIANT_BOOL Bold
VARIANT_BOOL Strikethrough
HRESULT AddRefHfont([in] OLE_HANDLE hFont)
OLE_HANDLE hPal
HRESULT SaveAsFile([in] void *pstm, [in] VARIANT_BOOL fSaveMemCopy, [out] long *pcbSize)
HRESULT SetHdc([in] OLE_HANDLE hdc)
HRESULT PictureChanged()
OLE_HANDLE Handle
VARIANT_BOOL KeepOriginalFormat
OLE_XSIZE_HIMETRIC Width
HRESULT SelectPicture([in] int hdcIn, [out] int *phdcOut, [out] OLE_HANDLE *phbmpOut)
HRESULT Render([in] int hdc, [in] long x, [in] long y, [in] long cx, [in] long cy, [in] OLE_XPOS_HIMETRIC xSrc, [in] OLE_YPOS_HIMETRIC ySrc, [in] OLE_XSIZE_HIMETRIC cxSrc, [in] OLE_YSIZE_HIMETRIC cySrc, [in] void *prcWBounds)
OLE_YSIZE_HIMETRIC Height
unsigned long AddRef()
unsigned long Release()
HRESULT QueryInterface([in] GUID *riid, [out] void **ppvObj)
void Render(int hdc, long x, long y, long cx, long cy, OLE_XPOS_HIMETRIC xSrc, OLE_YPOS_HIMETRIC ySrc, OLE_XSIZE_HIMETRIC cxSrc, OLE_YSIZE_HIMETRIC cySrc, void *prcWBounds)
HRESULT Skip([in] unsigned long celt)
HRESULT Clone([out] IEnumVARIANT **ppenum)
HRESULT Next([in] unsigned long celt, [in] VARIANT *rgvar, [out] unsigned long *pceltFetched)
HRESULT Reset()
Definition: msctf.idl:550
const char * filename
Definition: ioapi.h:137
uint32_t entry
Definition: isohybrid.c:63
CY CURRENCY
Definition: mapidefs.h:53
__u32 hidden
Definition: mkdosfs.c:13
HDC hdc
Definition: main.c:9
HRESULT LoadPicture([in, optional] VARIANT filename, [in, defaultvalue(0)] int widthDesired, [in, defaultvalue(0)] int heightDesired, [in, defaultvalue(Default)] enum LoadPictureConstants flags, [out, retval] IPictureDisp **retval)
HRESULT SavePicture([in] IPictureDisp *Picture, [in] BSTR filename)
long OLE_XSIZE_HIMETRIC
Definition: stdole2.idl:172
int OLE_HANDLE
Definition: stdole2.idl:190
long OLE_YSIZE_HIMETRIC
Definition: stdole2.idl:175
BSTR FONTNAME
Definition: stdole2.idl:211
long OLE_XPOS_HIMETRIC
Definition: stdole2.idl:166
long OLE_YPOS_HIMETRIC
Definition: stdole2.idl:169
VARIANT_BOOL FONTSTRIKETHROUGH
Definition: stdole2.idl:226
LoadPictureConstants
Definition: stdole2.idl:391
@ VgaColor
Definition: stdole2.idl:394
@ Default
Definition: stdole2.idl:392
@ Monochrome
Definition: stdole2.idl:393
double CURRENCY
Definition: stdole2.idl:41
long BSTR
Definition: stdole2.idl:40
VARIANT_BOOL FONTBOLD
Definition: stdole2.idl:217
VARIANT_BOOL FONTUNDERSCORE
Definition: stdole2.idl:223
short VARIANT_BOOL
Definition: stdole2.idl:39
unsigned long SCODE
Definition: stdole2.idl:44
VARIANT_BOOL FONTITALIC
Definition: stdole2.idl:220
OLE_TRISTATE
Definition: stdole2.idl:204
_Must_inspect_result_ _Out_ LPSIZE psize
Definition: ntgdi.h:1569
float OLE_YSIZE_CONTAINER
Definition: olectl.h:167
VARIANT_BOOL OLE_ENABLEDEFAULTBOOL
Definition: olectl.h:178
LONG OLE_YPOS_PIXELS
Definition: olectl.h:161
#define DISPID_PICT_RENDER
Definition: olectl.h:443
#define DISPID_FONT_SIZE
Definition: olectl.h:428
#define DISPID_FONT_NAME
Definition: olectl.h:427
float OLE_XPOS_CONTAINER
Definition: olectl.h:164
#define DISPID_PICT_TYPE
Definition: olectl.h:440
#define DISPID_FONT_BOLD
Definition: olectl.h:429
#define FONTSIZE(n)
Definition: olectl.h:129
#define DISPID_FONT_STRIKE
Definition: olectl.h:432
#define DISPID_PICT_WIDTH
Definition: olectl.h:441
VARIANT_BOOL OLE_OPTEXCLUSIVE
Definition: olectl.h:176
VARIANT_BOOL OLE_CANCELBOOL
Definition: olectl.h:177
float OLE_YPOS_CONTAINER
Definition: olectl.h:165
LONG OLE_YSIZE_PIXELS
Definition: olectl.h:163
#define DISPID_PICT_HPAL
Definition: olectl.h:439
#define DISPID_FONT_ITALIC
Definition: olectl.h:430
#define DISPID_PICT_HANDLE
Definition: olectl.h:438
#define DISPID_FONT_CHARSET
Definition: olectl.h:434
LONG OLE_XPOS_PIXELS
Definition: olectl.h:160
#define DISPID_FONT_WEIGHT
Definition: olectl.h:433
#define DISPID_FONT_CHANGED
Definition: olectl.h:435
#define DISPID_PICT_HEIGHT
Definition: olectl.h:442
float OLE_XSIZE_CONTAINER
Definition: olectl.h:166
#define DISPID_FONT_UNDER
Definition: olectl.h:431
LONG OLE_XSIZE_PIXELS
Definition: olectl.h:162
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585
static FILE * out
Definition: regtests2xml.c:44
@ Strikethrough
Definition: sacdrv.h:1387
@ Bold
Definition: sacdrv.h:1379
@ Underline
Definition: sacdrv.h:1382
@ Italic
Definition: sacdrv.h:1381
#define F(x, y, z)
Definition: md5.c:51
#define CF
Definition: simd.h:157
unsigned int cNamedArgs
Definition: stdole2.idl:57
long * rgdispidNamedArgs
Definition: stdole2.idl:55
VARIANT * rgvarg
Definition: stdole2.idl:54
unsigned int cArgs
Definition: stdole2.idl:56
BSTR bstrDescription
Definition: stdole2.idl:64
void * pfnDeferredFillIn
Definition: stdole2.idl:68
unsigned short wReserved
Definition: stdole2.idl:62
unsigned long dwHelpContext
Definition: stdole2.idl:66
unsigned short wCode
Definition: stdole2.idl:61
void * pvReserved
Definition: stdole2.idl:67
unsigned short Data2
Definition: stdole2.idl:48
unsigned short Data3
Definition: stdole2.idl:49
unsigned long Data1
Definition: stdole2.idl:47
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:89
_In_ HFONT _Out_ PUINT Height
Definition: font.h:88
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531
#define HRESULT
Definition: msvc.h:7