source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/shtypes.idl

Last change on this file was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 10.2 KB
Line 
1cpp_quote("/**")
2cpp_quote(" * This file is part of the mingw-w64 runtime package.")
3cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.")
4cpp_quote(" */")
5cpp_quote("")
6
7import "unknwn.idl";
8import "wtypes.idl";
9
10cpp_quote("")
11cpp_quote("#ifndef DUMMYUNIONNAME")
12cpp_quote("#ifdef NONAMELESSUNION")
13cpp_quote("#define DUMMYUNIONNAME u")
14cpp_quote("#define DUMMYUNIONNAME2 u2")
15cpp_quote("#define DUMMYUNIONNAME3 u3")
16cpp_quote("#define DUMMYUNIONNAME4 u4")
17cpp_quote("#define DUMMYUNIONNAME5 u5")
18cpp_quote("#else")
19cpp_quote("#define DUMMYUNIONNAME")
20cpp_quote("#define DUMMYUNIONNAME2")
21cpp_quote("#define DUMMYUNIONNAME3")
22cpp_quote("#define DUMMYUNIONNAME4")
23cpp_quote("#define DUMMYUNIONNAME5")
24cpp_quote("#endif")
25cpp_quote("#endif")
26
27cpp_quote("")
28cpp_quote("#include <pshpack1.h>")
29typedef struct _SHITEMID {
30 USHORT cb;
31 BYTE abID[];
32} SHITEMID;
33cpp_quote("#include <poppack.h>")
34
35cpp_quote("")
36cpp_quote("#if (defined(_X86_) && !defined(__x86_64))")
37cpp_quote("#undef __unaligned")
38cpp_quote("#define __unaligned")
39cpp_quote("#endif")
40
41cpp_quote("")
42typedef SHITEMID *LPSHITEMID;
43typedef const SHITEMID *LPCSHITEMID;
44
45cpp_quote("")
46cpp_quote("#include <pshpack1.h>")
47typedef struct _ITEMIDLIST {
48 SHITEMID mkid;
49} ITEMIDLIST;
50
51cpp_quote("")
52cpp_quote("#if defined(STRICT_TYPED_ITEMIDS) && defined(__cplusplus)")
53cpp_quote(" typedef struct _ITEMIDLIST_RELATIVE : ITEMIDLIST { } ITEMIDLIST_RELATIVE;")
54cpp_quote(" typedef struct _ITEMID_CHILD : ITEMIDLIST_RELATIVE { } ITEMID_CHILD;")
55cpp_quote(" typedef struct _ITEMIDLIST_ABSOLUTE : ITEMIDLIST_RELATIVE { } ITEMIDLIST_ABSOLUTE;")
56cpp_quote("#else")
57typedef ITEMIDLIST ITEMIDLIST_RELATIVE;
58typedef ITEMIDLIST ITEMID_CHILD;
59typedef ITEMIDLIST ITEMIDLIST_ABSOLUTE;
60cpp_quote("#endif")
61cpp_quote("#include <poppack.h>")
62
63cpp_quote("")
64typedef [unique] BYTE_BLOB *wirePIDL;
65typedef [wire_marshal (wirePIDL)] ITEMIDLIST *LPITEMIDLIST;
66typedef [wire_marshal (wirePIDL)] const ITEMIDLIST *LPCITEMIDLIST;
67cpp_quote("#if defined(STRICT_TYPED_ITEMIDS) && defined(__cplusplus)")
68typedef [wire_marshal (wirePIDL)] ITEMIDLIST_ABSOLUTE *PIDLIST_ABSOLUTE;
69typedef [wire_marshal (wirePIDL)] const ITEMIDLIST_ABSOLUTE *PCIDLIST_ABSOLUTE;
70typedef [wire_marshal (wirePIDL)] const ITEMIDLIST_ABSOLUTE *PCUIDLIST_ABSOLUTE;
71typedef [wire_marshal (wirePIDL)] ITEMIDLIST_RELATIVE *PIDLIST_RELATIVE;
72typedef [wire_marshal (wirePIDL)] const ITEMIDLIST_RELATIVE *PCIDLIST_RELATIVE;
73typedef [wire_marshal (wirePIDL)] ITEMIDLIST_RELATIVE *PUIDLIST_RELATIVE;
74typedef [wire_marshal (wirePIDL)] const ITEMIDLIST_RELATIVE *PCUIDLIST_RELATIVE;
75typedef [wire_marshal (wirePIDL)] ITEMID_CHILD *PITEMID_CHILD;
76typedef [wire_marshal (wirePIDL)] const ITEMID_CHILD *PCITEMID_CHILD;
77typedef [wire_marshal (wirePIDL)] ITEMID_CHILD *PUITEMID_CHILD;
78typedef [wire_marshal (wirePIDL)] const ITEMID_CHILD *PCUITEMID_CHILD;
79typedef PCUITEMID_CHILD const *PCUITEMID_CHILD_ARRAY;
80typedef PCUIDLIST_RELATIVE const *PCUIDLIST_RELATIVE_ARRAY;
81typedef PCIDLIST_ABSOLUTE const *PCIDLIST_ABSOLUTE_ARRAY;
82typedef PCUIDLIST_ABSOLUTE const *PCUIDLIST_ABSOLUTE_ARRAY;
83cpp_quote("#else")
84cpp_quote("#define PIDLIST_ABSOLUTE LPITEMIDLIST")
85cpp_quote("#define PCIDLIST_ABSOLUTE LPCITEMIDLIST")
86cpp_quote("#define PCUIDLIST_ABSOLUTE LPCITEMIDLIST")
87cpp_quote("#define PIDLIST_RELATIVE LPITEMIDLIST")
88cpp_quote("#define PCIDLIST_RELATIVE LPCITEMIDLIST")
89cpp_quote("#define PUIDLIST_RELATIVE LPITEMIDLIST")
90cpp_quote("#define PCUIDLIST_RELATIVE LPCITEMIDLIST")
91cpp_quote("#define PITEMID_CHILD LPITEMIDLIST")
92cpp_quote("#define PCITEMID_CHILD LPCITEMIDLIST")
93cpp_quote("#define PUITEMID_CHILD LPITEMIDLIST")
94cpp_quote("#define PCUITEMID_CHILD LPCITEMIDLIST")
95cpp_quote("#define PCUITEMID_CHILD_ARRAY LPCITEMIDLIST *")
96cpp_quote("#define PCUIDLIST_RELATIVE_ARRAY LPCITEMIDLIST *")
97cpp_quote("#define PCIDLIST_ABSOLUTE_ARRAY LPCITEMIDLIST *")
98cpp_quote("#define PCUIDLIST_ABSOLUTE_ARRAY LPCITEMIDLIST *")
99cpp_quote("#endif")
100
101#ifndef MAX_PATH
102#define MAX_PATH 260
103#endif
104
105cpp_quote("")
106cpp_quote("#if 0")
107typedef struct _WIN32_FIND_DATAA {
108 DWORD dwFileAttributes;
109 FILETIME ftCreationTime;
110 FILETIME ftLastAccessTime;
111 FILETIME ftLastWriteTime;
112 DWORD nFileSizeHigh;
113 DWORD nFileSizeLow;
114 DWORD dwReserved0;
115 DWORD dwReserved1;
116 CHAR cFileName[MAX_PATH];
117 CHAR cAlternateFileName[14];
118} WIN32_FIND_DATAA,*PWIN32_FIND_DATAA,*LPWIN32_FIND_DATAA;
119
120cpp_quote("")
121typedef struct _WIN32_FIND_DATAW {
122 DWORD dwFileAttributes;
123 FILETIME ftCreationTime;
124 FILETIME ftLastAccessTime;
125 FILETIME ftLastWriteTime;
126 DWORD nFileSizeHigh;
127 DWORD nFileSizeLow;
128 DWORD dwReserved0;
129 DWORD dwReserved1;
130 WCHAR cFileName[MAX_PATH];
131 WCHAR cAlternateFileName[14];
132} WIN32_FIND_DATAW,*PWIN32_FIND_DATAW,*LPWIN32_FIND_DATAW;
133cpp_quote("#endif")
134
135cpp_quote("")
136typedef [v1_enum] enum tagSTRRET_TYPE {
137 STRRET_WSTR = 0x0000,
138 STRRET_OFFSET = 0x0001,
139 STRRET_CSTR = 0x0002
140} STRRET_TYPE;
141
142cpp_quote("")
143cpp_quote("#include <pshpack8.h>")
144typedef struct _STRRET {
145 UINT uType;
146 [switch_type (UINT), switch_is (uType)] union {
147 [case (STRRET_WSTR)][string] LPWSTR pOleStr;
148 [case (STRRET_OFFSET)] UINT uOffset;
149 [case (STRRET_CSTR)] char cStr[MAX_PATH];
150 };
151} STRRET;
152cpp_quote("#include <poppack.h>")
153
154cpp_quote("")
155typedef STRRET *LPSTRRET;
156cpp_quote("")
157cpp_quote("#include <pshpack1.h>")
158typedef struct _SHELLDETAILS {
159 int fmt;
160 int cxChar;
161 STRRET str;
162} SHELLDETAILS,*LPSHELLDETAILS;
163cpp_quote("#include <poppack.h>")
164
165cpp_quote("")
166cpp_quote("#if _WIN32_IE >= _WIN32_IE_IE60SP2")
167typedef [v1_enum] enum tagPERCEIVED {
168 PERCEIVED_TYPE_FIRST = -3,
169 PERCEIVED_TYPE_CUSTOM = -3,
170 PERCEIVED_TYPE_UNSPECIFIED = -2,
171 PERCEIVED_TYPE_FOLDER = -1,
172 PERCEIVED_TYPE_UNKNOWN = 0,
173 PERCEIVED_TYPE_TEXT = 1,
174 PERCEIVED_TYPE_IMAGE = 2,
175 PERCEIVED_TYPE_AUDIO = 3,
176 PERCEIVED_TYPE_VIDEO = 4,
177 PERCEIVED_TYPE_COMPRESSED = 5,
178 PERCEIVED_TYPE_DOCUMENT = 6,
179 PERCEIVED_TYPE_SYSTEM = 7,
180 PERCEIVED_TYPE_APPLICATION = 8,
181 PERCEIVED_TYPE_GAMEMEDIA = 9,
182 PERCEIVED_TYPE_CONTACTS = 10,
183 PERCEIVED_TYPE_LAST = 10
184} PERCEIVED;
185
186cpp_quote("")
187cpp_quote("#define PERCEIVEDFLAG_UNDEFINED 0x0000")
188cpp_quote("#define PERCEIVEDFLAG_SOFTCODED 0x0001")
189cpp_quote("#define PERCEIVEDFLAG_HARDCODED 0x0002")
190cpp_quote("#define PERCEIVEDFLAG_NATIVESUPPORT 0x0004")
191cpp_quote("#define PERCEIVEDFLAG_GDIPLUS 0x0010")
192cpp_quote("#define PERCEIVEDFLAG_WMSDK 0x0020")
193cpp_quote("#define PERCEIVEDFLAG_ZIPFOLDER 0x0040")
194
195cpp_quote("")
196typedef DWORD PERCEIVEDFLAG;
197cpp_quote("#endif")
198
199 cpp_quote("")
200typedef struct _COMDLG_FILTERSPEC {
201 [string] LPCWSTR pszName;
202 [string] LPCWSTR pszSpec;
203} COMDLG_FILTERSPEC;
204
205cpp_quote("")
206typedef GUID KNOWNFOLDERID;
207cpp_quote("")
208cpp_quote("#if 0")
209typedef KNOWNFOLDERID *REFKNOWNFOLDERID;
210cpp_quote("#endif")
211cpp_quote("")
212cpp_quote("#ifdef __cplusplus")
213cpp_quote("#define REFKNOWNFOLDERID const KNOWNFOLDERID &")
214cpp_quote("#else")
215cpp_quote("#define REFKNOWNFOLDERID const KNOWNFOLDERID * __MIDL_CONST")
216cpp_quote("#endif")
217
218cpp_quote("")
219cpp_quote("typedef DWORD KF_REDIRECT_FLAGS;")
220
221cpp_quote("")
222typedef GUID FOLDERTYPEID;
223cpp_quote("")
224cpp_quote("#if 0")
225typedef FOLDERTYPEID *REFFOLDERTYPEID;
226cpp_quote("#endif")
227
228cpp_quote("")
229cpp_quote("#ifdef __cplusplus")
230cpp_quote("#define REFFOLDERTYPEID const FOLDERTYPEID &")
231cpp_quote("#else")
232cpp_quote("#define REFFOLDERTYPEID const FOLDERTYPEID * __MIDL_CONST")
233cpp_quote("#endif")
234
235cpp_quote("")
236typedef GUID TASKOWNERID;
237cpp_quote("")
238cpp_quote("#if 0")
239typedef TASKOWNERID *REFTASKOWNERID;
240cpp_quote("#endif")
241
242cpp_quote("")
243cpp_quote("#ifdef __cplusplus")
244cpp_quote("#define REFTASKOWNERID const TASKOWNERID &")
245cpp_quote("#else")
246cpp_quote("#define REFTASKOWNERID const TASKOWNERID * __MIDL_CONST")
247cpp_quote("#endif")
248
249cpp_quote("")
250typedef GUID ELEMENTID;
251cpp_quote("")
252cpp_quote("#if 0")
253typedef ELEMENTID *REFELEMENTID;
254cpp_quote("#endif")
255
256cpp_quote("")
257cpp_quote("#ifdef __cplusplus")
258cpp_quote("#define REFELEMENTID const ELEMENTID &")
259cpp_quote("#else")
260cpp_quote("#define REFELEMENTID const ELEMENTID * __MIDL_CONST")
261cpp_quote("#endif")
262
263cpp_quote("")
264cpp_quote("#ifndef LF_FACESIZE")
265
266#define LF_FACESIZE 32
267
268typedef struct tagLOGFONTA {
269 LONG lfHeight;
270 LONG lfWidth;
271 LONG lfEscapement;
272 LONG lfOrientation;
273 LONG lfWeight;
274 BYTE lfItalic;
275 BYTE lfUnderline;
276 BYTE lfStrikeOut;
277 BYTE lfCharSet;
278 BYTE lfOutPrecision;
279 BYTE lfClipPrecision;
280 BYTE lfQuality;
281 BYTE lfPitchAndFamily;
282 CHAR lfFaceName[LF_FACESIZE];
283} LOGFONTA;
284
285cpp_quote("")
286typedef struct tagLOGFONTW {
287 LONG lfHeight;
288 LONG lfWidth;
289 LONG lfEscapement;
290 LONG lfOrientation;
291 LONG lfWeight;
292 BYTE lfItalic;
293 BYTE lfUnderline;
294 BYTE lfStrikeOut;
295 BYTE lfCharSet;
296 BYTE lfOutPrecision;
297 BYTE lfClipPrecision;
298 BYTE lfQuality;
299 BYTE lfPitchAndFamily;
300 WCHAR lfFaceName[LF_FACESIZE];
301} LOGFONTW;
302
303cpp_quote("")
304#ifdef UNICODE
305typedef LOGFONTW LOGFONT;
306#else
307typedef LOGFONTA LOGFONT;
308#endif
309cpp_quote("#endif")
310
311cpp_quote("")
312typedef [v1_enum] enum tagSHCOLSTATE {
313 SHCOLSTATE_DEFAULT = 0x00000000,
314 SHCOLSTATE_TYPE_STR = 0x00000001,
315 SHCOLSTATE_TYPE_INT = 0x00000002,
316 SHCOLSTATE_TYPE_DATE = 0x00000003,
317 SHCOLSTATE_TYPEMASK = 0x0000000f,
318 SHCOLSTATE_ONBYDEFAULT = 0x00000010,
319 SHCOLSTATE_SLOW = 0x00000020,
320 SHCOLSTATE_EXTENDED = 0x00000040,
321 SHCOLSTATE_SECONDARYUI = 0x00000080,
322 SHCOLSTATE_HIDDEN = 0x00000100,
323 SHCOLSTATE_PREFER_VARCMP = 0x00000200,
324 SHCOLSTATE_PREFER_FMTCMP = 0x00000400,
325 SHCOLSTATE_NOSORTBYFOLDERNESS =
326 0x00000800,
327 SHCOLSTATE_VIEWONLY = 0x00010000,
328 SHCOLSTATE_BATCHREAD = 0x00020000,
329 SHCOLSTATE_NO_GROUPBY = 0x00040000,
330 SHCOLSTATE_FIXED_WIDTH = 0x00001000,
331 SHCOLSTATE_NODPISCALE = 0x00002000,
332 SHCOLSTATE_FIXED_RATIO = 0x00004000,
333 SHCOLSTATE_DISPLAYMASK = 0x0000f000
334} SHCOLSTATE;
335
336cpp_quote("")
337typedef DWORD SHCOLSTATEF;
338typedef PROPERTYKEY SHCOLUMNID;
339typedef const SHCOLUMNID *LPCSHCOLUMNID;
340
341cpp_quote("")
342typedef [v1_enum] enum DEVICE_SCALE_FACTOR {
343 DEVICE_SCALE_FACTOR_INVALID = 0,
344 SCALE_100_PERCENT = 100,
345 SCALE_120_PERCENT = 120,
346 SCALE_125_PERCENT = 125,
347 SCALE_140_PERCENT = 140,
348 SCALE_150_PERCENT = 150,
349 SCALE_160_PERCENT = 160,
350 SCALE_175_PERCENT = 175,
351 SCALE_180_PERCENT = 180,
352 SCALE_200_PERCENT = 200,
353 SCALE_225_PERCENT = 225,
354 SCALE_250_PERCENT = 250,
355 SCALE_300_PERCENT = 300,
356 SCALE_350_PERCENT = 350,
357 SCALE_400_PERCENT = 400,
358 SCALE_450_PERCENT = 450,
359 SCALE_500_PERCENT = 500
360} DEVICE_SCALE_FACTOR;
Note: See TracBrowser for help on using the repository browser.