ReactOS  0.4.14-dev-583-g2a1ba2c
shtypes.idl
Go to the documentation of this file.
1 /*
2  * Type definitions for shell objects
3  *
4  * Copyright (C) 1999 Juergen Schmied
5  * Copyright (C) 2003 Alexandre Julliard
6  *
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.
11  *
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.
16  *
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
20  */
21 
22 import "wtypes.idl";
23 
24 cpp_quote("#include <pshpack1.h>")
25 typedef struct
26 {
27  WORD cb; /* nr of bytes in this item */
28  BYTE abID[1]; /* first byte in this item */
30 typedef const SHITEMID *LPCSHITEMID;
31 
32 typedef struct _ITEMIDLIST
33 {
34  SHITEMID mkid; /* first itemid in list */
35 } ITEMIDLIST;
36 
37 #ifndef UNALIGNED
38 #define UNALIGNED
39 #endif
40 
43 
44 cpp_quote("#if defined(STRICT_TYPED_ITEMIDS) && defined(__cplusplus)")
46 cpp_quote("typedef struct _ITEMIDLIST_ABSOLUTE : public ITEMIDLIST_RELATIVE { } ITEMIDLIST_ABSOLUTE;")
47 cpp_quote("typedef struct _ITEMID_CHILD : public ITEMIDLIST_RELATIVE { } ITEMID_CHILD;")
48 cpp_quote("#else")
49 typedef ITEMIDLIST ITEMIDLIST_RELATIVE;
50 typedef ITEMIDLIST ITEMIDLIST_ABSOLUTE;
51 typedef ITEMIDLIST ITEMID_CHILD;
52 cpp_quote("#endif")
53 
54 typedef ITEMIDLIST_RELATIVE *PIDLIST_RELATIVE;
55 typedef ITEMIDLIST_RELATIVE UNALIGNED *PUIDLIST_RELATIVE;
56 typedef const ITEMIDLIST_RELATIVE *PCIDLIST_RELATIVE;
57 typedef const ITEMIDLIST_RELATIVE UNALIGNED *PCUIDLIST_RELATIVE;
58 typedef const PCUIDLIST_RELATIVE *PCUIDLIST_RELATIVE_ARRAY;
59 
60 typedef ITEMIDLIST_ABSOLUTE *PIDLIST_ABSOLUTE;
61 typedef ITEMIDLIST_ABSOLUTE UNALIGNED *PUIDLIST_ABSOLUTE;
62 typedef const ITEMIDLIST_ABSOLUTE *PCIDLIST_ABSOLUTE;
63 typedef const ITEMIDLIST_ABSOLUTE UNALIGNED *PCUIDLIST_ABSOLUTE;
64 typedef const PCIDLIST_ABSOLUTE *PCIDLIST_ABSOLUTE_ARRAY;
65 typedef const PCUIDLIST_ABSOLUTE *PCUIDLIST_ABSOLUTE_ARRAY;
66 
67 typedef ITEMID_CHILD *PITEMID_CHILD;
68 typedef ITEMID_CHILD UNALIGNED *PUITEMID_CHILD;
69 typedef const ITEMID_CHILD *PCITEMID_CHILD;
70 typedef const ITEMID_CHILD UNALIGNED *PCUITEMID_CHILD;
71 typedef const PCUITEMID_CHILD *PCUITEMID_CHILD_ARRAY;
72 
73 cpp_quote("#include <poppack.h>")
74 
75 #ifndef MAX_PATH
76 #define MAX_PATH 260
77 #endif
78 
79 cpp_quote("#if 0")
80 typedef struct { int dummy; } WIN32_FIND_DATAA, WIN32_FIND_DATAW;
81 cpp_quote("#endif")
82 
83 typedef enum tagSTRRET_TYPE
84 {
85  STRRET_WSTR = 0,
86  STRRET_OFFSET = 1,
87  STRRET_CSTR = 2
88 } STRRET_TYPE;
89 
90 cpp_quote("#include <pshpack8.h>")
91 typedef struct _STRRET
92 {
93  UINT uType; /* STRRET_xxx */
94  [switch_type(UINT), switch_is(uType)] union
95  {
96  [case(STRRET_WSTR)][string] LPWSTR pOleStr; /* OLESTR that will be freed */
97  [case(STRRET_OFFSET)] UINT uOffset; /* Offset into SHITEMID (ANSI) */
98  [case(STRRET_CSTR)] char cStr[MAX_PATH]; /* ANSI Buffer */
99  } DUMMYUNIONNAME;
100 } STRRET, *LPSTRRET;
101 cpp_quote("#include <poppack.h>")
102 
103 cpp_quote("#include <pshpack1.h>")
104 typedef struct
105 {
106  int fmt;
107  int cxChar;
108  STRRET str;
109 } SHELLDETAILS, *LPSHELLDETAILS;
110 cpp_quote("#include <poppack.h>")
111 
112 typedef struct _COMDLG_FILTERSPEC
113 {
114  [string] LPCWSTR pszName;
115  [string] LPCWSTR pszSpec;
116 } COMDLG_FILTERSPEC;
117 
118 typedef [v1_enum] enum tagSHCOLSTATE
119 {
120  SHCOLSTATE_DEFAULT = 0,
121  SHCOLSTATE_TYPE_STR,
122  SHCOLSTATE_TYPE_INT,
123  SHCOLSTATE_TYPE_DATE,
124  SHCOLSTATE_TYPEMASK = 0xf,
125  SHCOLSTATE_ONBYDEFAULT = 0x10,
126  SHCOLSTATE_SLOW = 0x20,
127  SHCOLSTATE_EXTENDED = 0x40,
128  SHCOLSTATE_SECONDARYUI = 0x80,
129  SHCOLSTATE_HIDDEN = 0x100,
130  SHCOLSTATE_PREFER_VARCMP = 0x200,
131  SHCOLSTATE_PREFER_FMTCMP = 0x400,
132  SHCOLSTATE_NOSORTBYFOLDERNESS = 0x800,
133  SHCOLSTATE_VIEWONLY = 0x10000,
134  SHCOLSTATE_BATCHREAD = 0x20000,
135  SHCOLSTATE_NO_GROUPBY = 0x40000,
136  SHCOLSTATE_FIXED_WIDTH = 0x1000,
137  SHCOLSTATE_NODPISCALE = 0x2000,
138  SHCOLSTATE_FIXED_RATIO = 0x4000,
139  SHCOLSTATE_DISPLAYMASK = 0xf000
140 } SHCOLSTATE;
141 
142 typedef DWORD SHCOLSTATEF;
143 
144 typedef GUID KNOWNFOLDERID;
145 
146 cpp_quote("#if 0")
147 typedef KNOWNFOLDERID *REFKNOWNFOLDERID;
148 cpp_quote("#endif")
149 
150 cpp_quote("#ifdef __cplusplus")
151 cpp_quote("#define REFKNOWNFOLDERID const KNOWNFOLDERID &")
152 cpp_quote("#else")
154 cpp_quote("#endif")
155 
156 typedef GUID FOLDERTYPEID;
157 
158 cpp_quote("#if 0")
159 typedef FOLDERTYPEID *REFFOLDERTYPEID;
160 cpp_quote("#endif")
161 
162 cpp_quote("#ifdef __cplusplus")
163 cpp_quote("#define REFFOLDERTYPEID const FOLDERTYPEID &")
164 cpp_quote("#else")
165 cpp_quote("#define REFFOLDERTYPEID const FOLDERTYPEID * __MIDL_CONST")
166 cpp_quote("#endif")
167 
168 typedef [v1_enum] enum tagPERCEIVED {
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;
184 
185 cpp_quote("#define PERCEIVEDFLAG_UNDEFINED 0x0000")
186 cpp_quote("#define PERCEIVEDFLAG_SOFTCODED 0x0001")
187 cpp_quote("#define PERCEIVEDFLAG_HARDCODED 0x0002")
188 cpp_quote("#define PERCEIVEDFLAG_NATIVESUPPORT 0x0004")
189 cpp_quote("#define PERCEIVEDFLAG_GDIPLUS 0x0010")
190 cpp_quote("#define PERCEIVEDFLAG_WMSDK 0x0020")
191 cpp_quote("#define PERCEIVEDFLAG_ZIPFOLDER 0x0040")
const SHITEMID * LPCSHITEMID
Definition: shtypes.idl:30
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
Definition: shtypes.idl:42
WORD cb
Definition: shtypes.idl:27
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
static SIZE_T const char const D3D_SHADER_MACRO ID3DInclude * include
Definition: asm.c:30
REFKNOWNFOLDERID typedef GUID FOLDERTYPEID
Definition: shtypes.idl:153
FOLDERTYPEID * REFFOLDERTYPEID
Definition: shtypes.idl:159
struct _ITEMIDLIST ITEMIDLIST
#define UNALIGNED
Definition: shtypes.idl:38
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned char BYTE
Definition: mem.h:68
_ITEMID_CHILD ITEMID_CHILD
Definition: shtypes.idl:51
_ITEMIDLIST_RELATIVE ITEMIDLIST_RELATIVE
Definition: shtypes.idl:49
_ITEMIDLIST_ABSOLUTE ITEMIDLIST_ABSOLUTE
Definition: shtypes.idl:50
SHITEMID mkid
Definition: shtypes.idl:34
#define __MIDL_CONST
Definition: guiddef.h:105
struct SHITEMID * LPSHITEMID
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41