wined3d: Use a more appropriate mask for masking out the write mask.
[wine/hacks.git] / include / shlobj.h
blobb7efc852c0c4e75b1f287e2b8e60d31460725d96
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_SHLOBJ_H
20 #define __WINE_SHLOBJ_H
22 #include <ole2.h>
23 #include <commctrl.h>
24 #include <prsht.h>
25 #include <shlguid.h>
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* defined(__cplusplus) */
31 /* Except for specific structs, this header is byte packed */
32 #include <pshpack1.h>
34 #include <shtypes.h>
35 #include <shobjidl.h>
37 #ifndef HPSXA_DEFINED
38 #define HPSXA_DEFINED
39 DECLARE_HANDLE(HPSXA);
40 #endif
42 UINT WINAPI SHAddFromPropSheetExtArray(HPSXA,LPFNADDPROPSHEETPAGE,LPARAM);
43 LPVOID WINAPI SHAlloc(ULONG) __WINE_ALLOC_SIZE(1);
44 HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*);
45 HPSXA WINAPI SHCreatePropSheetExtArray(HKEY,LPCWSTR,UINT);
46 HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY,LPCWSTR,UINT,IDataObject*);
47 HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST,IShellFolder*,LPCITEMIDLIST,IShellItem**);
48 DWORD WINAPI SHCLSIDFromStringA(LPCSTR,CLSID*);
49 DWORD WINAPI SHCLSIDFromStringW(LPCWSTR,CLSID*);
50 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
51 HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**);
52 void WINAPI SHDestroyPropSheetExtArray(HPSXA);
53 BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
54 DWORD WINAPI SHFormatDrive(HWND,UINT,UINT,UINT);
55 void WINAPI SHFree(LPVOID);
56 BOOL WINAPI GetFileNameFromBrowse(HWND,LPSTR,DWORD,LPCSTR,LPCSTR,LPCSTR,LPCSTR);
57 HRESULT WINAPI SHGetInstanceExplorer(IUnknown**);
58 HRESULT WINAPI SHGetFolderPathAndSubDirA(HWND,int,HANDLE,DWORD,LPCSTR,LPSTR);
59 HRESULT WINAPI SHGetFolderPathAndSubDirW(HWND,int,HANDLE,DWORD,LPCWSTR,LPWSTR);
60 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir);
61 BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
62 BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
63 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
64 INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST);
65 HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
66 HRESULT WINAPI SHLoadOLE(LPARAM);
67 HRESULT WINAPI SHPathPrepareForWriteA(HWND,IUnknown*,LPCSTR,DWORD);
68 HRESULT WINAPI SHPathPrepareForWriteW(HWND,IUnknown*,LPCWSTR,DWORD);
69 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite);
70 UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM);
71 LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
72 int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
73 HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
74 VOID WINAPI SHUpdateImageA(LPCSTR,INT,UINT,INT);
75 VOID WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
76 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
77 int WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
78 int WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
80 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formattable */
81 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was cancelled */
82 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formattable */
84 /* SHFormatDrive flags */
85 #define SHFMT_ID_DEFAULT 0xFFFF
86 #define SHFMT_OPT_FULL 1
87 #define SHFMT_OPT_SYSONLY 2
89 /* SHPathPrepareForWrite flags */
90 #define SHPPFW_NONE 0x00000000
91 #define SHPPFW_DIRCREATE 0x00000001
92 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
93 #define SHPPFW_ASKDIRCREATE 0x00000002
94 #define SHPPFW_IGNOREFILENAME 0x00000004
95 #define SHPPFW_NOWRITECHECK 0x00000008
96 #define SHPPFW_MEDIACHECKONLY 0x00000010
98 /* SHObjectProperties flags */
99 #define SHOP_PRINTERNAME 0x01
100 #define SHOP_FILEPATH 0x02
101 #define SHOP_VOLUMEGUID 0x04
103 BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
105 #define PCS_FATAL 0x80000000
106 #define PCS_REPLACEDCHAR 0x00000001
107 #define PCS_REMOVEDCHAR 0x00000002
108 #define PCS_TRUNCATED 0x00000004
109 #define PCS_PATHTOOLONG 0x00000008
111 int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
113 /*****************************************************************************
114 * IContextMenu interface
118 /* DATAOBJECT_InitShellIDList*/
119 #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
120 #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
121 #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
122 /* DATAOBJECT_InitFileGroupDesc */
123 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
124 /* DATAOBJECT_InitFileContents*/
125 #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
126 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
127 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
128 #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
129 #define CFSTR_SHELLURLA "UniformResourceLocator"
130 #define CFSTR_INETURLA CFSTR_SHELLURLA
131 #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
132 #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
133 #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
134 #define CFSTR_INDRAGLOOPA "InShellDragLoop"
135 #define CFSTR_DRAGCONTEXTA "DragContext"
136 #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
137 #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
138 #define CFSTR_TARGETCLSIDA "TargetCLSID"
139 #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
140 #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
142 #if defined(__GNUC__)
143 # define CFSTR_SHELLIDLISTW \
144 (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
145 # define CFSTR_SHELLIDLISTOFFSETW \
146 (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
147 # define CFSTR_NETRESOURCESW \
148 (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
149 # define CFSTR_FILEDESCRIPTORW \
150 (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
151 # define CFSTR_FILECONTENTSW \
152 (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
153 # define CFSTR_FILENAMEW \
154 (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
155 # define CFSTR_FILENAMEMAPW \
156 (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
157 # define CFSTR_PRINTERGROUPW \
158 (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
159 # define CFSTR_SHELLURLW \
160 (const WCHAR []){ 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 }
161 # define CFSTR_INETURLW \
162 (const WCHAR []){ 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 }
163 # define CFSTR_PREFERREDDROPEFFECTW \
164 (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
165 # define CFSTR_PERFORMEDDROPEFFECTW \
166 (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
167 # define CFSTR_PASTESUCCEEDEDW \
168 (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
169 # define CFSTR_INDRAGLOOPW \
170 (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
171 # define CFSTR_DRAGCONTEXTW \
172 (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
173 # define CFSTR_MOUNTEDVOLUMEW \
174 (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
175 # define CFSTR_PERSISTEDDATAOBJECTW \
176 (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
177 # define CFSTR_TARGETCLSIDW \
178 (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
179 # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
180 (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
181 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
182 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
183 (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
184 ' ','D','r','o','p','E','f','f','e','c','t',0 }
185 #elif defined(_MSC_VER)
186 # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
187 # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
188 # define CFSTR_NETRESOURCESW L"Net Resource"
189 # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
190 # define CFSTR_FILECONTENTSW L"FileContents"
191 # define CFSTR_FILENAMEW L"FileNameW"
192 # define CFSTR_FILENAMEMAPW L"FileNameMapW"
193 # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
194 # define CFSTR_SHELLURLW L"UniformResourceLocator"
195 # define CFSTR_INETURLW L"UniformResourceLocatorW"
196 # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
197 # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
198 # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
199 # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
200 # define CFSTR_DRAGCONTEXTW L"DragContext"
201 # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
202 # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
203 # define CFSTR_TARGETCLSIDW L"TargetCLSID"
204 # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
205 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
206 #else
207 static const WCHAR CFSTR_SHELLIDLISTW[] =
208 { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
209 static const WCHAR CFSTR_SHELLIDLISTOFFSETW[] =
210 { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
211 static const WCHAR CFSTR_NETRESOURCESW[] =
212 { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
213 static const WCHAR CFSTR_FILEDESCRIPTORW[] =
214 { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
215 static const WCHAR CFSTR_FILECONTENTSW[] =
216 { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
217 static const WCHAR CFSTR_FILENAMEW[] =
218 { 'F','i','l','e','N','a','m','e','W',0 }
219 static const WCHAR CFSTR_FILENAMEMAPW[] =
220 { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
221 static const WCHAR CFSTR_PRINTERGROUPW[] =
222 { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
223 static const WCHAR CFSTR_SHELLURLW[] =
224 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
225 static const WCHAR CFSTR_INETURLW[] =
226 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
227 static const WCHAR CFSTR_PREFERREDDROPEFFECTW[] =
228 { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
229 static const WCHAR CFSTR_PERFORMEDDROPEFFECTW[] =
230 { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
231 static const WCHAR CFSTR_PASTESUCCEEDEDW[] =
232 { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
233 static const WCHAR CFSTR_INDRAGLOOPW[] =
234 { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
235 static const WCHAR CFSTR_DRAGCONTEXTW[] =
236 { 'D','r','a','g','C','o','n','t','e','x','t',0 };
237 static const WCHAR CFSTR_MOUNTEDVOLUMEW[] =
238 { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
239 static const WCHAR CFSTR_PERSISTEDDATAOBJECTW[] =
240 { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
241 static const WCHAR CFSTR_TARGETCLSIDW[] =
242 { 'T','a','r','g','e','t','C','L','S','I','D',0 };
243 static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW[] =
244 { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
245 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
246 static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW[] =
247 { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
248 ' ','D','r','o','p','E','f','f','e','c','t',0 };
249 #endif
251 #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
252 #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
253 #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
254 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
255 #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
256 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
257 #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
258 #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
259 #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
260 #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
261 #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
262 #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
263 #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
264 #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
265 #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
266 #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
267 #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
268 #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
269 #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
270 #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
272 typedef struct
273 { UINT cidl;
274 UINT aoffset[1];
275 } CIDA, *LPIDA;
277 /************************************************************************
278 * IShellView interface
281 #define FCIDM_SHVIEWFIRST 0x0000
282 /* undocumented */
283 #define FCIDM_SHVIEW_ARRANGE 0x7001
284 #define FCIDM_SHVIEW_DELETE 0x7011
285 #define FCIDM_SHVIEW_PROPERTIES 0x7013
286 #define FCIDM_SHVIEW_CUT 0x7018
287 #define FCIDM_SHVIEW_COPY 0x7019
288 #define FCIDM_SHVIEW_INSERT 0x701A
289 #define FCIDM_SHVIEW_UNDO 0x701B
290 #define FCIDM_SHVIEW_INSERTLINK 0x701C
291 #define FCIDM_SHVIEW_SELECTALL 0x7021
292 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
294 #define FCIDM_SHVIEW_BIGICON 0x7029
295 #define FCIDM_SHVIEW_SMALLICON 0x702A
296 #define FCIDM_SHVIEW_LISTVIEW 0x702B
297 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
298 /* 0x7030-0x703f are used by the shellbrowser */
299 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
300 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
302 #define FCIDM_SHVIEW_HELP 0x7041
303 #define FCIDM_SHVIEW_RENAME 0x7050
304 #define FCIDM_SHVIEW_CREATELINK 0x7051
305 #define FCIDM_SHVIEW_NEWLINK 0x7052
306 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
308 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
309 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
310 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
312 #define FCIDM_SHVIEWLAST 0x7fff
313 #define FCIDM_BROWSERFIRST 0xA000
314 /* undocumented toolbar items from stddlg's*/
315 #define FCIDM_TB_UPFOLDER 0xA001
316 #define FCIDM_TB_NEWFOLDER 0xA002
317 #define FCIDM_TB_SMALLICON 0xA003
318 #define FCIDM_TB_REPORTVIEW 0xA004
319 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
321 #define FCIDM_BROWSERLAST 0xbf00
322 #define FCIDM_GLOBALFIRST 0x8000
323 #define FCIDM_GLOBALLAST 0x9fff
326 * Global submenu IDs and separator IDs
328 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
329 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
330 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
331 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
332 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
333 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
334 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
335 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
336 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
337 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
339 /* control IDs known to the view */
340 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
341 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
344 /****************************************************************************
345 * IShellIcon interface
348 #define INTERFACE IShellIcon
349 DECLARE_INTERFACE_(IShellIcon,IUnknown)
351 /*** IUnknown methods ***/
352 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
353 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
354 STDMETHOD_(ULONG,Release)(THIS) PURE;
355 /*** IShellIcon methods ***/
356 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
358 #undef INTERFACE
360 #if !defined(__cplusplus) || defined(CINTERFACE)
361 /*** IUnknown methods ***/
362 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
363 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
364 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
365 /*** IShellIcon methods ***/
366 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
367 #endif
369 typedef IShellIcon *LPSHELLICON;
371 /* IQueryInfo interface */
372 #define INTERFACE IQueryInfo
373 DECLARE_INTERFACE_(IQueryInfo,IUnknown)
375 /*** IUnknown methods ***/
376 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
377 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
378 STDMETHOD_(ULONG,Release)(THIS) PURE;
379 /*** IQueryInfo methods ***/
380 STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, WCHAR** lppTips) PURE;
381 STDMETHOD(GetInfoFlags)(THIS_ DWORD* lpFlags) PURE;
383 #undef INTERFACE
385 #if !defined(__cplusplus) || defined(CINTERFACE)
386 /*** IUnknown methods ***/
387 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
388 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
389 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
390 /*** IQueryInfo methods ***/
391 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
392 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
393 #endif
395 /* IInputObject interface */
396 #define INTERFACE IInputObject
397 DECLARE_INTERFACE_(IInputObject,IUnknown)
399 /*** IUnknown methods ***/
400 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
401 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
402 STDMETHOD_(ULONG,Release)(THIS) PURE;
403 /*** IInputObject methods ***/
404 STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
405 STDMETHOD(HasFocusIO)(THIS) PURE;
406 STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
408 #undef INTERFACE
410 #if !defined(__cplusplus) || defined(CINTERFACE)
411 /*** IUnknown methods ***/
412 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
413 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
414 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
415 /*** IInputObject methods ***/
416 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
417 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
418 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
419 #endif
421 /* IInputObjectSite interface */
422 #define INTERFACE IInputObjectSite
423 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
425 /*** IUnknown methods ***/
426 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
427 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
428 STDMETHOD_(ULONG,Release) (THIS) PURE;
429 /*** IInputObjectSite methods ***/
430 STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
432 #undef INTERFACE
434 #if !defined(__cplusplus) || defined(CINTERFACE)
435 /*** IUnknown methods ***/
436 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
437 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
438 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
439 /*** IInputObject methods ***/
440 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
441 #endif
443 /* IObjMgr interface */
444 #define INTERFACE IObjMgr
445 DECLARE_INTERFACE_(IObjMgr,IUnknown)
447 /*** IUnknown methods ***/
448 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
449 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
450 STDMETHOD_(ULONG,Release) (THIS) PURE;
451 /*** IObjMgr methods ***/
452 STDMETHOD(Append)(THIS_ LPUNKNOWN punk) PURE;
453 STDMETHOD(Remove)(THIS_ LPUNKNOWN punk) PURE;
455 #undef INTERFACE
457 #if !defined(__cplusplus) || defined(CINTERFACE)
458 /*** IUnknown methods ***/
459 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
460 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
461 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
462 /*** IObjMgr methods ***/
463 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
464 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
465 #endif
467 /* IACList interface */
468 #define INTERFACE IACList
469 DECLARE_INTERFACE_(IACList,IUnknown)
471 /*** IUnknown methods ***/
472 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
473 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
474 STDMETHOD_(ULONG,Release) (THIS) PURE;
475 /*** IACList methods ***/
476 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
478 #undef INTERFACE
480 #if !defined(__cplusplus) || defined(CINTERFACE)
481 /*** IUnknown methods ***/
482 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
483 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
484 #define IACList_Release(p) (p)->lpVtbl->Release(p)
485 /*** IACList methods ***/
486 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
487 #endif
489 /* IACList2 interface */
490 #define INTERFACE IACList2
491 DECLARE_INTERFACE_(IACList2,IACList)
493 /*** IUnknown methods ***/
494 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
495 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
496 STDMETHOD_(ULONG,Release) (THIS) PURE;
497 /*** IACList methods ***/
498 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
499 /*** IACList2 methods ***/
500 STDMETHOD(SetOptions)(THIS_ DWORD dwFlag) PURE;
501 STDMETHOD(GetOptions)(THIS_ DWORD* pdwFlag) PURE;
503 #undef INTERFACE
505 #if !defined(__cplusplus) || defined(CINTERFACE)
506 /*** IUnknown methods ***/
507 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
508 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
509 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
510 /*** IACList2 methods ***/
511 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
512 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
513 #endif
515 /* IProgressDialog interface */
516 #define PROGDLG_NORMAL 0x00000000
517 #define PROGDLG_MODAL 0x00000001
518 #define PROGDLG_AUTOTIME 0x00000002
519 #define PROGDLG_NOTIME 0x00000004
520 #define PROGDLG_NOMINIMIZE 0x00000008
521 #define PROGDLG_NOPROGRESSBAR 0x00000010
522 #define PROGDLG_MARQUEEPROGRESS 0x00000020
523 #define PROGDLG_NOCANCEL 0x00000040
525 #define PDTIMER_RESET 0x00000001
526 #define PDTIMER_PAUSE 0x00000002
527 #define PDTIMER_RESUME 0x00000003
529 #define INTERFACE IProgressDialog
530 DECLARE_INTERFACE_(IProgressDialog,IUnknown)
532 /*** IUnknown methods ***/
533 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
534 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
535 STDMETHOD_(ULONG,Release) (THIS) PURE;
536 /*** IProgressDialog methods ***/
537 STDMETHOD(StartProgressDialog)(THIS_ HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved) PURE;
538 STDMETHOD(StopProgressDialog)(THIS) PURE;
539 STDMETHOD(SetTitle)(THIS_ LPCWSTR pwzTitle) PURE;
540 STDMETHOD(SetAnimation)(THIS_ HINSTANCE hInstance, UINT uiResourceId) PURE;
541 STDMETHOD_(BOOL,HasUserCancelled)(THIS) PURE;
542 STDMETHOD(SetProgress)(THIS_ DWORD dwCompleted, DWORD dwTotal) PURE;
543 STDMETHOD(SetProgress64)(THIS_ ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
544 STDMETHOD(SetLine)(THIS_ DWORD dwLineNum, LPCWSTR pwzString, BOOL bPath, LPCVOID reserved) PURE;
545 STDMETHOD(SetCancelMsg)(THIS_ LPCWSTR pwzCancelMsg, LPCVOID reserved) PURE;
546 STDMETHOD(Timer)(THIS_ DWORD dwTimerAction, LPCVOID reserved) PURE;
548 #undef INTERFACE
550 #if !defined(__cplusplus) || defined(CINTERFACE)
551 /*** IUnknown methods ***/
552 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
553 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
554 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
555 /*** IProgressDialog methods ***/
556 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
557 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
558 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
559 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
560 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
561 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
562 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
563 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
564 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
565 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
566 #endif
569 /****************************************************************************
570 * SHAddToRecentDocs API
572 #define SHARD_PIDL 0x00000001L
573 #define SHARD_PATHA 0x00000002L
574 #define SHARD_PATHW 0x00000003L
575 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
577 void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
579 /****************************************************************************
580 * SHBrowseForFolder API
582 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
584 #include <pshpack8.h>
586 typedef struct tagBROWSEINFOA {
587 HWND hwndOwner;
588 LPCITEMIDLIST pidlRoot;
589 LPSTR pszDisplayName;
590 LPCSTR lpszTitle;
591 UINT ulFlags;
592 BFFCALLBACK lpfn;
593 LPARAM lParam;
594 INT iImage;
595 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
597 typedef struct tagBROWSEINFOW {
598 HWND hwndOwner;
599 LPCITEMIDLIST pidlRoot;
600 LPWSTR pszDisplayName;
601 LPCWSTR lpszTitle;
602 UINT ulFlags;
603 BFFCALLBACK lpfn;
604 LPARAM lParam;
605 INT iImage;
606 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
608 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
609 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
610 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
612 #include <poppack.h>
614 /* Browsing for directory. */
615 #define BIF_RETURNONLYFSDIRS 0x0001
616 #define BIF_DONTGOBELOWDOMAIN 0x0002
617 #define BIF_STATUSTEXT 0x0004
618 #define BIF_RETURNFSANCESTORS 0x0008
619 #define BIF_EDITBOX 0x0010
620 #define BIF_VALIDATE 0x0020
621 #define BIF_NEWDIALOGSTYLE 0x0040
622 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
623 #define BIF_BROWSEINCLUDEURLS 0x0080
624 #define BIF_UAHINT 0x0100
625 #define BIF_NONEWFOLDERBUTTON 0x0200
626 #define BIF_NOTRANSLATETARGETS 0x0400
628 #define BIF_BROWSEFORCOMPUTER 0x1000
629 #define BIF_BROWSEFORPRINTER 0x2000
630 #define BIF_BROWSEINCLUDEFILES 0x4000
632 /* message from browser */
633 #define BFFM_INITIALIZED 1
634 #define BFFM_SELCHANGED 2
635 #define BFFM_VALIDATEFAILEDA 3
636 #define BFFM_VALIDATEFAILEDW 4
637 #define BFFM_IUNKNOWN 5
639 /* messages to browser */
640 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
641 #define BFFM_ENABLEOK (WM_USER+101)
642 #define BFFM_SETSELECTIONA (WM_USER+102)
643 #define BFFM_SETSELECTIONW (WM_USER+103)
644 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
645 #define BFFM_SETOKTEXT (WM_USER+105)
646 #define BFFM_SETEXPANDED (WM_USER+106)
648 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
649 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
650 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
651 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
652 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
653 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
655 /**********************************************************************
656 * SHCreateShellFolderViewEx API
659 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
660 IShellView* dwUser,
661 IShellFolder* pshf,
662 HWND hWnd,
663 UINT uMsg,
664 WPARAM wParam,
665 LPARAM lParam);
667 typedef struct _CSFV
669 UINT cbSize;
670 IShellFolder* pshf;
671 IShellView* psvOuter;
672 LPCITEMIDLIST pidl;
673 LONG lEvents;
674 LPFNVIEWCALLBACK pfnCallback;
675 FOLDERVIEWMODE fvm;
676 } CSFV, *LPCSFV;
678 HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
680 /* SHCreateShellFolderViewEx callback messages */
681 #define SFVM_MERGEMENU 1
682 #define SFVM_INVOKECOMMAND 2
683 #define SFVM_GETHELPTEXT 3
684 #define SFVM_GETTOOLTIPTEXT 4
685 #define SFVM_GETBUTTONINFO 5
686 #define SFVM_GETBUTTONS 6
687 #define SFVM_INITMENUPOPUP 7
688 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
689 #define SFVM_DRAWMENUITEM 9 /* undocumented */
690 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
691 #define SFVM_EXITMENULOOP 11 /* undocumented */
692 #define SFVM_VIEWRELEASE 12 /* undocumented */
693 #define SFVM_GETNAMELENGTH 13 /* undocumented */
694 #define SFVM_FSNOTIFY 14
695 #define SFVM_WINDOWCREATED 15
696 #define SFVM_WINDOWCLOSING 16 /* undocumented */
697 #define SFVM_LISTREFRESHED 17 /* undocumented */
698 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
699 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
700 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
701 #define SFVM_GETDETAILSOF 23
702 #define SFVM_COLUMNCLICK 24
703 #define SFVM_QUERYFSNOTIFY 25
704 #define SFVM_DEFITEMCOUNT 26
705 #define SFVM_DEFVIEWMODE 27
706 #define SFVM_UNMERGEFROMMENU 28
707 #define SFVM_ADDINGOBJECT 29 /* undocumented */
708 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
709 #define SFVM_UPDATESTATUSBAR 31
710 #define SFVM_BACKGROUNDENUM 32
711 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
712 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
713 #define SFVM_CANSELECTALL 35 /* undocumented */
714 #define SFVM_DIDDRAGDROP 36
715 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
716 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
717 #define SFVM_SETISFV 39
718 #define SFVM_GETEXTVIEWS 40 /* undocumented */
719 #define SFVM_THISIDLIST 41
720 #define SFVM_ADDPROPERTYPAGES 47
721 #define SFVM_BACKGROUNDENUMDONE 48
722 #define SFVM_GETNOTIFY 49
723 #define SFVM_GETSORTDEFAULTS 53
724 #define SFVM_SIZE 57
725 #define SFVM_GETZONE 58
726 #define SFVM_GETPANE 59
727 #define SFVM_GETHELPTOPIC 63
728 #define SFVM_GETANIMATION 68
729 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
730 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
731 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
732 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
733 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
734 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
735 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
736 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
738 /* Types and definitions for the SFM_* parameters */
739 #include <pshpack8.h>
741 #define QCMINFO_PLACE_BEFORE 0
742 #define QCMINFO_PLACE_AFTER 1
743 typedef struct _QCMINFO_IDMAP_PLACEMENT
745 UINT id;
746 UINT fFlags;
747 } QCMINFO_IDMAP_PLACEMENT;
749 typedef struct _QCMINFO_IDMAP
751 UINT nMaxIds;
752 QCMINFO_IDMAP_PLACEMENT pIdList[1];
753 } QCMINFO_IDMAP;
755 typedef struct _QCMINFO
757 HMENU hmenu;
758 UINT indexMenu;
759 UINT idCmdFirst;
760 UINT idCmdLast;
761 QCMINFO_IDMAP const* pIdMap;
762 } QCMINFO, *LPQCMINFO;
764 #define TBIF_DEFAULT 0x00000000
765 #define TBIF_APPEND 0x00000000
766 #define TBIF_PREPEND 0x00000001
767 #define TBIF_REPLACE 0x00000002
768 #define TBIF_INTERNETBAR 0x00010000
769 #define TBIF_STANDARDTOOLBAR 0x00020000
770 #define TBIF_NOTOOLBAR 0x00030000
772 typedef struct _TBINFO
774 UINT cbuttons;
775 UINT uFlags;
776 } TBINFO, *LPTBINFO;
778 #include <poppack.h>
780 /****************************************************************************
781 * SHShellFolderView_Message API
784 LRESULT WINAPI SHShellFolderView_Message(
785 HWND hwndCabinet,
786 UINT uMessage,
787 LPARAM lParam);
789 /* SHShellFolderView_Message messages */
790 #define SFVM_REARRANGE 0x0001
791 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
792 #define SFVM_ADDOBJECT 0x0003
793 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
794 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
795 #define SFVM_REMOVEOBJECT 0x0006
796 #define SFVM_UPDATEOBJECT 0x0007
797 #define SFVM_SETREDRAW 0x0008 /* undocumented */
798 #define SFVM_GETSELECTEDOBJECTS 0x0009
799 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
800 #define SFVM_MOVEICONS 0x000B /* undocumented */
801 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
802 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
803 #define SFVM_SETITEMPOS 0x000E
804 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
805 #define SFVM_SETCLIPBOARD 0x0010
806 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
807 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
808 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
809 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
810 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
811 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
812 #define SFVM_SETPOINTS 0x0017
814 /****************************************************************************
815 * SHGetDataFromIDList API
817 #define SHGDFIL_FINDDATA 1
818 #define SHGDFIL_NETRESOURCE 2
819 #define SHGDFIL_DESCRIPTIONID 3
821 #define SHDID_ROOT_REGITEM 1
822 #define SHDID_FS_FILE 2
823 #define SHDID_FS_DIRECTORY 3
824 #define SHDID_FS_OTHER 4
825 #define SHDID_COMPUTER_DRIVE35 5
826 #define SHDID_COMPUTER_DRIVE525 6
827 #define SHDID_COMPUTER_REMOVABLE 7
828 #define SHDID_COMPUTER_FIXED 8
829 #define SHDID_COMPUTER_NETDRIVE 9
830 #define SHDID_COMPUTER_CDROM 10
831 #define SHDID_COMPUTER_RAMDISK 11
832 #define SHDID_COMPUTER_OTHER 12
833 #define SHDID_NET_DOMAIN 13
834 #define SHDID_NET_SERVER 14
835 #define SHDID_NET_SHARE 15
836 #define SHDID_NET_RESTOFNET 16
837 #define SHDID_NET_OTHER 17
838 #define SHDID_COMPUTER_IMAGING 18
839 #define SHDID_COMPUTER_AUDIO 19
840 #define SHDID_COMPUTER_SHAREDDOCS 20
842 #include <pshpack8.h>
844 typedef struct _SHDESCRIPTIONID
845 { DWORD dwDescriptionId;
846 CLSID clsid;
847 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
849 #include <poppack.h>
851 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
852 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
853 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
855 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
856 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
857 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
859 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
861 /**********************************************************************
862 * SHGetSetSettings ()
865 typedef struct
867 BOOL fShowAllObjects : 1;
868 BOOL fShowExtensions : 1;
869 BOOL fNoConfirmRecycle : 1;
871 BOOL fShowSysFiles : 1;
872 BOOL fShowCompColor : 1;
873 BOOL fDoubleClickInWebView : 1;
874 BOOL fDesktopHTML : 1;
875 BOOL fWin95Classic : 1;
876 BOOL fDontPrettyPath : 1;
877 BOOL fShowAttribCol : 1;
878 BOOL fMapNetDrvBtn : 1;
879 BOOL fShowInfoTip : 1;
880 BOOL fHideIcons : 1;
881 BOOL fWebView : 1;
882 BOOL fFilter : 1;
883 BOOL fShowSuperHidden : 1;
884 BOOL fNoNetCrawling : 1;
886 UINT :15; /* Required for proper binary layout with gcc */
887 DWORD dwWin95Unused;
888 UINT uWin95Unused;
889 LONG lParamSort;
890 int iSortDirection;
891 UINT version;
892 UINT uNotUsed;
893 BOOL fSepProcess: 1;
894 BOOL fStartPanelOn: 1;
895 BOOL fShowStartPage: 1;
896 UINT fSpareFlags : 13;
897 UINT :15; /* Required for proper binary layout with gcc */
898 } SHELLSTATE, *LPSHELLSTATE;
900 /**********************************************************************
901 * SHGetSettings ()
903 typedef struct
904 { BOOL fShowAllObjects : 1;
905 BOOL fShowExtensions : 1;
906 BOOL fNoConfirmRecycle : 1;
907 BOOL fShowSysFiles : 1;
909 BOOL fShowCompColor : 1;
910 BOOL fDoubleClickInWebView : 1;
911 BOOL fDesktopHTML : 1;
912 BOOL fWin95Classic : 1;
914 BOOL fDontPrettyPath : 1;
915 BOOL fShowAttribCol : 1;
916 BOOL fMapNetDrvBtn : 1;
917 BOOL fShowInfoTip : 1;
919 BOOL fHideIcons : 1;
920 UINT fRestFlags : 3;
921 UINT :15; /* Required for proper binary layout with gcc */
922 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
924 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
926 #define SSF_SHOWALLOBJECTS 0x0001
927 #define SSF_SHOWEXTENSIONS 0x0002
928 #define SSF_SHOWCOMPCOLOR 0x0008
929 #define SSF_SHOWSYSFILES 0x0020
930 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
931 #define SSF_SHOWATTRIBCOL 0x0100
932 #define SSF_DESKTOPHTML 0x0200
933 #define SSF_WIN95CLASSIC 0x0400
934 #define SSF_DONTPRETTYPATH 0x0800
935 #define SSF_SHOWINFOTIP 0x2000
936 #define SSF_MAPNETDRVBUTTON 0x1000
937 #define SSF_NOCONFIRMRECYCLE 0x8000
938 #define SSF_HIDEICONS 0x4000
940 /****************************************************************************
941 * SHRestricted API
943 typedef enum RESTRICTIONS
945 REST_NONE = 0x00000000,
946 REST_NORUN = 0x00000001,
947 REST_NOCLOSE = 0x00000002,
948 REST_NOSAVESET = 0x00000004,
949 REST_NOFILEMENU = 0x00000008,
950 REST_NOSETFOLDERS = 0x00000010,
951 REST_NOSETTASKBAR = 0x00000020,
952 REST_NODESKTOP = 0x00000040,
953 REST_NOFIND = 0x00000080,
954 REST_NODRIVES = 0x00000100,
955 REST_NODRIVEAUTORUN = 0x00000200,
956 REST_NODRIVETYPEAUTORUN = 0x00000400,
957 REST_NONETHOOD = 0x00000800,
958 REST_STARTBANNER = 0x00001000,
959 REST_RESTRICTRUN = 0x00002000,
960 REST_NOPRINTERTABS = 0x00004000,
961 REST_NOPRINTERDELETE = 0x00008000,
962 REST_NOPRINTERADD = 0x00010000,
963 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
964 REST_MYDOCSONNET = 0x00040000,
965 REST_NOEXITTODOS = 0x00080000,
966 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
967 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
968 REST_NOCOMMONGROUPS = 0x00400000,
969 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
970 REST_NOWEB = 0x01000000,
971 REST_NOTRAYCONTEXTMENU = 0x02000000,
972 REST_NOVIEWCONTEXTMENU = 0x04000000,
973 REST_NONETCONNECTDISCONNECT = 0x08000000,
974 REST_STARTMENULOGOFF = 0x10000000,
975 REST_NOSETTINGSASSIST = 0x20000000,
976 REST_NOINTERNETICON = 0x40000001,
977 REST_NORECENTDOCSHISTORY,
978 REST_NORECENTDOCSMENU,
979 REST_NOACTIVEDESKTOP,
980 REST_NOACTIVEDESKTOPCHANGES,
981 REST_NOFAVORITESMENU,
982 REST_CLEARRECENTDOCSONEXIT,
983 REST_CLASSICSHELL,
984 REST_NOCUSTOMIZEWEBVIEW,
986 REST_NOHTMLWALLPAPER = 0x40000010,
987 REST_NOCHANGINGWALLPAPER,
988 REST_NODESKCOMP,
989 REST_NOADDDESKCOMP,
990 REST_NODELDESKCOMP,
991 REST_NOCLOSEDESKCOMP,
992 REST_NOCLOSE_DRAGDROPBAND,
993 REST_NOMOVINGBAND,
994 REST_NOEDITDESKCOMP,
995 REST_NORESOLVESEARCH,
996 REST_NORESOLVETRACK,
997 REST_FORCECOPYACLWITHFILE,
998 REST_NOLOGO3CHANNELNOTIFY,
999 REST_NOFORGETSOFTWAREUPDATE,
1000 REST_NOSETACTIVEDESKTOP,
1001 REST_NOUPDATEWINDOWS,
1002 REST_NOCHANGESTARMENU, /* 0x40000020 */
1003 REST_NOFOLDEROPTIONS,
1004 REST_HASFINDCOMPUTERS,
1005 REST_INTELLIMENUS,
1006 REST_RUNDLGMEMCHECKBOX,
1007 REST_ARP_ShowPostSetup,
1008 REST_NOCSC,
1009 REST_NOCONTROLPANEL,
1010 REST_ENUMWORKGROUP,
1011 REST_ARP_NOARP,
1012 REST_ARP_NOREMOVEPAGE,
1013 REST_ARP_NOADDPAGE,
1014 REST_ARP_NOWINSETUPPAGE,
1015 REST_GREYMSIADS,
1016 REST_NOCHANGEMAPPEDDRIVELABEL,
1017 REST_NOCHANGEMAPPEDDRIVECOMMENT,
1018 REST_MaxRecentDocs, /* 0x40000030 */
1019 REST_NONETWORKCONNECTIONS,
1020 REST_FORCESTARTMENULOGOFF,
1021 REST_NOWEBVIEW,
1022 REST_NOCUSTOMIZETHISFOLDER,
1023 REST_NOENCRYPTION,
1025 REST_ALLOWFRENCHENCRYPTION, /* not documented */
1027 REST_DONTSHOWSUPERHIDDEN,
1028 REST_NOSHELLSEARCHBUTTON,
1029 REST_NOHARDWARETAB,
1030 REST_NORUNASINSTALLPROMPT,
1031 REST_PROMPTRUNASINSTALLNETPATH,
1032 REST_NOMANAGEMYCOMPUTERVERB,
1033 REST_NORECENTDOCSNETHOOD,
1034 REST_DISALLOWRUN,
1035 REST_NOWELCOMESCREEN,
1036 REST_RESTRICTCPL, /* 0x40000040 */
1037 REST_DISALLOWCPL,
1038 REST_NOSMBALLOONTIP,
1039 REST_NOSMHELP,
1040 REST_NOWINKEYS,
1041 REST_NOENCRYPTONMOVE,
1042 REST_NOLOCALMACHINERUN,
1043 REST_NOCURRENTUSERRUN,
1044 REST_NOLOCALMACHINERUNONCE,
1045 REST_NOCURRENTUSERRUNONCE,
1046 REST_FORCEACTIVEDESKTOPON,
1047 REST_NOCOMPUTERSNEARME,
1048 REST_NOVIEWONDRIVE,
1049 REST_NONETCRAWL,
1050 REST_NOSHAREDDOCUMENTS,
1051 REST_NOSMMYDOCS,
1052 REST_NOSMMYPICS, /* 0x40000050 */
1053 REST_ALLOWBITBUCKDRIVES,
1054 REST_NONLEGACYSHELLMODE,
1055 REST_NOCONTROLPANELBARRICADE,
1056 REST_NOSTARTPAGE,
1057 REST_NOAUTOTRAYNOTIFY,
1058 REST_NOTASKGROUPING,
1059 REST_NOCDBURNING,
1060 REST_MYCOMPNOPROP,
1061 REST_MYDOCSNOPROP,
1062 REST_NOSTARTPANEL,
1063 REST_NODISPLAYAPPEARANCEPAGE,
1064 REST_NOTHEMESTAB,
1065 REST_NOVISUALSTYLECHOICE,
1066 REST_NOSIZECHOICE,
1067 REST_NOCOLORCHOICE,
1068 REST_SETVISUALSTYLE, /* 0x40000060 */
1069 REST_STARTRUNNOHOMEPATH,
1070 REST_NOUSERNAMEINSTARTPANEL,
1071 REST_NOMYCOMPUTERICON,
1072 REST_NOSMNETWORKPLACES,
1073 REST_NOSMPINNEDLIST,
1074 REST_NOSMMYMUSIC,
1075 REST_NOSMEJECTPC,
1076 REST_NOSMMOREPROGRAMS,
1077 REST_NOSMMFUPROGRAMS,
1078 REST_NOTRAYITEMSDISPLAY,
1079 REST_NOTOOLBARSONTASKBAR,
1080 /* 0x4000006C
1081 0x4000006D
1082 0x4000006E */
1083 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
1084 REST_HIDECLOCK, /* 0x40000070 */
1085 REST_NOLOWDISKSPACECHECKS,
1086 REST_NOENTIRENETWORK,
1087 REST_NODESKTOPCLEANUP,
1088 REST_BITBUCKNUKEONDELETE,
1089 REST_BITBUCKCONFIRMDELETE,
1090 REST_BITBUCKNOPROP,
1091 REST_NODISPBACKGROUND,
1092 REST_NODISPSCREENSAVEPG,
1093 REST_NODISPSETTINGSPG,
1094 REST_NODISPSCREENSAVEPREVIEW,
1095 REST_NODISPLAYCPL,
1096 REST_HIDERUNASVERB,
1097 REST_NOTHUMBNAILCACHE,
1098 REST_NOSTRCMPLOGICAL,
1099 REST_NOPUBLISHWIZARD,
1100 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
1101 REST_NOWEBSERVICES,
1102 REST_ALLOWUNHASHEDWEBVIEW,
1103 REST_ALLOWLEGACYWEBVIEW,
1104 REST_REVERTWEBVIEWSECURITY,
1106 REST_INHERITCONSOLEHANDLES = 0x40000086,
1108 REST_NODISCONNECT = 0x41000001,
1109 REST_NOSECURITY,
1110 REST_NOFILEASSOCIATE, /* 0x41000003 */
1111 } RESTRICTIONS;
1113 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
1115 /****************************************************************************
1116 * SHChangeNotify API
1118 typedef struct _SHChangeNotifyEntry
1120 LPCITEMIDLIST pidl;
1121 BOOL fRecursive;
1122 } SHChangeNotifyEntry;
1124 #define SHCNE_RENAMEITEM 0x00000001
1125 #define SHCNE_CREATE 0x00000002
1126 #define SHCNE_DELETE 0x00000004
1127 #define SHCNE_MKDIR 0x00000008
1128 #define SHCNE_RMDIR 0x00000010
1129 #define SHCNE_MEDIAINSERTED 0x00000020
1130 #define SHCNE_MEDIAREMOVED 0x00000040
1131 #define SHCNE_DRIVEREMOVED 0x00000080
1132 #define SHCNE_DRIVEADD 0x00000100
1133 #define SHCNE_NETSHARE 0x00000200
1134 #define SHCNE_NETUNSHARE 0x00000400
1135 #define SHCNE_ATTRIBUTES 0x00000800
1136 #define SHCNE_UPDATEDIR 0x00001000
1137 #define SHCNE_UPDATEITEM 0x00002000
1138 #define SHCNE_SERVERDISCONNECT 0x00004000
1139 #define SHCNE_UPDATEIMAGE 0x00008000
1140 #define SHCNE_DRIVEADDGUI 0x00010000
1141 #define SHCNE_RENAMEFOLDER 0x00020000
1142 #define SHCNE_FREESPACE 0x00040000
1144 #define SHCNE_EXTENDED_EVENT 0x04000000
1145 #define SHCNE_ASSOCCHANGED 0x08000000
1146 #define SHCNE_DISKEVENTS 0x0002381F
1147 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1148 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1149 #define SHCNE_INTERRUPT 0x80000000
1151 #define SHCNEE_ORDERCHANGED 0x0002L
1152 #define SHCNEE_MSI_CHANGE 0x0004L
1153 #define SHCNEE_MSI_UNINSTALL 0x0005L
1155 #define SHCNF_IDLIST 0x0000
1156 #define SHCNF_PATHA 0x0001
1157 #define SHCNF_PRINTERA 0x0002
1158 #define SHCNF_DWORD 0x0003
1159 #define SHCNF_PATHW 0x0005
1160 #define SHCNF_PRINTERW 0x0006
1161 #define SHCNF_TYPE 0x00FF
1162 #define SHCNF_FLUSH 0x1000
1163 #define SHCNF_FLUSHNOWAIT 0x2000
1165 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1166 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1168 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
1170 typedef enum {
1171 SLDF_HAS_ID_LIST = 0x00000001,
1172 SLDF_HAS_LINK_INFO = 0x00000002,
1173 SLDF_HAS_NAME = 0x00000004,
1174 SLDF_HAS_RELPATH = 0x00000008,
1175 SLDF_HAS_WORKINGDIR = 0x00000010,
1176 SLDF_HAS_ARGS = 0x00000020,
1177 SLDF_HAS_ICONLOCATION = 0x00000040,
1178 SLDF_UNICODE = 0x00000080,
1179 SLDF_FORCE_NO_LINKINFO = 0x00000100,
1180 SLDF_HAS_EXP_SZ = 0x00000200,
1181 SLDF_RUN_IN_SEPARATE = 0x00000400,
1182 SLDF_HAS_LOGO3ID = 0x00000800,
1183 SLDF_HAS_DARWINID = 0x00001000,
1184 SLDF_RUNAS_USER = 0x00002000,
1185 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
1186 SLDF_NO_PIDL_ALIAS = 0x00008000,
1187 SLDF_FORCE_UNCNAME = 0x00010000,
1188 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
1189 SLDF_FORCE_NO_LINKTRACK = 0x00040000,
1190 SLDF_ENABLE_TARGET_METADATA = 0x00080000,
1191 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING = 0x00200000,
1192 SLDF_VALID = 0x003ff7ff,
1193 SLDF_RESERVED = 0x80000000,
1194 } SHELL_LINK_DATA_FLAGS;
1196 typedef struct tagDATABLOCKHEADER
1198 DWORD cbSize;
1199 DWORD dwSignature;
1200 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
1202 typedef struct {
1203 DATABLOCK_HEADER dbh;
1204 CHAR szDarwinID[MAX_PATH];
1205 WCHAR szwDarwinID[MAX_PATH];
1206 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
1208 typedef struct {
1209 DWORD cbSize;
1210 DWORD cbSignature;
1211 CHAR szTarget[MAX_PATH];
1212 WCHAR szwTarget[MAX_PATH];
1213 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
1215 typedef struct {
1216 DWORD cbSize;
1217 DWORD dwSignature;
1218 DWORD idSpecialFolder;
1219 DWORD cbOffset;
1220 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
1222 typedef struct {
1223 DWORD cbSize;
1224 DWORD dwSignature;
1225 BYTE abPropertyStorage[1];
1226 } EXP_PROPERTYSTORAGE;
1228 #define EXP_SZ_LINK_SIG 0xa0000001
1229 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1230 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1231 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1232 #define EXP_DARWIN_ID_SIG 0xa0000006
1233 #define EXP_SZ_ICON_SIG 0xa0000007
1234 #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
1235 #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
1237 typedef struct _SHChangeDWORDAsIDList {
1238 USHORT cb;
1239 DWORD dwItem1;
1240 DWORD dwItem2;
1241 USHORT cbZero;
1242 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
1244 typedef struct _SHChangeProductKeyAsIDList {
1245 USHORT cb;
1246 WCHAR wszProductKey[39];
1247 USHORT cbZero;
1248 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
1250 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
1251 int cEntries, SHChangeNotifyEntry *pshcne);
1252 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
1253 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
1254 LPITEMIDLIST **pppidl, LONG *plEvent);
1255 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
1257 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
1259 /****************************************************************************
1260 * SHCreateDirectory API
1262 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
1263 int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
1264 int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
1266 /****************************************************************************
1267 * SHGetSpecialFolderLocation API
1269 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
1270 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
1272 /****************************************************************************
1273 * SHGetFolderPath API
1275 typedef enum {
1276 SHGFP_TYPE_CURRENT = 0,
1277 SHGFP_TYPE_DEFAULT = 1
1278 } SHGFP_TYPE;
1280 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
1281 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
1282 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1284 #define CSIDL_DESKTOP 0x0000
1285 #define CSIDL_INTERNET 0x0001
1286 #define CSIDL_PROGRAMS 0x0002
1287 #define CSIDL_CONTROLS 0x0003
1288 #define CSIDL_PRINTERS 0x0004
1289 #define CSIDL_PERSONAL 0x0005
1290 #define CSIDL_FAVORITES 0x0006
1291 #define CSIDL_STARTUP 0x0007
1292 #define CSIDL_RECENT 0x0008
1293 #define CSIDL_SENDTO 0x0009
1294 #define CSIDL_BITBUCKET 0x000a
1295 #define CSIDL_STARTMENU 0x000b
1296 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1297 #define CSIDL_MYMUSIC 0x000d
1298 #define CSIDL_MYVIDEO 0x000e
1299 #define CSIDL_DESKTOPDIRECTORY 0x0010
1300 #define CSIDL_DRIVES 0x0011
1301 #define CSIDL_NETWORK 0x0012
1302 #define CSIDL_NETHOOD 0x0013
1303 #define CSIDL_FONTS 0x0014
1304 #define CSIDL_TEMPLATES 0x0015
1305 #define CSIDL_COMMON_STARTMENU 0x0016
1306 #define CSIDL_COMMON_PROGRAMS 0X0017
1307 #define CSIDL_COMMON_STARTUP 0x0018
1308 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1309 #define CSIDL_APPDATA 0x001a
1310 #define CSIDL_PRINTHOOD 0x001b
1311 #define CSIDL_LOCAL_APPDATA 0x001c
1312 #define CSIDL_ALTSTARTUP 0x001d
1313 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1314 #define CSIDL_COMMON_FAVORITES 0x001f
1315 #define CSIDL_INTERNET_CACHE 0x0020
1316 #define CSIDL_COOKIES 0x0021
1317 #define CSIDL_HISTORY 0x0022
1318 #define CSIDL_COMMON_APPDATA 0x0023
1319 #define CSIDL_WINDOWS 0x0024
1320 #define CSIDL_SYSTEM 0x0025
1321 #define CSIDL_PROGRAM_FILES 0x0026
1322 #define CSIDL_MYPICTURES 0x0027
1323 #define CSIDL_PROFILE 0x0028
1324 #define CSIDL_SYSTEMX86 0x0029
1325 #define CSIDL_PROGRAM_FILESX86 0x002a
1326 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1327 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1328 #define CSIDL_COMMON_TEMPLATES 0x002d
1329 #define CSIDL_COMMON_DOCUMENTS 0x002e
1330 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1331 #define CSIDL_ADMINTOOLS 0x0030
1332 #define CSIDL_CONNECTIONS 0x0031
1333 #define CSIDL_COMMON_MUSIC 0x0035
1334 #define CSIDL_COMMON_PICTURES 0x0036
1335 #define CSIDL_COMMON_VIDEO 0x0037
1336 #define CSIDL_RESOURCES 0x0038
1337 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1338 #define CSIDL_COMMON_OEM_LINKS 0x003a
1339 #define CSIDL_CDBURN_AREA 0x003b
1340 #define CSIDL_COMPUTERSNEARME 0x003d
1341 #define CSIDL_PROFILES 0x003e
1342 #define CSIDL_FOLDER_MASK 0x00ff
1343 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1344 #define CSIDL_FLAG_NO_ALIAS 0x1000
1345 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1346 #define CSIDL_FLAG_CREATE 0x8000
1348 #define CSIDL_FLAG_MASK 0xff00
1350 /****************************************************************************
1351 * SHGetDesktopFolder API
1353 HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
1355 /****************************************************************************
1356 * SHBindToParent API
1358 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1360 /****************************************************************************
1361 * SHDefExtractIcon API
1363 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
1364 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1365 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
1366 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1367 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1370 * DROPFILES for CF_HDROP and CF_PRINTERS
1372 typedef struct _DROPFILES
1374 DWORD pFiles;
1375 POINT pt;
1376 BOOL fNC;
1377 BOOL fWide;
1378 } DROPFILES, *LPDROPFILES;
1381 * Properties of a file in the clipboard
1383 typedef struct _FILEDESCRIPTORA {
1384 DWORD dwFlags;
1385 CLSID clsid;
1386 SIZEL sizel;
1387 POINTL pointl;
1388 DWORD dwFileAttributes;
1389 FILETIME ftCreationTime;
1390 FILETIME ftLastAccessTime;
1391 FILETIME ftLastWriteTime;
1392 DWORD nFileSizeHigh;
1393 DWORD nFileSizeLow;
1394 CHAR cFileName[MAX_PATH];
1395 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1397 typedef struct _FILEDESCRIPTORW {
1398 DWORD dwFlags;
1399 CLSID clsid;
1400 SIZEL sizel;
1401 POINTL pointl;
1402 DWORD dwFileAttributes;
1403 FILETIME ftCreationTime;
1404 FILETIME ftLastAccessTime;
1405 FILETIME ftLastWriteTime;
1406 DWORD nFileSizeHigh;
1407 DWORD nFileSizeLow;
1408 WCHAR cFileName[MAX_PATH];
1409 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
1411 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
1412 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
1415 * CF_FILEGROUPDESCRIPTOR clipboard format
1417 typedef struct _FILEGROUPDESCRIPTORA {
1418 UINT cItems;
1419 FILEDESCRIPTORA fgd[1];
1420 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1422 typedef struct _FILEGROUPDESCRIPTORW {
1423 UINT cItems;
1424 FILEDESCRIPTORW fgd[1];
1425 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1427 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1428 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1430 /****************************************************************************
1431 * Cabinet functions
1434 typedef struct {
1435 WORD cLength;
1436 WORD nVersion;
1437 BOOL fFullPathTitle:1;
1438 BOOL fSaveLocalView:1;
1439 BOOL fNotShell:1;
1440 BOOL fSimpleDefault:1;
1441 BOOL fDontShowDescBar:1;
1442 BOOL fNewWindowMode:1;
1443 BOOL fShowCompColor:1;
1444 BOOL fDontPrettyNames:1;
1445 BOOL fAdminsCreateCommonGroups:1;
1446 UINT fUnusedFlags:7;
1447 UINT :15; /* Required for proper binary layout with gcc */
1448 UINT fMenuEnumFilter;
1449 } CABINETSTATE, *LPCABINETSTATE;
1451 #define CABINETSTATE_VERSION 2
1453 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1454 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1456 /****************************************************************************
1457 * Path Manipulation Routines
1460 /* PathProcessCommand flags */
1461 #define PPCF_ADDQUOTES 0x01
1462 #define PPCF_INCLUDEARGS 0x02
1463 #define PPCF_ADDARGUMENTS 0x03
1464 #define PPCF_NODIRECTORIES 0x10
1465 #define PPCF_DONTRESOLVE 0x20
1466 #define PPCF_FORCEQUALIFY 0x40
1467 #define PPCF_LONGESTPOSSIBLE 0x80
1469 /* PathResolve flags */
1470 #define PRF_VERIFYEXISTS 0x01
1471 #define PRF_EXECUTABLE 0x02
1472 #define PRF_TRYPROGRAMEXTENSIONS 0x03
1473 #define PRF_FIRSTDIRDEF 0x04
1474 #define PRF_DONTFINDLINK 0x08
1476 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1477 LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
1478 BOOL WINAPI PathYetAnotherMakeUniqueName(LPWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
1480 /****************************************************************************
1481 * Drag And Drop Routines
1484 /* DAD_AutoScroll sample structure */
1485 #define NUM_POINTS 3
1486 typedef struct
1488 int iNextSample;
1489 DWORD dwLastScroll;
1490 BOOL bFull;
1491 POINT pts[NUM_POINTS];
1492 DWORD dwTimes[NUM_POINTS];
1493 } AUTO_SCROLL_DATA;
1495 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1496 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1497 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1498 BOOL WINAPI DAD_DragMove(POINT);
1499 BOOL WINAPI DAD_DragLeave(void);
1500 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1501 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1503 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1504 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1505 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1506 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1507 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1508 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1509 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1510 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1511 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1512 void WINAPI ILFree(LPITEMIDLIST);
1513 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1514 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1515 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1516 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1517 HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1518 BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1519 HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1522 #include <poppack.h>
1524 #ifdef __cplusplus
1525 } /* extern "C" */
1526 #endif /* defined(__cplusplus) */
1528 #endif /* __WINE_SHLOBJ_H */