VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/propidl.idl@ 19678

Last change on this file since 19678 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 15.7 KB
Line 
1/*
2 * Copyright 2002 Ove Kaaven
3 * Copyright 2004 Francois Gouget
4 * Copyright 2005 Juan Lang
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21/*
22 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef DO_NO_IMPORTS
31import "objidl.idl";
32import "oaidl.idl";
33#endif
34
35/*
36 * Windows SDK braindamage alert
37 *
38 * PID_DICTIONARY and PID_CODEPAGE are defined by msidefs.h too
39 * PID_SECURITY is defined in msidefs.h with a different value!
40 * So these need to be undefined first.
41 */
42cpp_quote("#ifdef PID_DICTIONARY")
43cpp_quote("#undef PID_DICTIONARY")
44cpp_quote("#endif")
45
46cpp_quote("#ifdef PID_CODEPAGE")
47cpp_quote("#undef PID_CODEPAGE")
48cpp_quote("#endif")
49
50cpp_quote("#ifdef PID_SECURITY")
51cpp_quote("#undef PID_SECURITY")
52cpp_quote("#endif")
53
54/******************** Property Storage ********************/
55
56interface IEnumSTATPROPSTG;
57interface IEnumSTATPROPSETSTG;
58
59[
60 object,
61 uuid(00000138-0000-0000-C000-000000000046),
62 pointer_default(unique)
63]
64interface IPropertyStorage : IUnknown
65{
66 typedef [unique] IPropertyStorage *LPPROPERTYSTORAGE;
67
68 const DWORD PROPSETFLAG_DEFAULT = 0;
69 const DWORD PROPSETFLAG_NONSIMPLE = 1;
70 const DWORD PROPSETFLAG_ANSI = 2;
71 const DWORD PROPSETFLAG_UNBUFFERED = 4;
72 const DWORD PROPSETFLAG_CASE_SENSITIVE = 8;
73
74 const DWORD PROPSET_BEHAVIOR_CASE_SENSITIVE = 1;
75
76 const PROPID PID_DICTIONARY = 0x00000000;
77 const PROPID PID_CODEPAGE = 0x00000001;
78 const PROPID PID_FIRST_USABLE = 0x00000002;
79 const PROPID PID_FIRST_NAME_DEFAULT = 0x00000fff;
80 const PROPID PID_LOCALE = 0x80000000;
81 const PROPID PID_MODIFY_TIME = 0x80000001;
82 const PROPID PID_SECURITY = 0x80000002;
83 const PROPID PID_BEHAVIOR = 0x80000003;
84 const PROPID PID_ILLEGAL = 0xffffffff;
85 const PROPID PID_MIN_READONLY = 0x80000000;
86 const PROPID PID_MAX_READONLY = 0xbfffffff;
87
88 typedef struct tagPROPVARIANT PROPVARIANT;
89
90#define TYPEDEF_CA(type, name) \
91 typedef struct tag##name { \
92 ULONG cElems; \
93 [size_is(cElems)] \
94 type *pElems; \
95 } name
96
97 TYPEDEF_CA(unsigned char, CAUB);
98 TYPEDEF_CA(short, CAI);
99 TYPEDEF_CA(USHORT, CAUI);
100 TYPEDEF_CA(long, CAL);
101 TYPEDEF_CA(ULONG, CAUL);
102 TYPEDEF_CA(float, CAFLT);
103 TYPEDEF_CA(double, CADBL);
104 TYPEDEF_CA(CY, CACY);
105 TYPEDEF_CA(DATE, CADATE);
106 TYPEDEF_CA(BSTR, CABSTR);
107 TYPEDEF_CA(BSTRBLOB, CABSTRBLOB);
108 TYPEDEF_CA(VARIANT_BOOL, CABOOL);
109 TYPEDEF_CA(SCODE, CASCODE);
110 TYPEDEF_CA(PROPVARIANT, CAPROPVARIANT);
111 TYPEDEF_CA(LARGE_INTEGER, CAH);
112 TYPEDEF_CA(ULARGE_INTEGER, CAUH);
113 TYPEDEF_CA(LPSTR, CALPSTR);
114 TYPEDEF_CA(LPWSTR, CALPWSTR);
115 TYPEDEF_CA(FILETIME, CAFILETIME);
116 TYPEDEF_CA(CLIPDATA, CACLIPDATA);
117 TYPEDEF_CA(CLSID, CACLSID);
118
119 struct tagPROPVARIANT {
120 VARTYPE vt;
121 WORD wReserved1;
122 WORD wReserved2;
123 WORD wReserved3;
124 [switch_is(vt & 0x1fff)] union {
125 [case(VT_EMPTY, VT_NULL)] ;
126 [case(VT_I1)] char cVal;
127 [case(VT_UI1)] UCHAR bVal;
128 [case(VT_I2)] short iVal;
129 [case(VT_UI2)] USHORT uiVal;
130 [case(VT_BOOL)] VARIANT_BOOL boolVal;
131#if 0 /* illegal in C++ */
132 [case(VT_ILLEGAL)] _VARIANT_BOOL bool;
133#endif
134 [case(VT_I4)] long lVal;
135 [case(VT_UI4)] ULONG ulVal;
136 [case(VT_R4)] float fltVal;
137 [case(VT_ERROR)] SCODE scode;
138 [case(VT_I8)] LARGE_INTEGER hVal;
139 [case(VT_UI8)] ULARGE_INTEGER uhVal;
140 [case(VT_R8)] double dblVal;
141 [case(VT_CY)] CY cyVal;
142 [case(VT_DATE)] DATE date;
143 [case(VT_FILETIME)] FILETIME filetime;
144 [case(VT_CLSID)] CLSID *puuid;
145 [case(VT_BLOB, VT_BLOB_OBJECT)] BLOB blob;
146 [case(VT_CF)] CLIPDATA *pclipdata;
147 [case(VT_STREAM, VT_STREAMED_OBJECT)] IStream *pStream;
148 [case(VT_STORAGE, VT_STORED_OBJECT)] IStorage *pStorage;
149 [case(VT_BSTR)] BSTR bstrVal;
150 [case(VT_BSTR_BLOB)] BSTRBLOB bstrblobVal;
151 [case(VT_LPSTR)] LPSTR pszVal;
152 [case(VT_LPWSTR)] LPWSTR pwszVal;
153 [case(VT_UI1|VT_VECTOR)] CAUB caub;
154 [case(VT_I2|VT_VECTOR)] CAI cai;
155 [case(VT_UI2|VT_VECTOR)] CAUI caui;
156 [case(VT_BOOL|VT_VECTOR)] CABOOL cabool;
157 [case(VT_I4|VT_VECTOR)] CAL cal;
158 [case(VT_UI4|VT_VECTOR)] CAUL caul;
159 [case(VT_R4|VT_VECTOR)] CAFLT caflt;
160 [case(VT_ERROR|VT_VECTOR)] CASCODE cascode;
161 [case(VT_I8|VT_VECTOR)] CAH cah;
162 [case(VT_UI8|VT_VECTOR)] CAUH cauh;
163 [case(VT_R8|VT_VECTOR)] CADBL cadbl;
164 [case(VT_CY|VT_VECTOR)] CACY cacy;
165 [case(VT_DATE|VT_VECTOR)] CADATE cadate;
166 [case(VT_FILETIME|VT_VECTOR)] CAFILETIME cafiletime;
167 [case(VT_CLSID|VT_VECTOR)] CACLSID cauuid;
168 [case(VT_CF|VT_VECTOR)] CACLIPDATA caclipdata;
169 [case(VT_BSTR|VT_VECTOR)] CABSTR cabstr;
170 [case(VT_BSTR_BLOB|VT_VECTOR)] CABSTRBLOB cabstrblob;
171 [case(VT_LPSTR|VT_VECTOR)] CALPSTR calpstr;
172 [case(VT_LPWSTR|VT_VECTOR)] CALPWSTR calpwstr;
173 [case(VT_VARIANT|VT_VECTOR)] CAPROPVARIANT capropvar;
174 [case(VT_ARRAY|VT_I1,
175 VT_ARRAY|VT_UI1,
176 VT_ARRAY|VT_I2,
177 VT_ARRAY|VT_UI2,
178 VT_ARRAY|VT_I4,
179 VT_ARRAY|VT_UI4,
180 VT_ARRAY|VT_INT,
181 VT_ARRAY|VT_UINT,
182 VT_ARRAY|VT_R4,
183 VT_ARRAY|VT_R8,
184 VT_ARRAY|VT_CY,
185 VT_ARRAY|VT_DATE,
186 VT_ARRAY|VT_BSTR,
187 VT_ARRAY|VT_BOOL,
188 VT_ARRAY|VT_DECIMAL,
189 VT_ARRAY|VT_DISPATCH,
190 VT_ARRAY|VT_UNKNOWN,
191 VT_ARRAY|VT_ERROR,
192 VT_ARRAY|VT_VARIANT)] LPSAFEARRAY parray;
193 [case(VT_BYREF|VT_I1)] CHAR *pcVal;
194 [case(VT_BYREF|VT_UI1)] UCHAR *pbVal;
195 [case(VT_BYREF|VT_I2)] SHORT *piVal;
196 [case(VT_BYREF|VT_UI2)] USHORT *puiVal;
197 [case(VT_BYREF|VT_I4)] LONG *plVal;
198 [case(VT_BYREF|VT_UI4)] ULONG *pulVal;
199 [case(VT_BYREF|VT_INT)] INT *pintVal;
200 [case(VT_BYREF|VT_UINT)] UINT *puintVal;
201 [case(VT_BYREF|VT_R4)] FLOAT *pfltVal;
202 [case(VT_BYREF|VT_R8)] DOUBLE *pdblVal;
203 [case(VT_BYREF|VT_BOOL)] VARIANT_BOOL *pboolVal;
204 [case(VT_BYREF|VT_DECIMAL)] DECIMAL *pdecVal;
205 [case(VT_BYREF|VT_ERROR)] SCODE *pscode;
206 [case(VT_BYREF|VT_CY)] CY *pcyVal;
207 [case(VT_BYREF|VT_DATE)] DATE *pdate;
208 [case(VT_BYREF|VT_BSTR)] BSTR *pbstrVal;
209 [case(VT_BYREF|VT_UNKNOWN)] IUnknown **ppunkVal;
210 [case(VT_BYREF|VT_DISPATCH)] IDispatch **ppdispVal;
211 [case(VT_BYREF|VT_ARRAY)] LPSAFEARRAY *pparray;
212 [case(VT_BYREF|VT_VARIANT)] PROPVARIANT *pvarVal;
213 } DUMMYUNIONNAME;
214 };
215
216 typedef struct tagPROPVARIANT *LPPROPVARIANT;
217
218 cpp_quote("#define REFPROPVARIANT const PROPVARIANT *")
219
220 cpp_quote("#define PIDDI_THUMBNAIL 0x00000002L /* VT_BLOB */")
221 cpp_quote("")
222 cpp_quote("#define PIDSI_TITLE 0x00000002L /* VT_LPSTR */")
223 cpp_quote("#define PIDSI_SUBJECT 0x00000003L /* VT_LPSTR */")
224 cpp_quote("#define PIDSI_AUTHOR 0x00000004L /* VT_LPSTR */")
225 cpp_quote("#define PIDSI_KEYWORDS 0x00000005L /* VT_LPSTR */")
226 cpp_quote("#define PIDSI_COMMENTS 0x00000006L /* VT_LPSTR */")
227 cpp_quote("#define PIDSI_TEMPLATE 0x00000007L /* VT_LPSTR */")
228 cpp_quote("#define PIDSI_LASTAUTHOR 0x00000008L /* VT_LPSTR */")
229 cpp_quote("#define PIDSI_REVNUMBER 0x00000009L /* VT_LPSTR */")
230 cpp_quote("#define PIDSI_EDITTIME 0x0000000AL /* VT_FILETIME (UTC) */")
231 cpp_quote("#define PIDSI_LASTPRINTED 0x0000000BL /* VT_FILETIME (UTC) */")
232 cpp_quote("#define PIDSI_CREATE_DTM 0x0000000CL /* VT_FILETIME (UTC) */")
233 cpp_quote("#define PIDSI_LASTSAVE_DTM 0x0000000DL /* VT_FILETIME (UTC) */")
234 cpp_quote("#define PIDSI_PAGECOUNT 0x0000000EL /* VT_I4 */")
235 cpp_quote("#define PIDSI_WORDCOUNT 0x0000000FL /* VT_I4 */")
236 cpp_quote("#define PIDSI_CHARCOUNT 0x00000010L /* VT_I4 */")
237 cpp_quote("#define PIDSI_THUMBNAIL 0x00000011L /* VT_CF */")
238 cpp_quote("#define PIDSI_APPNAME 0x00000012L /* VT_LPSTR */")
239 cpp_quote("#define PIDSI_DOC_SECURITY 0x00000013L /* VT_I4 */")
240 cpp_quote("")
241 cpp_quote("#define PIDDSI_CATEGORY 0x00000002L /* VT_LPSTR */")
242 cpp_quote("#define PIDDSI_PRESFORMAT 0x00000003L /* VT_LPSTR */")
243 cpp_quote("#define PIDDSI_BYTECOUNT 0x00000004L /* VT_I4 */")
244 cpp_quote("#define PIDDSI_LINECOUNT 0x00000005L /* VT_I4 */")
245 cpp_quote("#define PIDDSI_PARCOUNT 0x00000006L /* VT_I4 */")
246 cpp_quote("#define PIDDSI_SLIDECOUNT 0x00000007L /* VT_I4 */")
247 cpp_quote("#define PIDDSI_NOTECOUNT 0x00000008L /* VT_I4 */")
248 cpp_quote("#define PIDDSI_HIDDENCOUNT 0x00000009L /* VT_I4 */")
249 cpp_quote("#define PIDDSI_MMCLIPCOUNT 0x0000000AL /* VT_I4 */")
250 cpp_quote("#define PIDDSI_SCALE 0x0000000BL /* VT_BOOL */")
251 cpp_quote("#define PIDDSI_HEADINGPAIR 0x0000000CL /* VT_VARIANT|VT_VECTOR */")
252 cpp_quote("#define PIDDSI_DOCPARTS 0x0000000DL /* VT_LPSTR|VT_VECTOR */")
253 cpp_quote("#define PIDDSI_MANAGER 0x0000000EL /* VT_LPSTR */")
254 cpp_quote("#define PIDDSI_COMPANY 0x0000000FL /* VT_LPSTR */")
255 cpp_quote("#define PIDDSI_LINKSDIRTY 0x00000010L /* VT_B0OL */")
256
257 const ULONG PRSPEC_INVALID = 0xffffffff;
258 const ULONG PRSPEC_LPWSTR = 0;
259 const ULONG PRSPEC_PROPID = 1;
260
261 typedef struct tagPROPSPEC {
262 ULONG ulKind;
263 [switch_is(ulKind)] union {
264 [case(PRSPEC_PROPID)] PROPID propid;
265 [case(PRSPEC_LPWSTR)] LPOLESTR lpwstr;
266 [default] ;
267 } DUMMYUNIONNAME;
268 } PROPSPEC;
269
270 typedef struct tagSTATPROPSTG {
271 LPOLESTR lpwstrName;
272 PROPID propid;
273 VARTYPE vt;
274 } STATPROPSTG;
275
276 cpp_quote("/* Macros for dwOSVersion member of STATPROPSETSTG */")
277 cpp_quote("#define PROPSETHDR_OSVER_KIND(dwOSVer) HIWORD((dwOSVer))")
278 cpp_quote("#define PROPSETHDR_OSVER_MAJOR(dwOSVer) LOBYTE(LOWORD((dwOSVer)))")
279 cpp_quote("#define PROPSETHDR_OSVER_MINOR(dwOSVer) HIBYTE(LOWORD((dwOSVer)))")
280 cpp_quote("#define PROPSETHDR_OSVERSION_UNKNOWN 0xffffffff")
281
282 typedef struct tagSTATPROPSETSTG {
283 FMTID fmtid;
284 CLSID clsid;
285 DWORD grfFlags;
286 FILETIME mtime;
287 FILETIME ctime;
288 FILETIME atime;
289 DWORD dwOSVersion;
290 } STATPROPSETSTG;
291
292 HRESULT ReadMultiple(
293 [in] ULONG cpspec,
294 [in, size_is(cpspec)] const PROPSPEC rgpspec[],
295 [out, size_is(cpspec)] PROPVARIANT rgpropvar[]);
296
297 HRESULT WriteMultiple(
298 [in] ULONG cpspec,
299 [in, size_is(cpspec)] const PROPSPEC rgpspec[],
300 [in, size_is(cpspec)] const PROPVARIANT rgpropvar[],
301 [in] PROPID propidNameFirst);
302
303 HRESULT DeleteMultiple(
304 [in] ULONG cpspec,
305 [in, size_is(cpspec)] const PROPSPEC rgpspec[]);
306
307 HRESULT ReadPropertyNames(
308 [in] ULONG cpropid,
309 [in, size_is(cpropid)] const PROPID rgpropid[],
310 [out, size_is(cpropid)] LPOLESTR rglpwstrName[]);
311
312 HRESULT WritePropertyNames(
313 [in] ULONG cpropid,
314 [in, size_is(cpropid)] const PROPID rgpropid[],
315 [in, size_is(cpropid)] const LPOLESTR rglpwstrName[]);
316
317 HRESULT DeletePropertyNames(
318 [in] ULONG cpropid,
319 [in, size_is(cpropid)] const PROPID rgpropid[]);
320
321 HRESULT Commit(
322 [in] DWORD grfCommitFlags);
323
324 HRESULT Revert();
325
326 HRESULT Enum(
327 [out] IEnumSTATPROPSTG **ppenum);
328
329 HRESULT SetTimes(
330 [in] const FILETIME *pctime,
331 [in] const FILETIME *patime,
332 [in] const FILETIME *pmtime);
333
334 HRESULT SetClass(
335 [in] REFCLSID clsid);
336
337 HRESULT Stat(
338 [out] STATPROPSETSTG *statpsstg);
339}
340
341[
342 object,
343 uuid(0000013A-0000-0000-C000-000000000046),
344 pointer_default(unique)
345]
346interface IPropertySetStorage : IUnknown
347{
348 typedef [unique] IPropertySetStorage *LPPROPERTYSETSTORAGE;
349
350 HRESULT Create(
351 [in] REFFMTID rfmtid,
352 [in, unique] const CLSID *pclsid,
353 [in] DWORD grfFlags,
354 [in] DWORD grfMode,
355 [out] IPropertyStorage **ppprstg);
356
357 HRESULT Open(
358 [in] REFFMTID rfmtid,
359 [in] DWORD grfMode,
360 [out] IPropertyStorage **ppprstg);
361
362 HRESULT Delete(
363 [in] REFFMTID rfmtid);
364
365 HRESULT Enum(
366 [out] IEnumSTATPROPSETSTG **ppenum);
367}
368
369[
370 object,
371 uuid(00000139-0000-0000-C000-000000000046),
372 pointer_default(unique)
373]
374interface IEnumSTATPROPSTG : IUnknown
375{
376 typedef [unique] IEnumSTATPROPSTG *LPENUMSTATPROPSTG;
377
378 [local]
379 HRESULT Next(
380 [in] ULONG celt,
381 [out, size_is(celt), length_is(*pceltFetched)]
382 STATPROPSTG *rgelt,
383 [out] ULONG *pceltFetched);
384
385 [call_as(Next)]
386 HRESULT RemoteNext(
387 [in] ULONG celt,
388 [out, size_is(celt), length_is(*pceltFetched)]
389 STATPROPSTG *rgelt,
390 [out] ULONG *pceltFetched);
391
392 HRESULT Skip(
393 [in] ULONG celt);
394
395 HRESULT Reset();
396
397 HRESULT Clone(
398 [out] IEnumSTATPROPSTG **ppenum);
399}
400
401[
402 object,
403 uuid(0000013B-0000-0000-C000-000000000046),
404 pointer_default(unique)
405]
406interface IEnumSTATPROPSETSTG : IUnknown
407{
408 typedef [unique] IEnumSTATPROPSETSTG *LPENUMSTATPROPSETSTG;
409
410 [local]
411 HRESULT Next(
412 [in] ULONG celt,
413 [out, size_is(celt), length_is(*pceltFetched)]
414 STATPROPSETSTG *rgelt,
415 [out] ULONG *pceltFetched);
416
417 [call_as(Next)]
418 HRESULT RemoteNext(
419 [in] ULONG celt,
420 [out, size_is(celt), length_is(*pceltFetched)]
421 STATPROPSETSTG *rgelt,
422 [out] ULONG *pceltFetched);
423
424 HRESULT Skip(
425 [in] ULONG celt);
426
427 HRESULT Reset();
428
429 HRESULT Clone(
430 [out] IEnumSTATPROPSETSTG **ppenum);
431}
432
433
434cpp_quote("HRESULT WINAPI FreePropVariantArray(ULONG,PROPVARIANT*);")
435cpp_quote("HRESULT WINAPI PropVariantClear(PROPVARIANT*);")
436cpp_quote("HRESULT WINAPI PropVariantCopy(PROPVARIANT*,const PROPVARIANT*);")
437cpp_quote("")
438cpp_quote("#define _PROPVARIANT_INIT_DEFINED_")
439cpp_quote("#define PropVariantInit(p) memset((p), 0, sizeof(PROPVARIANT))")
440cpp_quote("")
441cpp_quote("#ifndef _STGCREATEPROPSTG_DEFINED_")
442cpp_quote("#define _STGCREATEPROPSTG_DEFINED_")
443cpp_quote("HRESULT WINAPI StgCreatePropStg(IUnknown *, REFFMTID, const CLSID *, DWORD, DWORD, IPropertyStorage **);")
444cpp_quote("HRESULT WINAPI StgOpenPropStg(IUnknown *, REFFMTID, DWORD, DWORD, IPropertyStorage **);")
445cpp_quote("HRESULT WINAPI StgCreatePropSetStg(IStorage *, DWORD, IPropertySetStorage **);")
446cpp_quote("#define CCH_MAX_PROPSTG_NAME 31")
447cpp_quote("HRESULT WINAPI FmtIdToPropStgName(const FMTID *, LPOLESTR);")
448cpp_quote("HRESULT WINAPI PropStgNameToFmtId(const LPOLESTR, FMTID *);")
449cpp_quote("#endif /* _STGCREATEPROPSTG_DEFINED_ */")
450cpp_quote("")
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette