37cpp_quote("#ifdef PID_CODEPAGE")
38cpp_quote("#undef PID_CODEPAGE")
41cpp_quote("#ifdef PID_SECURITY")
42cpp_quote("#undef PID_SECURITY")
45/******************** Property Storage ********************/
47interface IEnumSTATPROPSTG;
48interface IEnumSTATPROPSETSTG;
52 uuid(00000138-0000-0000-C000-000000000046),
53 pointer_default(unique)
55interface IPropertyStorage : IUnknown
57 typedef [unique] IPropertyStorage *LPPROPERTYSTORAGE;
59 const DWORD PROPSETFLAG_DEFAULT = 0;
60 const DWORD PROPSETFLAG_NONSIMPLE = 1;
61 const DWORD PROPSETFLAG_ANSI = 2;
62 const DWORD PROPSETFLAG_UNBUFFERED = 4;
63 const DWORD PROPSETFLAG_CASE_SENSITIVE = 8;
65 const DWORD PROPSET_BEHAVIOR_CASE_SENSITIVE = 1;
67 const PROPID PID_DICTIONARY = 0x00000000;
68 const PROPID PID_CODEPAGE = 0x00000001;
69 const PROPID PID_FIRST_USABLE = 0x00000002;
70 const PROPID PID_FIRST_NAME_DEFAULT = 0x00000fff;
71 const PROPID PID_LOCALE = 0x80000000;
72 const PROPID PID_MODIFY_TIME = 0x80000001;
73 const PROPID PID_SECURITY = 0x80000002;
74 const PROPID PID_BEHAVIOR = 0x80000003;
75 const PROPID PID_ILLEGAL = 0xffffffff;
76 const PROPID PID_MIN_READONLY = 0x80000000;
77 const PROPID PID_MAX_READONLY = 0xbfffffff;
79 typedef struct tagPROPVARIANT PROPVARIANT;
81#define TYPEDEF_CA(type, name) \
82 typedef struct tag##name { \
88 TYPEDEF_CA(unsigned char, CAUB);
89 TYPEDEF_CA(short, CAI);
90 TYPEDEF_CA(USHORT, CAUI);
91 TYPEDEF_CA(long, CAL);
92 TYPEDEF_CA(ULONG, CAUL);
93 TYPEDEF_CA(float, CAFLT);
94 TYPEDEF_CA(double, CADBL);
96 TYPEDEF_CA(DATE, CADATE);
97 TYPEDEF_CA(BSTR, CABSTR);
98 TYPEDEF_CA(BSTRBLOB, CABSTRBLOB);
99 TYPEDEF_CA(VARIANT_BOOL, CABOOL);
100 TYPEDEF_CA(SCODE, CASCODE);
101 TYPEDEF_CA(PROPVARIANT, CAPROPVARIANT);
102 TYPEDEF_CA(LARGE_INTEGER, CAH);
103 TYPEDEF_CA(ULARGE_INTEGER, CAUH);
104 TYPEDEF_CA(LPSTR, CALPSTR);
105 TYPEDEF_CA(LPWSTR, CALPWSTR);
106 TYPEDEF_CA(FILETIME, CAFILETIME);
107 TYPEDEF_CA(CLIPDATA, CACLIPDATA);
108 TYPEDEF_CA(CLSID, CACLSID);
110 struct tagPROPVARIANT {
115 [switch_is(vt & 0x1fff)] union {
116 [case(VT_EMPTY, VT_NULL)] ;
117 [case(VT_I1)] char cVal;
118 [case(VT_UI1)] UCHAR bVal;
119 [case(VT_I2)] short iVal;
120 [case(VT_UI2)] USHORT uiVal;
121 [case(VT_BOOL)] VARIANT_BOOL boolVal;
122#if 0 /* illegal in C++ */
123 [case(VT_ILLEGAL)] _VARIANT_BOOL bool;
125 [case(VT_I4)] long lVal;
126 [case(VT_UI4)] ULONG ulVal;
127 [case(VT_R4)] float fltVal;
128 [case(VT_ERROR)] SCODE scode;
129 [case(VT_I8)] LARGE_INTEGER hVal;
130 [case(VT_UI8)] ULARGE_INTEGER uhVal;
131 [case(VT_R8)] double dblVal;
132 [case(VT_CY)] CY cyVal;
133 [case(VT_DATE)] DATE date;
134 [case(VT_FILETIME)] FILETIME filetime;
135 [case(VT_CLSID)] CLSID *puuid;
136 [case(VT_BLOB, VT_BLOB_OBJECT)] BLOB blob;
137 [case(VT_CF)] CLIPDATA *pclipdata;
138 [case(VT_STREAM, VT_STREAMED_OBJECT)] IStream *pStream;
139 [case(VT_STORAGE, VT_STORED_OBJECT)] IStorage *pStorage;
140 [case(VT_BSTR)] BSTR bstrVal;
141 [case(VT_BSTR_BLOB)] BSTRBLOB bstrblobVal;
142 [case(VT_LPSTR)] LPSTR pszVal;
143 [case(VT_LPWSTR)] LPWSTR pwszVal;
144 [case(VT_UNKNOWN)] IUnknown *punkVal;
145 [case(VT_DISPATCH)] IDispatch *pdispVal;
146 [case(VT_UI1|VT_VECTOR)] CAUB caub;
147 [case(VT_I2|VT_VECTOR)] CAI cai;
148 [case(VT_UI2|VT_VECTOR)] CAUI caui;
149 [case(VT_BOOL|VT_VECTOR)] CABOOL cabool;
150 [case(VT_I4|VT_VECTOR)] CAL cal;
151 [case(VT_UI4|VT_VECTOR)] CAUL caul;
152 [case(VT_R4|VT_VECTOR)] CAFLT caflt;
153 [case(VT_ERROR|VT_VECTOR)] CASCODE cascode;
154 [case(VT_I8|VT_VECTOR)] CAH cah;
155 [case(VT_UI8|VT_VECTOR)] CAUH cauh;
156 [case(VT_R8|VT_VECTOR)] CADBL cadbl;
157 [case(VT_CY|VT_VECTOR)] CACY cacy;
158 [case(VT_DATE|VT_VECTOR)] CADATE cadate;
159 [case(VT_FILETIME|VT_VECTOR)] CAFILETIME cafiletime;
160 [case(VT_CLSID|VT_VECTOR)] CACLSID cauuid;
161 [case(VT_CF|VT_VECTOR)] CACLIPDATA caclipdata;
162 [case(VT_BSTR|VT_VECTOR)] CABSTR cabstr;
163 [case(VT_BSTR_BLOB|VT_VECTOR)] CABSTRBLOB cabstrblob;
164 [case(VT_LPSTR|VT_VECTOR)] CALPSTR calpstr;
165 [case(VT_LPWSTR|VT_VECTOR)] CALPWSTR calpwstr;
166 [case(VT_VARIANT|VT_VECTOR)] CAPROPVARIANT capropvar;
167 [case(VT_ARRAY|VT_I1,
182 VT_ARRAY|VT_DISPATCH,
185 VT_ARRAY|VT_VARIANT)] LPSAFEARRAY parray;
186 [case(VT_BYREF|VT_I1)] CHAR *pcVal;
187 [case(VT_BYREF|VT_UI1)] UCHAR *pbVal;
188 [case(VT_BYREF|VT_I2)] SHORT *piVal;
189 [case(VT_BYREF|VT_UI2)] USHORT *puiVal;
190 [case(VT_BYREF|VT_I4)] LONG *plVal;
191 [case(VT_BYREF|VT_UI4)] ULONG *pulVal;
192 [case(VT_BYREF|VT_INT)] INT *pintVal;
193 [case(VT_BYREF|VT_UINT)] UINT *puintVal;
194 [case(VT_BYREF|VT_R4)] FLOAT *pfltVal;
195 [case(VT_BYREF|VT_R8)] DOUBLE *pdblVal;
196 [case(VT_BYREF|VT_BOOL)] VARIANT_BOOL *pboolVal;
197 [case(VT_BYREF|VT_DECIMAL)] DECIMAL *pdecVal;
198 [case(VT_BYREF|VT_ERROR)] SCODE *pscode;
199 [case(VT_BYREF|VT_CY)] CY *pcyVal;
200 [case(VT_BYREF|VT_DATE)] DATE *pdate;
201 [case(VT_BYREF|VT_BSTR)] BSTR *pbstrVal;
202 [case(VT_BYREF|VT_UNKNOWN)] IUnknown **ppunkVal;
203 [case(VT_BYREF|VT_DISPATCH)] IDispatch **ppdispVal;
204 [case(VT_BYREF|VT_ARRAY)] LPSAFEARRAY *pparray;
205 [case(VT_BYREF|VT_VARIANT)] PROPVARIANT *pvarVal;
209 typedef struct tagPROPVARIANT *LPPROPVARIANT;
212 typedef const PROPVARIANT * REFPROPVARIANT;
214 cpp_quote("#ifndef _REFPROPVARIANT_DEFINED")
215 cpp_quote("#define _REFPROPVARIANT_DEFINED")
216 cpp_quote("#ifdef __cplusplus")
217 cpp_quote("#define REFPROPVARIANT const PROPVARIANT &")
219 cpp_quote("#define REFPROPVARIANT const PROPVARIANT * __MIDL_CONST")
223 cpp_quote("#define PIDDI_THUMBNAIL 0x00000002L
")
225 cpp_quote("#define PIDSI_TITLE 0x00000002L
")
226 cpp_quote("#define PIDSI_SUBJECT 0x00000003L
")
227 cpp_quote("#define PIDSI_AUTHOR 0x00000004L
")
228 cpp_quote("#define PIDSI_KEYWORDS 0x00000005L
")
229 cpp_quote("#define PIDSI_COMMENTS 0x00000006L
")
230 cpp_quote("#define PIDSI_TEMPLATE 0x00000007L
")
231 cpp_quote("#define PIDSI_LASTAUTHOR 0x00000008L
")
232 cpp_quote("#define PIDSI_REVNUMBER 0x00000009L
")
233 cpp_quote("#define PIDSI_EDITTIME 0x0000000AL
")
234 cpp_quote("#define PIDSI_LASTPRINTED 0x0000000BL
")
235 cpp_quote("#define PIDSI_CREATE_DTM 0x0000000CL
")
236 cpp_quote("#define PIDSI_LASTSAVE_DTM 0x0000000DL
")
237 cpp_quote("#define PIDSI_PAGECOUNT 0x0000000EL
")
238 cpp_quote("#define PIDSI_WORDCOUNT 0x0000000FL
")
239 cpp_quote("#define PIDSI_CHARCOUNT 0x00000010L
")
240 cpp_quote("#define PIDSI_THUMBNAIL 0x00000011L
")
241 cpp_quote("#define PIDSI_APPNAME 0x00000012L
")
242 cpp_quote("#define PIDSI_DOC_SECURITY 0x00000013L
")
244 cpp_quote("#define PIDDSI_CATEGORY 0x00000002L
")
245 cpp_quote("#define PIDDSI_PRESFORMAT 0x00000003L
")
246 cpp_quote("#define PIDDSI_BYTECOUNT 0x00000004L
")
247 cpp_quote("#define PIDDSI_LINECOUNT 0x00000005L
")
248 cpp_quote("#define PIDDSI_PARCOUNT 0x00000006L
")
249 cpp_quote("#define PIDDSI_SLIDECOUNT 0x00000007L
")
250 cpp_quote("#define PIDDSI_NOTECOUNT 0x00000008L
")
251 cpp_quote("#define PIDDSI_HIDDENCOUNT 0x00000009L
")
252 cpp_quote("#define PIDDSI_MMCLIPCOUNT 0x0000000AL
")
253 cpp_quote("#define PIDDSI_SCALE 0x0000000BL
")
254 cpp_quote("#define PIDDSI_HEADINGPAIR 0x0000000CL
")
255 cpp_quote("#define PIDDSI_DOCPARTS 0x0000000DL
")
256 cpp_quote("#define PIDDSI_MANAGER 0x0000000EL
")
257 cpp_quote("#define PIDDSI_COMPANY 0x0000000FL
")
258 cpp_quote("#define PIDDSI_LINKSDIRTY 0x00000010L
")
260 const ULONG PRSPEC_INVALID = 0xffffffff;
261 const ULONG PRSPEC_LPWSTR = 0;
262 const ULONG PRSPEC_PROPID = 1;
264 typedef struct tagPROPSPEC {
266 [switch_is(ulKind)] union {
267 [case(PRSPEC_PROPID)] PROPID propid;
268 [case(PRSPEC_LPWSTR)] LPOLESTR lpwstr;
273 typedef struct tagSTATPROPSTG {
280 cpp_quote("#define PROPSETHDR_OSVER_KIND(dwOSVer) HIWORD((dwOSVer))")
281 cpp_quote("#define PROPSETHDR_OSVER_MAJOR(dwOSVer) LOBYTE(LOWORD((dwOSVer)))")
282 cpp_quote("#define PROPSETHDR_OSVER_MINOR(dwOSVer) HIBYTE(LOWORD((dwOSVer)))")
283 cpp_quote("#define PROPSETHDR_OSVERSION_UNKNOWN 0xffffffff")
285 typedef struct tagSTATPROPSETSTG {
295 HRESULT ReadMultiple(
297 [in, size_is(cpspec)] const PROPSPEC rgpspec[],
298 [out, size_is(cpspec)] PROPVARIANT rgpropvar[]);
300 HRESULT WriteMultiple(
302 [in, size_is(cpspec)] const PROPSPEC rgpspec[],
303 [in, size_is(cpspec)] const PROPVARIANT rgpropvar[],
304 [in] PROPID propidNameFirst);
306 HRESULT DeleteMultiple(
308 [in, size_is(cpspec)] const PROPSPEC rgpspec[]);
310 HRESULT ReadPropertyNames(
312 [in, size_is(cpropid)] const PROPID rgpropid[],
313 [out, size_is(cpropid)] LPOLESTR rglpwstrName[]);
315 HRESULT WritePropertyNames(
317 [in, size_is(cpropid)] const PROPID rgpropid[],
318 [in, size_is(cpropid)] const LPOLESTR rglpwstrName[]);
320 HRESULT DeletePropertyNames(
322 [in, size_is(cpropid)] const PROPID rgpropid[]);
325 [in] DWORD grfCommitFlags);
330 [out] IEnumSTATPROPSTG **ppenum);
333 [in] const FILETIME *pctime,
334 [in] const FILETIME *patime,
335 [in] const FILETIME *pmtime);
338 [in] REFCLSID clsid);
341 [out] STATPROPSETSTG *statpsstg);
346 uuid(0000013A-0000-0000-C000-000000000046),
347 pointer_default(unique)
349interface IPropertySetStorage : IUnknown
351 typedef [unique] IPropertySetStorage *LPPROPERTYSETSTORAGE;
354 [in] REFFMTID rfmtid,
355 [in, unique] const CLSID *pclsid,
358 [out] IPropertyStorage **ppprstg);
361 [in] REFFMTID rfmtid,
363 [out] IPropertyStorage **ppprstg);
366 [in] REFFMTID rfmtid);
369 [out] IEnumSTATPROPSETSTG **ppenum);
374 uuid(00000139-0000-0000-C000-000000000046),
375 pointer_default(unique)
377interface IEnumSTATPROPSTG : IUnknown
379 typedef [unique] IEnumSTATPROPSTG *LPENUMSTATPROPSTG;
384 [out, size_is(celt), length_is(*pceltFetched)]
386 [out] ULONG *pceltFetched);
391 [out, size_is(celt), length_is(*pceltFetched)]
393 [out] ULONG *pceltFetched);
401 [out] IEnumSTATPROPSTG **ppenum);
406 uuid(0000013B-0000-0000-C000-000000000046),
407 pointer_default(unique)
409interface IEnumSTATPROPSETSTG : IUnknown
411 typedef [unique] IEnumSTATPROPSETSTG *LPENUMSTATPROPSETSTG;
416 [out, size_is(celt), length_is(*pceltFetched)]
417 STATPROPSETSTG *rgelt,
418 [out] ULONG *pceltFetched);
423 [out, size_is(celt), length_is(*pceltFetched)]
424 STATPROPSETSTG *rgelt,
425 [out] ULONG *pceltFetched);
433 [out] IEnumSTATPROPSETSTG **ppenum);
436typedef struct SERIALIZEDPROPERTYVALUE {
439} SERIALIZEDPROPERTYVALUE;
441cpp_quote("HRESULT WINAPI FreePropVariantArray(ULONG,PROPVARIANT*);")
442cpp_quote("HRESULT WINAPI PropVariantClear(PROPVARIANT*);")
443cpp_quote("HRESULT WINAPI PropVariantCopy(PROPVARIANT*,const PROPVARIANT*);")
445cpp_quote("#define _PROPVARIANT_INIT_DEFINED_")
446cpp_quote("#define PropVariantInit(p) memset((p), 0, sizeof(PROPVARIANT))")
448cpp_quote("#ifndef _STGCREATEPROPSTG_DEFINED_")
449cpp_quote("#define _STGCREATEPROPSTG_DEFINED_")
450cpp_quote("HRESULT WINAPI StgCreatePropStg(IUnknown *, REFFMTID, const CLSID *, DWORD, DWORD, IPropertyStorage **);")
451cpp_quote("HRESULT WINAPI StgOpenPropStg(IUnknown *, REFFMTID, DWORD, DWORD, IPropertyStorage **);")
452cpp_quote("HRESULT WINAPI StgCreatePropSetStg(IStorage *, DWORD, IPropertySetStorage **);")
453cpp_quote("#define CCH_MAX_PROPSTG_NAME 31")
454cpp_quote("HRESULT WINAPI FmtIdToPropStgName(const FMTID *, LPOLESTR);")
455cpp_quote("HRESULT WINAPI PropStgNameToFmtId(const LPOLESTR, FMTID *);")
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const