user32: Propagate the LoadImage flags into the low-level loader functions.
[wine.git] / include / shtypes.idl
blob94b0c61d8b8140dba8c3db705362457127ba4314
1 /*
2 * Type definitions for shell objects
4 * Copyright (C) 1999 Juergen Schmied
5 * Copyright (C) 2003 Alexandre Julliard
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 import "wtypes.idl";
24 cpp_quote("#include <pshpack1.h>")
25 typedef struct
27 WORD cb; /* nr of bytes in this item */
28 BYTE abID[1]; /* first byte in this item */
29 } SHITEMID, *LPSHITEMID;
30 typedef const SHITEMID *LPCSHITEMID;
32 typedef struct _ITEMIDLIST
34 SHITEMID mkid; /* first itemid in list */
35 } ITEMIDLIST,*LPITEMIDLIST;
36 typedef const ITEMIDLIST *LPCITEMIDLIST;
37 typedef LPITEMIDLIST PITEMID_CHILD;
38 typedef const PITEMID_CHILD PCITEMID_CHILD;
39 typedef LPCITEMIDLIST PCUITEMID_CHILD;
40 typedef LPCITEMIDLIST *PCUITEMID_CHILD_ARRAY;
41 typedef LPCITEMIDLIST PCUIDLIST_RELATIVE;
42 typedef LPITEMIDLIST PIDLIST_ABSOLUTE;
43 typedef LPCITEMIDLIST PCIDLIST_ABSOLUTE;
44 cpp_quote("#include <poppack.h>")
46 #ifndef MAX_PATH
47 #define MAX_PATH 260
48 #endif
50 cpp_quote("#if 0")
51 typedef struct { int dummy; } WIN32_FIND_DATAA, WIN32_FIND_DATAW;
52 cpp_quote("#endif")
54 typedef enum tagSTRRET_TYPE
56 STRRET_WSTR = 0,
57 STRRET_OFFSET = 1,
58 STRRET_CSTR = 2
59 } STRRET_TYPE;
61 cpp_quote("#include <pshpack8.h>")
62 typedef struct _STRRET
64 UINT uType; /* STRRET_xxx */
65 [switch_type(UINT), switch_is(uType)] union
67 [case(STRRET_WSTR)][string] LPWSTR pOleStr; /* OLESTR that will be freed */
68 [case(STRRET_OFFSET)] UINT uOffset; /* Offset into SHITEMID (ANSI) */
69 [case(STRRET_CSTR)] char cStr[MAX_PATH]; /* ANSI Buffer */
70 } DUMMYUNIONNAME;
71 } STRRET, *LPSTRRET;
72 cpp_quote("#include <poppack.h>")
74 cpp_quote("#include <pshpack1.h>")
75 typedef struct
77 int fmt;
78 int cxChar;
79 STRRET str;
80 } SHELLDETAILS, *LPSHELLDETAILS;
81 cpp_quote("#include <poppack.h>")
83 typedef struct _COMDLG_FILTERSPEC
85 [string] LPCWSTR pszName;
86 [string] LPCWSTR pszSpec;
87 } COMDLG_FILTERSPEC;
89 typedef [v1_enum] enum tagSHCOLSTATE
91 SHCOLSTATE_DEFAULT = 0,
92 SHCOLSTATE_TYPE_STR,
93 SHCOLSTATE_TYPE_INT,
94 SHCOLSTATE_TYPE_DATE,
95 SHCOLSTATE_TYPEMASK = 0xf,
96 SHCOLSTATE_ONBYDEFAULT = 0x10,
97 SHCOLSTATE_SLOW = 0x20,
98 SHCOLSTATE_EXTENDED = 0x40,
99 SHCOLSTATE_SECONDARYUI = 0x80,
100 SHCOLSTATE_HIDDEN = 0x100,
101 SHCOLSTATE_PREFER_VARCMP = 0x200,
102 SHCOLSTATE_PREFER_FMTCMP = 0x400,
103 SHCOLSTATE_NOSORTBYFOLDERNESS = 0x800,
104 SHCOLSTATE_VIEWONLY = 0x10000,
105 SHCOLSTATE_BATCHREAD = 0x20000,
106 SHCOLSTATE_NO_GROUPBY = 0x40000,
107 SHCOLSTATE_FIXED_WIDTH = 0x1000,
108 SHCOLSTATE_NODPISCALE = 0x2000,
109 SHCOLSTATE_FIXED_RATIO = 0x4000,
110 SHCOLSTATE_DISPLAYMASK = 0xf000
111 } SHCOLSTATE;
113 typedef DWORD SHCOLSTATEF;
115 typedef GUID KNOWNFOLDERID;
116 typedef GUID FOLDERTYPEID;
118 cpp_quote("#if 0")
119 typedef KNOWNFOLDERID *REFKNOWNFOLDERID;
120 cpp_quote("#endif")
122 cpp_quote("#ifdef __cplusplus")
123 cpp_quote("#define REFKNOWNFOLDERID const KNOWNFOLDERID &")
124 cpp_quote("#else")
125 cpp_quote("#define REFKNOWNFOLDERID const KNOWNFOLDERID * __MIDL_CONST")
126 cpp_quote("#endif")