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
24 cpp_quote
("#include <pshpack1.h>")
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 typedef LPCITEMIDLIST
*PCIDLIST_ABSOLUTE_ARRAY
;
45 cpp_quote
("#include <poppack.h>")
52 typedef struct { int dummy
; } WIN32_FIND_DATAA
, WIN32_FIND_DATAW
;
55 typedef enum tagSTRRET_TYPE
62 cpp_quote
("#include <pshpack8.h>")
63 typedef struct _STRRET
65 UINT uType
; /* STRRET_xxx */
66 [switch_type(UINT
), switch_is(uType
)] union
68 [case(STRRET_WSTR
)][string] LPWSTR pOleStr
; /* OLESTR that will be freed */
69 [case(STRRET_OFFSET
)] UINT uOffset
; /* Offset into SHITEMID (ANSI) */
70 [case(STRRET_CSTR
)] char cStr
[MAX_PATH
]; /* ANSI Buffer */
73 cpp_quote
("#include <poppack.h>")
75 cpp_quote
("#include <pshpack1.h>")
81 } SHELLDETAILS
, *LPSHELLDETAILS
;
82 cpp_quote
("#include <poppack.h>")
84 typedef struct _COMDLG_FILTERSPEC
86 [string] LPCWSTR pszName
;
87 [string] LPCWSTR pszSpec
;
90 typedef [v1_enum] enum tagSHCOLSTATE
92 SHCOLSTATE_DEFAULT
= 0,
96 SHCOLSTATE_TYPEMASK
= 0xf,
97 SHCOLSTATE_ONBYDEFAULT
= 0x10,
98 SHCOLSTATE_SLOW
= 0x20,
99 SHCOLSTATE_EXTENDED
= 0x40,
100 SHCOLSTATE_SECONDARYUI
= 0x80,
101 SHCOLSTATE_HIDDEN
= 0x100,
102 SHCOLSTATE_PREFER_VARCMP
= 0x200,
103 SHCOLSTATE_PREFER_FMTCMP
= 0x400,
104 SHCOLSTATE_NOSORTBYFOLDERNESS
= 0x800,
105 SHCOLSTATE_VIEWONLY
= 0x10000,
106 SHCOLSTATE_BATCHREAD
= 0x20000,
107 SHCOLSTATE_NO_GROUPBY
= 0x40000,
108 SHCOLSTATE_FIXED_WIDTH
= 0x1000,
109 SHCOLSTATE_NODPISCALE
= 0x2000,
110 SHCOLSTATE_FIXED_RATIO
= 0x4000,
111 SHCOLSTATE_DISPLAYMASK
= 0xf000
114 typedef DWORD SHCOLSTATEF
;
116 typedef GUID KNOWNFOLDERID
;
119 typedef KNOWNFOLDERID
*REFKNOWNFOLDERID
;
122 cpp_quote
("#ifdef __cplusplus")
123 cpp_quote
("#define REFKNOWNFOLDERID const KNOWNFOLDERID &")
125 cpp_quote
("#define REFKNOWNFOLDERID const KNOWNFOLDERID * __MIDL_CONST")
128 typedef GUID FOLDERTYPEID
;
131 typedef FOLDERTYPEID
*REFFOLDERTYPEID
;
134 cpp_quote
("#ifdef __cplusplus")
135 cpp_quote
("#define REFFOLDERTYPEID const FOLDERTYPEID &")
137 cpp_quote
("#define REFFOLDERTYPEID const FOLDERTYPEID * __MIDL_CONST")
140 typedef [v1_enum] enum tagPERCEIVED
{
141 PERCEIVED_TYPE_CUSTOM
= -3,
142 PERCEIVED_TYPE_UNSPECIFIED
= -2,
143 PERCEIVED_TYPE_FOLDER
= -1,
144 PERCEIVED_TYPE_UNKNOWN
= 0,
145 PERCEIVED_TYPE_TEXT
= 1,
146 PERCEIVED_TYPE_IMAGE
= 2,
147 PERCEIVED_TYPE_AUDIO
= 3,
148 PERCEIVED_TYPE_VIDEO
= 4,
149 PERCEIVED_TYPE_COMPRESSED
= 5,
150 PERCEIVED_TYPE_DOCUMENT
= 6,
151 PERCEIVED_TYPE_SYSTEM
= 7,
152 PERCEIVED_TYPE_APPLICATION
= 8,
153 PERCEIVED_TYPE_GAMEMEDIA
= 9,
154 PERCEIVED_TYPE_CONTACTS
= 10
157 cpp_quote
("#define PERCEIVEDFLAG_UNDEFINED 0x0000")
158 cpp_quote
("#define PERCEIVEDFLAG_SOFTCODED 0x0001")
159 cpp_quote
("#define PERCEIVEDFLAG_HARDCODED 0x0002")
160 cpp_quote
("#define PERCEIVEDFLAG_NATIVESUPPORT 0x0004")
161 cpp_quote
("#define PERCEIVEDFLAG_GDIPLUS 0x0010")
162 cpp_quote
("#define PERCEIVEDFLAG_WMSDK 0x0020")
163 cpp_quote
("#define PERCEIVEDFLAG_ZIPFOLDER 0x0040")
165 typedef [v1_enum] enum DEVICE_SCALE_FACTOR
167 DEVICE_SCALE_FACTOR_INVALID
= 0,
168 SCALE_100_PERCENT
= 100,
169 SCALE_120_PERCENT
= 120,
170 SCALE_125_PERCENT
= 125,
171 SCALE_140_PERCENT
= 140,
172 SCALE_150_PERCENT
= 150,
173 SCALE_160_PERCENT
= 160,
174 SCALE_175_PERCENT
= 175,
175 SCALE_180_PERCENT
= 180,
176 SCALE_200_PERCENT
= 200,
177 SCALE_225_PERCENT
= 225,
178 SCALE_250_PERCENT
= 250,
179 SCALE_300_PERCENT
= 300,
180 SCALE_350_PERCENT
= 350,
181 SCALE_400_PERCENT
= 400,
182 SCALE_450_PERCENT
= 450,
183 SCALE_500_PERCENT
= 500
184 } DEVICE_SCALE_FACTOR
;