cmd: Update Lithuanian translation.
[wine/testsucceed.git] / include / shlobj.h
blobdf1fc930f242af1c09b4b6bcaf889e616c0ffc13
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 WINE_NO_UNICODE_MACROS
28 #undef GetObject
29 #endif
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* defined(__cplusplus) */
35 /* Except for specific structs, this header is byte packed */
36 #include <pshpack1.h>
38 #include <shtypes.h>
39 #include <shobjidl.h>
41 #ifndef HPSXA_DEFINED
42 #define HPSXA_DEFINED
43 DECLARE_HANDLE(HPSXA);
44 #endif
46 UINT WINAPI SHAddFromPropSheetExtArray(HPSXA,LPFNADDPROPSHEETPAGE,LPARAM);
47 LPVOID WINAPI SHAlloc(ULONG) __WINE_ALLOC_SIZE(1);
48 HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*);
49 HPSXA WINAPI SHCreatePropSheetExtArray(HKEY,LPCWSTR,UINT);
50 HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY,LPCWSTR,UINT,IDataObject*);
51 HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST,IShellFolder*,LPCITEMIDLIST,IShellItem**);
52 DWORD WINAPI SHCLSIDFromStringA(LPCSTR,CLSID*);
53 DWORD WINAPI SHCLSIDFromStringW(LPCWSTR,CLSID*);
54 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
55 HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**);
56 void WINAPI SHDestroyPropSheetExtArray(HPSXA);
57 BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
58 DWORD WINAPI SHFormatDrive(HWND,UINT,UINT,UINT);
59 void WINAPI SHFree(LPVOID);
60 BOOL WINAPI GetFileNameFromBrowse(HWND,LPWSTR,DWORD,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
61 HRESULT WINAPI SHGetInstanceExplorer(IUnknown**);
62 HRESULT WINAPI SHGetFolderPathAndSubDirA(HWND,int,HANDLE,DWORD,LPCSTR,LPSTR);
63 HRESULT WINAPI SHGetFolderPathAndSubDirW(HWND,int,HANDLE,DWORD,LPCWSTR,LPWSTR);
64 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir);
65 BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
66 BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
67 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
68 INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST);
69 HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
70 HRESULT WINAPI SHLoadOLE(LPARAM);
71 HRESULT WINAPI SHParseDisplayName(LPCWSTR,IBindCtx*,LPITEMIDLIST*,SFGAOF,SFGAOF*);
72 HRESULT WINAPI SHPathPrepareForWriteA(HWND,IUnknown*,LPCSTR,DWORD);
73 HRESULT WINAPI SHPathPrepareForWriteW(HWND,IUnknown*,LPCWSTR,DWORD);
74 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite);
75 UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM);
76 LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
77 int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
78 HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
79 VOID WINAPI SHUpdateImageA(LPCSTR,INT,UINT,INT);
80 VOID WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
81 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
82 int WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
83 int WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
84 BOOL WINAPI IsUserAnAdmin(void);
86 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formattable */
87 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was cancelled */
88 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formattable */
90 /* SHFormatDrive flags */
91 #define SHFMT_ID_DEFAULT 0xFFFF
92 #define SHFMT_OPT_FULL 1
93 #define SHFMT_OPT_SYSONLY 2
95 /* SHPathPrepareForWrite flags */
96 #define SHPPFW_NONE 0x00000000
97 #define SHPPFW_DIRCREATE 0x00000001
98 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
99 #define SHPPFW_ASKDIRCREATE 0x00000002
100 #define SHPPFW_IGNOREFILENAME 0x00000004
101 #define SHPPFW_NOWRITECHECK 0x00000008
102 #define SHPPFW_MEDIACHECKONLY 0x00000010
104 /* SHObjectProperties flags */
105 #define SHOP_PRINTERNAME 0x01
106 #define SHOP_FILEPATH 0x02
107 #define SHOP_VOLUMEGUID 0x04
109 BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
111 #define PCS_FATAL 0x80000000
112 #define PCS_REPLACEDCHAR 0x00000001
113 #define PCS_REMOVEDCHAR 0x00000002
114 #define PCS_TRUNCATED 0x00000004
115 #define PCS_PATHTOOLONG 0x00000008
117 int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
119 /*****************************************************************************
120 * IContextMenu interface
124 /* DATAOBJECT_InitShellIDList*/
125 #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
126 #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
127 #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
128 /* DATAOBJECT_InitFileGroupDesc */
129 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
130 /* DATAOBJECT_InitFileContents*/
131 #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
132 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
133 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
134 #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
135 #define CFSTR_SHELLURLA "UniformResourceLocator"
136 #define CFSTR_INETURLA CFSTR_SHELLURLA
137 #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
138 #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
139 #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
140 #define CFSTR_INDRAGLOOPA "InShellDragLoop"
141 #define CFSTR_DRAGCONTEXTA "DragContext"
142 #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
143 #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
144 #define CFSTR_TARGETCLSIDA "TargetCLSID"
145 #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
146 #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
148 #if defined(__GNUC__)
149 # define CFSTR_SHELLIDLISTW \
150 (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
151 # define CFSTR_SHELLIDLISTOFFSETW \
152 (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
153 # define CFSTR_NETRESOURCESW \
154 (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
155 # define CFSTR_FILEDESCRIPTORW \
156 (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
157 # define CFSTR_FILECONTENTSW \
158 (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
159 # define CFSTR_FILENAMEW \
160 (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
161 # define CFSTR_FILENAMEMAPW \
162 (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
163 # define CFSTR_PRINTERGROUPW \
164 (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
165 # define CFSTR_SHELLURLW \
166 (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 }
167 # define CFSTR_INETURLW \
168 (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 }
169 # define CFSTR_PREFERREDDROPEFFECTW \
170 (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
171 # define CFSTR_PERFORMEDDROPEFFECTW \
172 (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
173 # define CFSTR_PASTESUCCEEDEDW \
174 (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
175 # define CFSTR_INDRAGLOOPW \
176 (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
177 # define CFSTR_DRAGCONTEXTW \
178 (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
179 # define CFSTR_MOUNTEDVOLUMEW \
180 (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
181 # define CFSTR_PERSISTEDDATAOBJECTW \
182 (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
183 # define CFSTR_TARGETCLSIDW \
184 (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
185 # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
186 (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
187 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
188 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
189 (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
190 ' ','D','r','o','p','E','f','f','e','c','t',0 }
191 #elif defined(_MSC_VER)
192 # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
193 # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
194 # define CFSTR_NETRESOURCESW L"Net Resource"
195 # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
196 # define CFSTR_FILECONTENTSW L"FileContents"
197 # define CFSTR_FILENAMEW L"FileNameW"
198 # define CFSTR_FILENAMEMAPW L"FileNameMapW"
199 # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
200 # define CFSTR_SHELLURLW L"UniformResourceLocator"
201 # define CFSTR_INETURLW L"UniformResourceLocatorW"
202 # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
203 # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
204 # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
205 # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
206 # define CFSTR_DRAGCONTEXTW L"DragContext"
207 # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
208 # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
209 # define CFSTR_TARGETCLSIDW L"TargetCLSID"
210 # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
211 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
212 #else
213 static const WCHAR CFSTR_SHELLIDLISTW[] =
214 { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
215 static const WCHAR CFSTR_SHELLIDLISTOFFSETW[] =
216 { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
217 static const WCHAR CFSTR_NETRESOURCESW[] =
218 { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
219 static const WCHAR CFSTR_FILEDESCRIPTORW[] =
220 { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
221 static const WCHAR CFSTR_FILECONTENTSW[] =
222 { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
223 static const WCHAR CFSTR_FILENAMEW[] =
224 { 'F','i','l','e','N','a','m','e','W',0 };
225 static const WCHAR CFSTR_FILENAMEMAPW[] =
226 { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
227 static const WCHAR CFSTR_PRINTERGROUPW[] =
228 { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
229 static const WCHAR CFSTR_SHELLURLW[] =
230 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
231 static const WCHAR CFSTR_INETURLW[] =
232 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
233 static const WCHAR CFSTR_PREFERREDDROPEFFECTW[] =
234 { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
235 static const WCHAR CFSTR_PERFORMEDDROPEFFECTW[] =
236 { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
237 static const WCHAR CFSTR_PASTESUCCEEDEDW[] =
238 { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
239 static const WCHAR CFSTR_INDRAGLOOPW[] =
240 { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
241 static const WCHAR CFSTR_DRAGCONTEXTW[] =
242 { 'D','r','a','g','C','o','n','t','e','x','t',0 };
243 static const WCHAR CFSTR_MOUNTEDVOLUMEW[] =
244 { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
245 static const WCHAR CFSTR_PERSISTEDDATAOBJECTW[] =
246 { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
247 static const WCHAR CFSTR_TARGETCLSIDW[] =
248 { 'T','a','r','g','e','t','C','L','S','I','D',0 };
249 static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW[] =
250 { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
251 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
252 static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW[] =
253 { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
254 ' ','D','r','o','p','E','f','f','e','c','t',0 };
255 #endif
257 #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
258 #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
259 #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
260 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
261 #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
262 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
263 #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
264 #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
265 #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
266 #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
267 #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
268 #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
269 #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
270 #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
271 #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
272 #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
273 #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
274 #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
275 #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
276 #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
278 typedef struct
279 { UINT cidl;
280 UINT aoffset[1];
281 } CIDA, *LPIDA;
283 /************************************************************************
284 * IShellView interface
287 #define FCIDM_SHVIEWFIRST 0x0000
288 /* undocumented */
289 #define FCIDM_SHVIEW_ARRANGE 0x7001
290 #define FCIDM_SHVIEW_DELETE 0x7011
291 #define FCIDM_SHVIEW_PROPERTIES 0x7013
292 #define FCIDM_SHVIEW_CUT 0x7018
293 #define FCIDM_SHVIEW_COPY 0x7019
294 #define FCIDM_SHVIEW_INSERT 0x701A
295 #define FCIDM_SHVIEW_UNDO 0x701B
296 #define FCIDM_SHVIEW_INSERTLINK 0x701C
297 #define FCIDM_SHVIEW_SELECTALL 0x7021
298 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
300 #define FCIDM_SHVIEW_BIGICON 0x7029
301 #define FCIDM_SHVIEW_SMALLICON 0x702A
302 #define FCIDM_SHVIEW_LISTVIEW 0x702B
303 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
304 /* 0x7030-0x703f are used by the shellbrowser */
305 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
306 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
308 #define FCIDM_SHVIEW_HELP 0x7041
309 #define FCIDM_SHVIEW_RENAME 0x7050
310 #define FCIDM_SHVIEW_CREATELINK 0x7051
311 #define FCIDM_SHVIEW_NEWLINK 0x7052
312 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
314 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
315 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
316 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
318 #define FCIDM_SHVIEWLAST 0x7fff
319 #define FCIDM_BROWSERFIRST 0xA000
320 /* undocumented toolbar items from stddlg's*/
321 #define FCIDM_TB_UPFOLDER 0xA001
322 #define FCIDM_TB_NEWFOLDER 0xA002
323 #define FCIDM_TB_SMALLICON 0xA003
324 #define FCIDM_TB_REPORTVIEW 0xA004
325 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
327 #define FCIDM_BROWSERLAST 0xbf00
328 #define FCIDM_GLOBALFIRST 0x8000
329 #define FCIDM_GLOBALLAST 0x9fff
332 * Global submenu IDs and separator IDs
334 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
335 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
336 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
337 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
338 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
339 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
340 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
341 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
342 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
343 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
345 /* control IDs known to the view */
346 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
347 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
349 #define INTERFACE IShellDetails
350 DECLARE_INTERFACE_(IShellDetails, IUnknown)
352 /*** IUnknown methods ***/
353 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
354 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
355 STDMETHOD_(ULONG,Release) (THIS) PURE;
356 /*** IShellDetails methods ***/
357 STDMETHOD(GetDetailsOf)(THIS_ PCUITEMID_CHILD pidl, UINT iColumn, SHELLDETAILS *pDetails) PURE;
358 STDMETHOD(ColumnClick)(THIS_ UINT iColumn) PURE;
360 #undef INTERFACE
362 #if !defined(__cplusplus) || defined(CINTERFACE)
363 /*** IUnknown methods ***/
364 #define IShellDetails_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
365 #define IShellDetails_AddRef(p) (p)->lpVtbl->AddRef(p)
366 #define IShellDetails_Release(p) (p)->lpVtbl->Release(p)
367 /*** IShellDetails methods ***/
368 #define IShellDetails_GetDetailsOf(p,a,b,c) (p)->lpVtbl->GetDetailsOf(p,a,b,c)
369 #define IShellDetails_ColumnClick(p,a) (p)->lpVtbl->ColumnClick(p,a)
370 #endif
372 /* IQueryInfo interface */
373 #define INTERFACE IQueryInfo
374 DECLARE_INTERFACE_(IQueryInfo,IUnknown)
376 /*** IUnknown methods ***/
377 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
378 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
379 STDMETHOD_(ULONG,Release)(THIS) PURE;
380 /*** IQueryInfo methods ***/
381 STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, WCHAR** lppTips) PURE;
382 STDMETHOD(GetInfoFlags)(THIS_ DWORD* lpFlags) PURE;
384 #undef INTERFACE
386 #if !defined(__cplusplus) || defined(CINTERFACE)
387 /*** IUnknown methods ***/
388 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
389 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
390 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
391 /*** IQueryInfo methods ***/
392 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
393 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
394 #endif
396 /* IInputObject interface */
397 #define INTERFACE IInputObject
398 DECLARE_INTERFACE_(IInputObject,IUnknown)
400 /*** IUnknown methods ***/
401 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
402 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
403 STDMETHOD_(ULONG,Release)(THIS) PURE;
404 /*** IInputObject methods ***/
405 STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
406 STDMETHOD(HasFocusIO)(THIS) PURE;
407 STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
409 #undef INTERFACE
411 #if !defined(__cplusplus) || defined(CINTERFACE)
412 /*** IUnknown methods ***/
413 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
414 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
415 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
416 /*** IInputObject methods ***/
417 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
418 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
419 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
420 #endif
422 /* IInputObjectSite interface */
423 #define INTERFACE IInputObjectSite
424 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
426 /*** IUnknown methods ***/
427 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
428 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
429 STDMETHOD_(ULONG,Release) (THIS) PURE;
430 /*** IInputObjectSite methods ***/
431 STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
433 #undef INTERFACE
435 #if !defined(__cplusplus) || defined(CINTERFACE)
436 /*** IUnknown methods ***/
437 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
438 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
439 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
440 /*** IInputObject methods ***/
441 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
442 #endif
444 /* IObjMgr interface */
445 #define INTERFACE IObjMgr
446 DECLARE_INTERFACE_(IObjMgr,IUnknown)
448 /*** IUnknown methods ***/
449 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
450 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
451 STDMETHOD_(ULONG,Release) (THIS) PURE;
452 /*** IObjMgr methods ***/
453 STDMETHOD(Append)(THIS_ LPUNKNOWN punk) PURE;
454 STDMETHOD(Remove)(THIS_ LPUNKNOWN punk) PURE;
456 #undef INTERFACE
458 #if !defined(__cplusplus) || defined(CINTERFACE)
459 /*** IUnknown methods ***/
460 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
461 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
462 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
463 /*** IObjMgr methods ***/
464 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
465 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
466 #endif
468 /* IACList interface */
469 #define INTERFACE IACList
470 DECLARE_INTERFACE_(IACList,IUnknown)
472 /*** IUnknown methods ***/
473 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
474 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
475 STDMETHOD_(ULONG,Release) (THIS) PURE;
476 /*** IACList methods ***/
477 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
479 #undef INTERFACE
481 #if !defined(__cplusplus) || defined(CINTERFACE)
482 /*** IUnknown methods ***/
483 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
484 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
485 #define IACList_Release(p) (p)->lpVtbl->Release(p)
486 /*** IACList methods ***/
487 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
488 #endif
490 /* IACList2 interface */
491 #define INTERFACE IACList2
492 DECLARE_INTERFACE_(IACList2,IACList)
494 /*** IUnknown methods ***/
495 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
496 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
497 STDMETHOD_(ULONG,Release) (THIS) PURE;
498 /*** IACList methods ***/
499 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
500 /*** IACList2 methods ***/
501 STDMETHOD(SetOptions)(THIS_ DWORD dwFlag) PURE;
502 STDMETHOD(GetOptions)(THIS_ DWORD* pdwFlag) PURE;
504 #undef INTERFACE
506 #if !defined(__cplusplus) || defined(CINTERFACE)
507 /*** IUnknown methods ***/
508 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
509 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
510 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
511 /*** IACList2 methods ***/
512 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
513 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
514 #endif
516 /****************************************************************************
517 * IShellFolderViewCB interface
520 #define INTERFACE IShellFolderViewCB
521 DECLARE_INTERFACE_(IShellFolderViewCB,IUnknown)
523 /*** IUnknown methods ***/
524 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
525 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
526 STDMETHOD_(ULONG,Release)(THIS) PURE;
527 /*** IShellFolderViewCB methods ***/
528 STDMETHOD(MessageSFVCB)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam) PURE;
530 #undef INTERFACE
532 #if !defined(__cplusplus) || defined(CINTERFACE)
533 /*** IUnknown methods ***/
534 #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
535 #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
536 #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
537 /*** IShellFolderViewCB methods ***/
538 #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
539 #endif
541 /****************************************************************************
542 * IShellFolderView interface
545 typedef struct _ITEMSPACING
547 int cxSmall;
548 int cySmall;
549 int cxLarge;
550 int cyLarge;
551 } ITEMSPACING;
553 #define INTERFACE IShellFolderView
554 DEFINE_GUID(IID_IShellFolderView,0x37a378c0,0xf82d,0x11ce,0xae,0x65,0x08,0x00,0x2b,0x2e,0x12,0x62);
555 DECLARE_INTERFACE_(IShellFolderView, IUnknown)
557 /*** IUnknown methods ***/
558 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
559 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
560 STDMETHOD_(ULONG,Release) (THIS) PURE;
562 /*** IShellFolderView methods ***/
563 STDMETHOD(Rearrange) (THIS_ LPARAM lParamSort) PURE;
564 STDMETHOD(GetArrangeParam) (THIS_ LPARAM *plParamSort) PURE;
565 STDMETHOD(ArrangeGrid) (THIS) PURE;
566 STDMETHOD(AutoArrange) (THIS) PURE;
567 STDMETHOD(GetAutoArrange) (THIS) PURE;
568 STDMETHOD(AddObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
569 STDMETHOD(GetObject) (THIS_ PITEMID_CHILD *ppidl, UINT uItem) PURE;
570 STDMETHOD(RemoveObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
571 STDMETHOD(GetObjectCount) (THIS_ UINT *puCount) PURE;
572 STDMETHOD(SetObjectCount) (THIS_ UINT uCount, UINT dwFlags) PURE;
573 STDMETHOD(UpdateObject) (THIS_ PITEMID_CHILD pidlOld, PITEMID_CHILD pidlNew, UINT *puItem) PURE;
574 STDMETHOD(RefreshObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
575 STDMETHOD(SetRedraw) (THIS_ BOOL bRedraw) PURE;
576 STDMETHOD(GetSelectedCount) (THIS_ UINT *puSelected) PURE;
577 STDMETHOD(GetSelectedObjects) (THIS_ PCITEMID_CHILD **pppidl, UINT *puItems) PURE;
578 STDMETHOD(IsDropOnSource) (THIS_ IDropTarget *pDropTarget) PURE;
579 STDMETHOD(GetDragPoint) (THIS_ POINT *ppt) PURE;
580 STDMETHOD(GetDropPoint) (THIS_ POINT *ppt) PURE;
581 STDMETHOD(MoveIcons) (THIS_ IDataObject *pDataObject) PURE;
582 STDMETHOD(SetItemPos) (THIS_ PCUITEMID_CHILD pidl, POINT *ppt) PURE;
583 STDMETHOD(IsBkDropTarget) (THIS_ IDropTarget *pDropTarget) PURE;
584 STDMETHOD(SetClipboard) (THIS_ BOOL bMove) PURE;
585 STDMETHOD(SetPoints) (THIS_ IDataObject *pDataObject) PURE;
586 STDMETHOD(GetItemSpacing) (THIS_ ITEMSPACING *pSpacing) PURE;
587 STDMETHOD(SetCallback) (THIS_ IShellFolderViewCB* pNewCB, IShellFolderViewCB** ppOldCB) PURE;
588 STDMETHOD(Select) ( THIS_ UINT dwFlags ) PURE;
589 STDMETHOD(QuerySupport) (THIS_ UINT * pdwSupport ) PURE;
590 STDMETHOD(SetAutomationObject)(THIS_ IDispatch* pdisp) PURE;
592 #undef INTERFACE
594 #if !defined(__cplusplus) || defined(CINTERFACE)
595 /*** IUnknown methods ***/
596 #define IShellFolderView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
597 #define IShellFolderView_AddRef(p) (p)->lpVtbl->AddRef(p)
598 #define IShellFolderView_Release(p) (p)->lpVtbl->Release(p)
599 /*** IShellFolderView methods ***/
600 #define IShellFolderView_Rearrange(p,a) (p)->lpVtbl->Rearrange(p,a)
601 #define IShellFolderView_GetArrangeParam(p,a) (p)->lpVtbl->GetArrangeParam(p,a)
602 #define IShellFolderView_ArrangeGrid(p) (p)->lpVtbl->ArrangeGrid(p)
603 #define IShellFolderView_AutoArrange(p) (p)->lpVtbl->AutoArrange(p)
604 #define IShellFolderView_GetAutoArrange(p) (p)->lpVtbl->GetAutoArrange(p)
605 #define IShellFolderView_AddObject(p,a,b) (p)->lpVtbl->AddObject(p,a,b)
606 #define IShellFolderView_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
607 #define IShellFolderView_RemoveObject(p,a,b) (p)->lpVtbl->RemoveObject(p,a,b)
608 #define IShellFolderView_GetObjectCount(p,a) (p)->lpVtbl->GetObjectCount(p,a)
609 #define IShellFolderView_SetObjectCount(p,a,b) (p)->lpVtbl->SetObjectCount(p,a,b)
610 #define IShellFolderView_UpdateObject(p,a,b,c) (p)->lpVtbl->UpdateObject(p,a,b,c)
611 #define IShellFolderView_RefreshObject(p,a,b) (p)->lpVtbl->RefreshObject(p,a,b)
612 #define IShellFolderView_SetRedraw(p,a) (p)->lpVtbl->SetRedraw(p,a)
613 #define IShellFolderView_GetSelectedCount(p,a) (p)->lpVtbl->GetSelectedCount(p,a)
614 #define IShellFolderView_GetSelectedObjects(p,a,b) (p)->lpVtbl->GetSelectedObjects(p,a,b)
615 #define IShellFolderView_IsDropOnSource(p,a) (p)->lpVtbl->IsDropOnSource(p,a)
616 #define IShellFolderView_GetDragPoint(p,a) (p)->lpVtbl->GetDragPoint(p,a)
617 #define IShellFolderView_GetDropPoint(p,a) (p)->lpVtbl->GetDropPoint(p,a)
618 #define IShellFolderView_MoveIcons(p,a) (p)->lpVtbl->MoveIcons(p,a)
619 #define IShellFolderView_SetItemPos(p,a,b) (p)->lpVtbl->SetItemPos(p,a,b)
620 #define IShellFolderView_DropTarget(p,a) (p)->lpVtbl->DropTarget(p,a)
621 #define IShellFolderView_SetClipboard(p,a) (p)->lpVtbl->SetClipboard(p,a)
622 #define IShellFolderView_SetPoints(p,a) (p)->lpVtbl->SetPoints(p,a)
623 #define IShellFolderView_GetItemSpacing(p,a) (p)->lpVtbl->GetItemSpacing(p,a)
624 #define IShellFolderView_SetCallback(p,a) (p)->lpVtbl->SetCallback(p,a)
625 #define IShellFolderView_Select(p,a) (p)->lpVtbl->Select(p,a)
626 #define IShellFolderView_QuerySupport(p,a) (p)->lpVtbl->QuerySupport(p,a)
627 #define IShellFolderView_SetAutomationObject(p,a) (p)->lpVtbl->SetAutomationObject(p,a)
628 #endif
630 /* IProgressDialog interface */
631 #define PROGDLG_NORMAL 0x00000000
632 #define PROGDLG_MODAL 0x00000001
633 #define PROGDLG_AUTOTIME 0x00000002
634 #define PROGDLG_NOTIME 0x00000004
635 #define PROGDLG_NOMINIMIZE 0x00000008
636 #define PROGDLG_NOPROGRESSBAR 0x00000010
637 #define PROGDLG_MARQUEEPROGRESS 0x00000020
638 #define PROGDLG_NOCANCEL 0x00000040
640 #define PDTIMER_RESET 0x00000001
641 #define PDTIMER_PAUSE 0x00000002
642 #define PDTIMER_RESUME 0x00000003
644 #define INTERFACE IProgressDialog
645 DECLARE_INTERFACE_(IProgressDialog,IUnknown)
647 /*** IUnknown methods ***/
648 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
649 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
650 STDMETHOD_(ULONG,Release) (THIS) PURE;
651 /*** IProgressDialog methods ***/
652 STDMETHOD(StartProgressDialog)(THIS_ HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved) PURE;
653 STDMETHOD(StopProgressDialog)(THIS) PURE;
654 STDMETHOD(SetTitle)(THIS_ LPCWSTR pwzTitle) PURE;
655 STDMETHOD(SetAnimation)(THIS_ HINSTANCE hInstance, UINT uiResourceId) PURE;
656 STDMETHOD_(BOOL,HasUserCancelled)(THIS) PURE;
657 STDMETHOD(SetProgress)(THIS_ DWORD dwCompleted, DWORD dwTotal) PURE;
658 STDMETHOD(SetProgress64)(THIS_ ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
659 STDMETHOD(SetLine)(THIS_ DWORD dwLineNum, LPCWSTR pwzString, BOOL bPath, LPCVOID reserved) PURE;
660 STDMETHOD(SetCancelMsg)(THIS_ LPCWSTR pwzCancelMsg, LPCVOID reserved) PURE;
661 STDMETHOD(Timer)(THIS_ DWORD dwTimerAction, LPCVOID reserved) PURE;
663 #undef INTERFACE
665 #if !defined(__cplusplus) || defined(CINTERFACE)
666 /*** IUnknown methods ***/
667 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
668 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
669 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
670 /*** IProgressDialog methods ***/
671 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
672 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
673 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
674 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
675 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
676 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
677 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
678 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
679 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
680 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
681 #endif
684 /****************************************************************************
685 * SHAddToRecentDocs API
687 #define SHARD_PIDL 0x00000001L
688 #define SHARD_PATHA 0x00000002L
689 #define SHARD_PATHW 0x00000003L
690 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
692 void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
694 /****************************************************************************
695 * SHBrowseForFolder API
697 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
699 #include <pshpack8.h>
701 typedef struct tagBROWSEINFOA {
702 HWND hwndOwner;
703 LPCITEMIDLIST pidlRoot;
704 LPSTR pszDisplayName;
705 LPCSTR lpszTitle;
706 UINT ulFlags;
707 BFFCALLBACK lpfn;
708 LPARAM lParam;
709 INT iImage;
710 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
712 typedef struct tagBROWSEINFOW {
713 HWND hwndOwner;
714 LPCITEMIDLIST pidlRoot;
715 LPWSTR pszDisplayName;
716 LPCWSTR lpszTitle;
717 UINT ulFlags;
718 BFFCALLBACK lpfn;
719 LPARAM lParam;
720 INT iImage;
721 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
723 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
724 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
725 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
727 #include <poppack.h>
729 /* Browsing for directory. */
730 #define BIF_RETURNONLYFSDIRS 0x0001
731 #define BIF_DONTGOBELOWDOMAIN 0x0002
732 #define BIF_STATUSTEXT 0x0004
733 #define BIF_RETURNFSANCESTORS 0x0008
734 #define BIF_EDITBOX 0x0010
735 #define BIF_VALIDATE 0x0020
736 #define BIF_NEWDIALOGSTYLE 0x0040
737 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
738 #define BIF_BROWSEINCLUDEURLS 0x0080
739 #define BIF_UAHINT 0x0100
740 #define BIF_NONEWFOLDERBUTTON 0x0200
741 #define BIF_NOTRANSLATETARGETS 0x0400
743 #define BIF_BROWSEFORCOMPUTER 0x1000
744 #define BIF_BROWSEFORPRINTER 0x2000
745 #define BIF_BROWSEINCLUDEFILES 0x4000
747 /* message from browser */
748 #define BFFM_INITIALIZED 1
749 #define BFFM_SELCHANGED 2
750 #define BFFM_VALIDATEFAILEDA 3
751 #define BFFM_VALIDATEFAILEDW 4
752 #define BFFM_IUNKNOWN 5
754 /* messages to browser */
755 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
756 #define BFFM_ENABLEOK (WM_USER+101)
757 #define BFFM_SETSELECTIONA (WM_USER+102)
758 #define BFFM_SETSELECTIONW (WM_USER+103)
759 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
760 #define BFFM_SETOKTEXT (WM_USER+105)
761 #define BFFM_SETEXPANDED (WM_USER+106)
763 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
764 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
765 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
766 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
767 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
768 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
770 /**********************************************************************
771 * SHCreateShellFolderViewEx API
774 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
775 IShellView* dwUser,
776 IShellFolder* pshf,
777 HWND hWnd,
778 UINT uMsg,
779 WPARAM wParam,
780 LPARAM lParam);
782 typedef struct _CSFV
784 UINT cbSize;
785 IShellFolder* pshf;
786 IShellView* psvOuter;
787 LPCITEMIDLIST pidl;
788 LONG lEvents;
789 LPFNVIEWCALLBACK pfnCallback;
790 FOLDERVIEWMODE fvm;
791 } CSFV, *LPCSFV;
793 HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
795 /* SHCreateShellFolderViewEx callback messages */
796 #define SFVM_MERGEMENU 1
797 #define SFVM_INVOKECOMMAND 2
798 #define SFVM_GETHELPTEXT 3
799 #define SFVM_GETTOOLTIPTEXT 4
800 #define SFVM_GETBUTTONINFO 5
801 #define SFVM_GETBUTTONS 6
802 #define SFVM_INITMENUPOPUP 7
803 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
804 #define SFVM_DRAWMENUITEM 9 /* undocumented */
805 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
806 #define SFVM_EXITMENULOOP 11 /* undocumented */
807 #define SFVM_VIEWRELEASE 12 /* undocumented */
808 #define SFVM_GETNAMELENGTH 13 /* undocumented */
809 #define SFVM_FSNOTIFY 14
810 #define SFVM_WINDOWCREATED 15
811 #define SFVM_WINDOWCLOSING 16 /* undocumented */
812 #define SFVM_LISTREFRESHED 17 /* undocumented */
813 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
814 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
815 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
816 #define SFVM_GETDETAILSOF 23
817 #define SFVM_COLUMNCLICK 24
818 #define SFVM_QUERYFSNOTIFY 25
819 #define SFVM_DEFITEMCOUNT 26
820 #define SFVM_DEFVIEWMODE 27
821 #define SFVM_UNMERGEFROMMENU 28
822 #define SFVM_ADDINGOBJECT 29 /* undocumented */
823 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
824 #define SFVM_UPDATESTATUSBAR 31
825 #define SFVM_BACKGROUNDENUM 32
826 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
827 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
828 #define SFVM_CANSELECTALL 35 /* undocumented */
829 #define SFVM_DIDDRAGDROP 36
830 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
831 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
832 #define SFVM_SETISFV 39
833 #define SFVM_GETEXTVIEWS 40 /* undocumented */
834 #define SFVM_THISIDLIST 41
835 #define SFVM_ADDPROPERTYPAGES 47
836 #define SFVM_BACKGROUNDENUMDONE 48
837 #define SFVM_GETNOTIFY 49
838 #define SFVM_GETSORTDEFAULTS 53
839 #define SFVM_SIZE 57
840 #define SFVM_GETZONE 58
841 #define SFVM_GETPANE 59
842 #define SFVM_GETHELPTOPIC 63
843 #define SFVM_GETANIMATION 68
844 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
845 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
846 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
847 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
848 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
849 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
850 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
851 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
853 typedef struct _SFV_CREATE
855 UINT cbSize;
856 IShellFolder *pshf;
857 IShellView *psvOuter;
858 IShellFolderViewCB *psfvcb;
859 } SFV_CREATE;
861 HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *pscfv, IShellView **ppsv);
863 /* Types and definitions for the SFM_* parameters */
864 #include <pshpack8.h>
866 #define QCMINFO_PLACE_BEFORE 0
867 #define QCMINFO_PLACE_AFTER 1
868 typedef struct _QCMINFO_IDMAP_PLACEMENT
870 UINT id;
871 UINT fFlags;
872 } QCMINFO_IDMAP_PLACEMENT;
874 typedef struct _QCMINFO_IDMAP
876 UINT nMaxIds;
877 QCMINFO_IDMAP_PLACEMENT pIdList[1];
878 } QCMINFO_IDMAP;
880 typedef struct _QCMINFO
882 HMENU hmenu;
883 UINT indexMenu;
884 UINT idCmdFirst;
885 UINT idCmdLast;
886 QCMINFO_IDMAP const* pIdMap;
887 } QCMINFO, *LPQCMINFO;
889 #define TBIF_DEFAULT 0x00000000
890 #define TBIF_APPEND 0x00000000
891 #define TBIF_PREPEND 0x00000001
892 #define TBIF_REPLACE 0x00000002
893 #define TBIF_INTERNETBAR 0x00010000
894 #define TBIF_STANDARDTOOLBAR 0x00020000
895 #define TBIF_NOTOOLBAR 0x00030000
897 typedef struct _TBINFO
899 UINT cbuttons;
900 UINT uFlags;
901 } TBINFO, *LPTBINFO;
903 #include <poppack.h>
905 /****************************************************************************
906 * SHShellFolderView_Message API
909 LRESULT WINAPI SHShellFolderView_Message(
910 HWND hwndCabinet,
911 UINT uMessage,
912 LPARAM lParam);
914 /* SHShellFolderView_Message messages */
915 #define SFVM_REARRANGE 0x0001
916 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
917 #define SFVM_ADDOBJECT 0x0003
918 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
919 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
920 #define SFVM_REMOVEOBJECT 0x0006
921 #define SFVM_UPDATEOBJECT 0x0007
922 #define SFVM_SETREDRAW 0x0008 /* undocumented */
923 #define SFVM_GETSELECTEDOBJECTS 0x0009
924 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
925 #define SFVM_MOVEICONS 0x000B /* undocumented */
926 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
927 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
928 #define SFVM_SETITEMPOS 0x000E
929 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
930 #define SFVM_SETCLIPBOARD 0x0010
931 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
932 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
933 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
934 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
935 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
936 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
937 #define SFVM_SETPOINTS 0x0017
939 /****************************************************************************
940 * SHGetDataFromIDList API
942 #define SHGDFIL_FINDDATA 1
943 #define SHGDFIL_NETRESOURCE 2
944 #define SHGDFIL_DESCRIPTIONID 3
946 #define SHDID_ROOT_REGITEM 1
947 #define SHDID_FS_FILE 2
948 #define SHDID_FS_DIRECTORY 3
949 #define SHDID_FS_OTHER 4
950 #define SHDID_COMPUTER_DRIVE35 5
951 #define SHDID_COMPUTER_DRIVE525 6
952 #define SHDID_COMPUTER_REMOVABLE 7
953 #define SHDID_COMPUTER_FIXED 8
954 #define SHDID_COMPUTER_NETDRIVE 9
955 #define SHDID_COMPUTER_CDROM 10
956 #define SHDID_COMPUTER_RAMDISK 11
957 #define SHDID_COMPUTER_OTHER 12
958 #define SHDID_NET_DOMAIN 13
959 #define SHDID_NET_SERVER 14
960 #define SHDID_NET_SHARE 15
961 #define SHDID_NET_RESTOFNET 16
962 #define SHDID_NET_OTHER 17
963 #define SHDID_COMPUTER_IMAGING 18
964 #define SHDID_COMPUTER_AUDIO 19
965 #define SHDID_COMPUTER_SHAREDDOCS 20
967 #include <pshpack8.h>
969 typedef struct _SHDESCRIPTIONID
970 { DWORD dwDescriptionId;
971 CLSID clsid;
972 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
974 #include <poppack.h>
976 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
977 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
978 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
980 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
981 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
982 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
984 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
986 /**********************************************************************
987 * SHGetSetSettings ()
990 typedef struct
992 BOOL fShowAllObjects : 1;
993 BOOL fShowExtensions : 1;
994 BOOL fNoConfirmRecycle : 1;
996 BOOL fShowSysFiles : 1;
997 BOOL fShowCompColor : 1;
998 BOOL fDoubleClickInWebView : 1;
999 BOOL fDesktopHTML : 1;
1000 BOOL fWin95Classic : 1;
1001 BOOL fDontPrettyPath : 1;
1002 BOOL fShowAttribCol : 1;
1003 BOOL fMapNetDrvBtn : 1;
1004 BOOL fShowInfoTip : 1;
1005 BOOL fHideIcons : 1;
1006 BOOL fWebView : 1;
1007 BOOL fFilter : 1;
1008 BOOL fShowSuperHidden : 1;
1009 BOOL fNoNetCrawling : 1;
1011 UINT :15; /* Required for proper binary layout with gcc */
1012 DWORD dwWin95Unused;
1013 UINT uWin95Unused;
1014 LONG lParamSort;
1015 int iSortDirection;
1016 UINT version;
1017 UINT uNotUsed;
1018 BOOL fSepProcess: 1;
1019 BOOL fStartPanelOn: 1;
1020 BOOL fShowStartPage: 1;
1021 UINT fSpareFlags : 13;
1022 UINT :15; /* Required for proper binary layout with gcc */
1023 } SHELLSTATE, *LPSHELLSTATE;
1025 /**********************************************************************
1026 * SHGetSettings ()
1028 typedef struct
1029 { BOOL fShowAllObjects : 1;
1030 BOOL fShowExtensions : 1;
1031 BOOL fNoConfirmRecycle : 1;
1032 BOOL fShowSysFiles : 1;
1034 BOOL fShowCompColor : 1;
1035 BOOL fDoubleClickInWebView : 1;
1036 BOOL fDesktopHTML : 1;
1037 BOOL fWin95Classic : 1;
1039 BOOL fDontPrettyPath : 1;
1040 BOOL fShowAttribCol : 1;
1041 BOOL fMapNetDrvBtn : 1;
1042 BOOL fShowInfoTip : 1;
1044 BOOL fHideIcons : 1;
1045 UINT fRestFlags : 3;
1046 UINT :15; /* Required for proper binary layout with gcc */
1047 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
1049 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
1051 #define SSF_SHOWALLOBJECTS 0x0001
1052 #define SSF_SHOWEXTENSIONS 0x0002
1053 #define SSF_SHOWCOMPCOLOR 0x0008
1054 #define SSF_SHOWSYSFILES 0x0020
1055 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
1056 #define SSF_SHOWATTRIBCOL 0x0100
1057 #define SSF_DESKTOPHTML 0x0200
1058 #define SSF_WIN95CLASSIC 0x0400
1059 #define SSF_DONTPRETTYPATH 0x0800
1060 #define SSF_SHOWINFOTIP 0x2000
1061 #define SSF_MAPNETDRVBUTTON 0x1000
1062 #define SSF_NOCONFIRMRECYCLE 0x8000
1063 #define SSF_HIDEICONS 0x4000
1065 /****************************************************************************
1066 * SHRestricted API
1068 typedef enum RESTRICTIONS
1070 REST_NONE = 0x00000000,
1071 REST_NORUN = 0x00000001,
1072 REST_NOCLOSE = 0x00000002,
1073 REST_NOSAVESET = 0x00000004,
1074 REST_NOFILEMENU = 0x00000008,
1075 REST_NOSETFOLDERS = 0x00000010,
1076 REST_NOSETTASKBAR = 0x00000020,
1077 REST_NODESKTOP = 0x00000040,
1078 REST_NOFIND = 0x00000080,
1079 REST_NODRIVES = 0x00000100,
1080 REST_NODRIVEAUTORUN = 0x00000200,
1081 REST_NODRIVETYPEAUTORUN = 0x00000400,
1082 REST_NONETHOOD = 0x00000800,
1083 REST_STARTBANNER = 0x00001000,
1084 REST_RESTRICTRUN = 0x00002000,
1085 REST_NOPRINTERTABS = 0x00004000,
1086 REST_NOPRINTERDELETE = 0x00008000,
1087 REST_NOPRINTERADD = 0x00010000,
1088 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
1089 REST_MYDOCSONNET = 0x00040000,
1090 REST_NOEXITTODOS = 0x00080000,
1091 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
1092 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
1093 REST_NOCOMMONGROUPS = 0x00400000,
1094 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
1095 REST_NOWEB = 0x01000000,
1096 REST_NOTRAYCONTEXTMENU = 0x02000000,
1097 REST_NOVIEWCONTEXTMENU = 0x04000000,
1098 REST_NONETCONNECTDISCONNECT = 0x08000000,
1099 REST_STARTMENULOGOFF = 0x10000000,
1100 REST_NOSETTINGSASSIST = 0x20000000,
1101 REST_NOINTERNETICON = 0x40000001,
1102 REST_NORECENTDOCSHISTORY,
1103 REST_NORECENTDOCSMENU,
1104 REST_NOACTIVEDESKTOP,
1105 REST_NOACTIVEDESKTOPCHANGES,
1106 REST_NOFAVORITESMENU,
1107 REST_CLEARRECENTDOCSONEXIT,
1108 REST_CLASSICSHELL,
1109 REST_NOCUSTOMIZEWEBVIEW,
1111 REST_NOHTMLWALLPAPER = 0x40000010,
1112 REST_NOCHANGINGWALLPAPER,
1113 REST_NODESKCOMP,
1114 REST_NOADDDESKCOMP,
1115 REST_NODELDESKCOMP,
1116 REST_NOCLOSEDESKCOMP,
1117 REST_NOCLOSE_DRAGDROPBAND,
1118 REST_NOMOVINGBAND,
1119 REST_NOEDITDESKCOMP,
1120 REST_NORESOLVESEARCH,
1121 REST_NORESOLVETRACK,
1122 REST_FORCECOPYACLWITHFILE,
1123 REST_NOLOGO3CHANNELNOTIFY,
1124 REST_NOFORGETSOFTWAREUPDATE,
1125 REST_NOSETACTIVEDESKTOP,
1126 REST_NOUPDATEWINDOWS,
1127 REST_NOCHANGESTARMENU, /* 0x40000020 */
1128 REST_NOFOLDEROPTIONS,
1129 REST_HASFINDCOMPUTERS,
1130 REST_INTELLIMENUS,
1131 REST_RUNDLGMEMCHECKBOX,
1132 REST_ARP_ShowPostSetup,
1133 REST_NOCSC,
1134 REST_NOCONTROLPANEL,
1135 REST_ENUMWORKGROUP,
1136 REST_ARP_NOARP,
1137 REST_ARP_NOREMOVEPAGE,
1138 REST_ARP_NOADDPAGE,
1139 REST_ARP_NOWINSETUPPAGE,
1140 REST_GREYMSIADS,
1141 REST_NOCHANGEMAPPEDDRIVELABEL,
1142 REST_NOCHANGEMAPPEDDRIVECOMMENT,
1143 REST_MaxRecentDocs, /* 0x40000030 */
1144 REST_NONETWORKCONNECTIONS,
1145 REST_FORCESTARTMENULOGOFF,
1146 REST_NOWEBVIEW,
1147 REST_NOCUSTOMIZETHISFOLDER,
1148 REST_NOENCRYPTION,
1150 REST_ALLOWFRENCHENCRYPTION, /* not documented */
1152 REST_DONTSHOWSUPERHIDDEN,
1153 REST_NOSHELLSEARCHBUTTON,
1154 REST_NOHARDWARETAB,
1155 REST_NORUNASINSTALLPROMPT,
1156 REST_PROMPTRUNASINSTALLNETPATH,
1157 REST_NOMANAGEMYCOMPUTERVERB,
1158 REST_NORECENTDOCSNETHOOD,
1159 REST_DISALLOWRUN,
1160 REST_NOWELCOMESCREEN,
1161 REST_RESTRICTCPL, /* 0x40000040 */
1162 REST_DISALLOWCPL,
1163 REST_NOSMBALLOONTIP,
1164 REST_NOSMHELP,
1165 REST_NOWINKEYS,
1166 REST_NOENCRYPTONMOVE,
1167 REST_NOLOCALMACHINERUN,
1168 REST_NOCURRENTUSERRUN,
1169 REST_NOLOCALMACHINERUNONCE,
1170 REST_NOCURRENTUSERRUNONCE,
1171 REST_FORCEACTIVEDESKTOPON,
1172 REST_NOCOMPUTERSNEARME,
1173 REST_NOVIEWONDRIVE,
1174 REST_NONETCRAWL,
1175 REST_NOSHAREDDOCUMENTS,
1176 REST_NOSMMYDOCS,
1177 REST_NOSMMYPICS, /* 0x40000050 */
1178 REST_ALLOWBITBUCKDRIVES,
1179 REST_NONLEGACYSHELLMODE,
1180 REST_NOCONTROLPANELBARRICADE,
1181 REST_NOSTARTPAGE,
1182 REST_NOAUTOTRAYNOTIFY,
1183 REST_NOTASKGROUPING,
1184 REST_NOCDBURNING,
1185 REST_MYCOMPNOPROP,
1186 REST_MYDOCSNOPROP,
1187 REST_NOSTARTPANEL,
1188 REST_NODISPLAYAPPEARANCEPAGE,
1189 REST_NOTHEMESTAB,
1190 REST_NOVISUALSTYLECHOICE,
1191 REST_NOSIZECHOICE,
1192 REST_NOCOLORCHOICE,
1193 REST_SETVISUALSTYLE, /* 0x40000060 */
1194 REST_STARTRUNNOHOMEPATH,
1195 REST_NOUSERNAMEINSTARTPANEL,
1196 REST_NOMYCOMPUTERICON,
1197 REST_NOSMNETWORKPLACES,
1198 REST_NOSMPINNEDLIST,
1199 REST_NOSMMYMUSIC,
1200 REST_NOSMEJECTPC,
1201 REST_NOSMMOREPROGRAMS,
1202 REST_NOSMMFUPROGRAMS,
1203 REST_NOTRAYITEMSDISPLAY,
1204 REST_NOTOOLBARSONTASKBAR,
1205 /* 0x4000006C
1206 0x4000006D
1207 0x4000006E */
1208 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
1209 REST_HIDECLOCK, /* 0x40000070 */
1210 REST_NOLOWDISKSPACECHECKS,
1211 REST_NOENTIRENETWORK,
1212 REST_NODESKTOPCLEANUP,
1213 REST_BITBUCKNUKEONDELETE,
1214 REST_BITBUCKCONFIRMDELETE,
1215 REST_BITBUCKNOPROP,
1216 REST_NODISPBACKGROUND,
1217 REST_NODISPSCREENSAVEPG,
1218 REST_NODISPSETTINGSPG,
1219 REST_NODISPSCREENSAVEPREVIEW,
1220 REST_NODISPLAYCPL,
1221 REST_HIDERUNASVERB,
1222 REST_NOTHUMBNAILCACHE,
1223 REST_NOSTRCMPLOGICAL,
1224 REST_NOPUBLISHWIZARD,
1225 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
1226 REST_NOWEBSERVICES,
1227 REST_ALLOWUNHASHEDWEBVIEW,
1228 REST_ALLOWLEGACYWEBVIEW,
1229 REST_REVERTWEBVIEWSECURITY,
1231 REST_INHERITCONSOLEHANDLES = 0x40000086,
1233 REST_NODISCONNECT = 0x41000001,
1234 REST_NOSECURITY,
1235 REST_NOFILEASSOCIATE, /* 0x41000003 */
1236 } RESTRICTIONS;
1238 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
1240 /****************************************************************************
1241 * SHChangeNotify API
1243 typedef struct _SHChangeNotifyEntry
1245 LPCITEMIDLIST pidl;
1246 BOOL fRecursive;
1247 } SHChangeNotifyEntry;
1249 #define SHCNE_RENAMEITEM 0x00000001
1250 #define SHCNE_CREATE 0x00000002
1251 #define SHCNE_DELETE 0x00000004
1252 #define SHCNE_MKDIR 0x00000008
1253 #define SHCNE_RMDIR 0x00000010
1254 #define SHCNE_MEDIAINSERTED 0x00000020
1255 #define SHCNE_MEDIAREMOVED 0x00000040
1256 #define SHCNE_DRIVEREMOVED 0x00000080
1257 #define SHCNE_DRIVEADD 0x00000100
1258 #define SHCNE_NETSHARE 0x00000200
1259 #define SHCNE_NETUNSHARE 0x00000400
1260 #define SHCNE_ATTRIBUTES 0x00000800
1261 #define SHCNE_UPDATEDIR 0x00001000
1262 #define SHCNE_UPDATEITEM 0x00002000
1263 #define SHCNE_SERVERDISCONNECT 0x00004000
1264 #define SHCNE_UPDATEIMAGE 0x00008000
1265 #define SHCNE_DRIVEADDGUI 0x00010000
1266 #define SHCNE_RENAMEFOLDER 0x00020000
1267 #define SHCNE_FREESPACE 0x00040000
1269 #define SHCNE_EXTENDED_EVENT 0x04000000
1270 #define SHCNE_ASSOCCHANGED 0x08000000
1271 #define SHCNE_DISKEVENTS 0x0002381F
1272 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1273 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1274 #define SHCNE_INTERRUPT 0x80000000
1276 #define SHCNEE_ORDERCHANGED 0x0002L
1277 #define SHCNEE_MSI_CHANGE 0x0004L
1278 #define SHCNEE_MSI_UNINSTALL 0x0005L
1280 #define SHCNF_IDLIST 0x0000
1281 #define SHCNF_PATHA 0x0001
1282 #define SHCNF_PRINTERA 0x0002
1283 #define SHCNF_DWORD 0x0003
1284 #define SHCNF_PATHW 0x0005
1285 #define SHCNF_PRINTERW 0x0006
1286 #define SHCNF_TYPE 0x00FF
1287 #define SHCNF_FLUSH 0x1000
1288 #define SHCNF_FLUSHNOWAIT 0x2000
1290 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1291 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1293 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
1295 typedef enum {
1296 SLDF_HAS_ID_LIST = 0x00000001,
1297 SLDF_HAS_LINK_INFO = 0x00000002,
1298 SLDF_HAS_NAME = 0x00000004,
1299 SLDF_HAS_RELPATH = 0x00000008,
1300 SLDF_HAS_WORKINGDIR = 0x00000010,
1301 SLDF_HAS_ARGS = 0x00000020,
1302 SLDF_HAS_ICONLOCATION = 0x00000040,
1303 SLDF_UNICODE = 0x00000080,
1304 SLDF_FORCE_NO_LINKINFO = 0x00000100,
1305 SLDF_HAS_EXP_SZ = 0x00000200,
1306 SLDF_RUN_IN_SEPARATE = 0x00000400,
1307 SLDF_HAS_LOGO3ID = 0x00000800,
1308 SLDF_HAS_DARWINID = 0x00001000,
1309 SLDF_RUNAS_USER = 0x00002000,
1310 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
1311 SLDF_NO_PIDL_ALIAS = 0x00008000,
1312 SLDF_FORCE_UNCNAME = 0x00010000,
1313 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
1314 SLDF_FORCE_NO_LINKTRACK = 0x00040000,
1315 SLDF_ENABLE_TARGET_METADATA = 0x00080000,
1316 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING = 0x00200000,
1317 SLDF_VALID = 0x003ff7ff,
1318 SLDF_RESERVED = 0x80000000,
1319 } SHELL_LINK_DATA_FLAGS;
1321 typedef struct tagDATABLOCKHEADER
1323 DWORD cbSize;
1324 DWORD dwSignature;
1325 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
1327 typedef struct {
1328 DATABLOCK_HEADER dbh;
1329 CHAR szDarwinID[MAX_PATH];
1330 WCHAR szwDarwinID[MAX_PATH];
1331 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
1333 typedef struct {
1334 DWORD cbSize;
1335 DWORD cbSignature;
1336 CHAR szTarget[MAX_PATH];
1337 WCHAR szwTarget[MAX_PATH];
1338 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
1340 typedef struct {
1341 DWORD cbSize;
1342 DWORD dwSignature;
1343 DWORD idSpecialFolder;
1344 DWORD cbOffset;
1345 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
1347 typedef struct {
1348 DWORD cbSize;
1349 DWORD dwSignature;
1350 BYTE abPropertyStorage[1];
1351 } EXP_PROPERTYSTORAGE;
1353 #define EXP_SZ_LINK_SIG 0xa0000001
1354 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1355 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1356 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1357 #define EXP_DARWIN_ID_SIG 0xa0000006
1358 #define EXP_SZ_ICON_SIG 0xa0000007
1359 #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
1360 #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
1362 typedef struct _SHChangeDWORDAsIDList {
1363 USHORT cb;
1364 DWORD dwItem1;
1365 DWORD dwItem2;
1366 USHORT cbZero;
1367 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
1369 typedef struct _SHChangeProductKeyAsIDList {
1370 USHORT cb;
1371 WCHAR wszProductKey[39];
1372 USHORT cbZero;
1373 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
1375 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
1376 int cEntries, SHChangeNotifyEntry *pshcne);
1377 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
1378 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
1379 LPITEMIDLIST **pppidl, LONG *plEvent);
1380 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
1382 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
1384 /****************************************************************************
1385 * SHCreateDirectory API
1387 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
1388 int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
1389 int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
1390 #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
1392 /****************************************************************************
1393 * SHGetSpecialFolderLocation API
1395 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
1396 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
1398 /****************************************************************************
1399 * SHGetFolderPath API
1401 typedef enum {
1402 SHGFP_TYPE_CURRENT = 0,
1403 SHGFP_TYPE_DEFAULT = 1
1404 } SHGFP_TYPE;
1406 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
1407 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
1408 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1410 #define CSIDL_DESKTOP 0x0000
1411 #define CSIDL_INTERNET 0x0001
1412 #define CSIDL_PROGRAMS 0x0002
1413 #define CSIDL_CONTROLS 0x0003
1414 #define CSIDL_PRINTERS 0x0004
1415 #define CSIDL_PERSONAL 0x0005
1416 #define CSIDL_FAVORITES 0x0006
1417 #define CSIDL_STARTUP 0x0007
1418 #define CSIDL_RECENT 0x0008
1419 #define CSIDL_SENDTO 0x0009
1420 #define CSIDL_BITBUCKET 0x000a
1421 #define CSIDL_STARTMENU 0x000b
1422 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1423 #define CSIDL_MYMUSIC 0x000d
1424 #define CSIDL_MYVIDEO 0x000e
1425 #define CSIDL_DESKTOPDIRECTORY 0x0010
1426 #define CSIDL_DRIVES 0x0011
1427 #define CSIDL_NETWORK 0x0012
1428 #define CSIDL_NETHOOD 0x0013
1429 #define CSIDL_FONTS 0x0014
1430 #define CSIDL_TEMPLATES 0x0015
1431 #define CSIDL_COMMON_STARTMENU 0x0016
1432 #define CSIDL_COMMON_PROGRAMS 0X0017
1433 #define CSIDL_COMMON_STARTUP 0x0018
1434 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1435 #define CSIDL_APPDATA 0x001a
1436 #define CSIDL_PRINTHOOD 0x001b
1437 #define CSIDL_LOCAL_APPDATA 0x001c
1438 #define CSIDL_ALTSTARTUP 0x001d
1439 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1440 #define CSIDL_COMMON_FAVORITES 0x001f
1441 #define CSIDL_INTERNET_CACHE 0x0020
1442 #define CSIDL_COOKIES 0x0021
1443 #define CSIDL_HISTORY 0x0022
1444 #define CSIDL_COMMON_APPDATA 0x0023
1445 #define CSIDL_WINDOWS 0x0024
1446 #define CSIDL_SYSTEM 0x0025
1447 #define CSIDL_PROGRAM_FILES 0x0026
1448 #define CSIDL_MYPICTURES 0x0027
1449 #define CSIDL_PROFILE 0x0028
1450 #define CSIDL_SYSTEMX86 0x0029
1451 #define CSIDL_PROGRAM_FILESX86 0x002a
1452 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1453 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1454 #define CSIDL_COMMON_TEMPLATES 0x002d
1455 #define CSIDL_COMMON_DOCUMENTS 0x002e
1456 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1457 #define CSIDL_ADMINTOOLS 0x0030
1458 #define CSIDL_CONNECTIONS 0x0031
1459 #define CSIDL_COMMON_MUSIC 0x0035
1460 #define CSIDL_COMMON_PICTURES 0x0036
1461 #define CSIDL_COMMON_VIDEO 0x0037
1462 #define CSIDL_RESOURCES 0x0038
1463 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1464 #define CSIDL_COMMON_OEM_LINKS 0x003a
1465 #define CSIDL_CDBURN_AREA 0x003b
1466 #define CSIDL_COMPUTERSNEARME 0x003d
1467 #define CSIDL_PROFILES 0x003e
1468 #define CSIDL_FOLDER_MASK 0x00ff
1469 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1470 #define CSIDL_FLAG_NO_ALIAS 0x1000
1471 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1472 #define CSIDL_FLAG_CREATE 0x8000
1474 #define CSIDL_FLAG_MASK 0xff00
1476 /****************************************************************************
1477 * SHGetDesktopFolder API
1479 HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
1481 /****************************************************************************
1482 * SHBindToParent API
1484 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1486 /****************************************************************************
1487 * SHDefExtractIcon API
1489 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
1490 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1491 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
1492 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1493 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1496 * DROPFILES for CF_HDROP and CF_PRINTERS
1498 typedef struct _DROPFILES
1500 DWORD pFiles;
1501 POINT pt;
1502 BOOL fNC;
1503 BOOL fWide;
1504 } DROPFILES, *LPDROPFILES;
1507 * Properties of a file in the clipboard
1509 typedef struct _FILEDESCRIPTORA {
1510 DWORD dwFlags;
1511 CLSID clsid;
1512 SIZEL sizel;
1513 POINTL pointl;
1514 DWORD dwFileAttributes;
1515 FILETIME ftCreationTime;
1516 FILETIME ftLastAccessTime;
1517 FILETIME ftLastWriteTime;
1518 DWORD nFileSizeHigh;
1519 DWORD nFileSizeLow;
1520 CHAR cFileName[MAX_PATH];
1521 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1523 typedef struct _FILEDESCRIPTORW {
1524 DWORD dwFlags;
1525 CLSID clsid;
1526 SIZEL sizel;
1527 POINTL pointl;
1528 DWORD dwFileAttributes;
1529 FILETIME ftCreationTime;
1530 FILETIME ftLastAccessTime;
1531 FILETIME ftLastWriteTime;
1532 DWORD nFileSizeHigh;
1533 DWORD nFileSizeLow;
1534 WCHAR cFileName[MAX_PATH];
1535 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
1537 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
1538 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
1541 * CF_FILEGROUPDESCRIPTOR clipboard format
1543 typedef struct _FILEGROUPDESCRIPTORA {
1544 UINT cItems;
1545 FILEDESCRIPTORA fgd[1];
1546 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1548 typedef struct _FILEGROUPDESCRIPTORW {
1549 UINT cItems;
1550 FILEDESCRIPTORW fgd[1];
1551 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1553 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1554 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1556 /****************************************************************************
1557 * Cabinet functions
1560 typedef struct {
1561 WORD cLength;
1562 WORD nVersion;
1563 BOOL fFullPathTitle:1;
1564 BOOL fSaveLocalView:1;
1565 BOOL fNotShell:1;
1566 BOOL fSimpleDefault:1;
1567 BOOL fDontShowDescBar:1;
1568 BOOL fNewWindowMode:1;
1569 BOOL fShowCompColor:1;
1570 BOOL fDontPrettyNames:1;
1571 BOOL fAdminsCreateCommonGroups:1;
1572 UINT fUnusedFlags:7;
1573 UINT :15; /* Required for proper binary layout with gcc */
1574 UINT fMenuEnumFilter;
1575 } CABINETSTATE, *LPCABINETSTATE;
1577 #define CABINETSTATE_VERSION 2
1579 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1580 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1582 /****************************************************************************
1583 * Path Manipulation Routines
1586 /* PathProcessCommand flags */
1587 #define PPCF_ADDQUOTES 0x01
1588 #define PPCF_INCLUDEARGS 0x02
1589 #define PPCF_ADDARGUMENTS 0x03
1590 #define PPCF_NODIRECTORIES 0x10
1591 #define PPCF_DONTRESOLVE 0x20
1592 #define PPCF_FORCEQUALIFY 0x40
1593 #define PPCF_LONGESTPOSSIBLE 0x80
1595 /* PathResolve flags */
1596 #define PRF_VERIFYEXISTS 0x01
1597 #define PRF_EXECUTABLE 0x02
1598 #define PRF_TRYPROGRAMEXTENSIONS 0x03
1599 #define PRF_FIRSTDIRDEF 0x04
1600 #define PRF_DONTFINDLINK 0x08
1602 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1603 LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
1604 BOOL WINAPI PathYetAnotherMakeUniqueName(LPWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
1606 /****************************************************************************
1607 * Drag And Drop Routines
1610 /* DAD_AutoScroll sample structure */
1611 #define NUM_POINTS 3
1612 typedef struct
1614 int iNextSample;
1615 DWORD dwLastScroll;
1616 BOOL bFull;
1617 POINT pts[NUM_POINTS];
1618 DWORD dwTimes[NUM_POINTS];
1619 } AUTO_SCROLL_DATA;
1621 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1622 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1623 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1624 BOOL WINAPI DAD_DragMove(POINT);
1625 BOOL WINAPI DAD_DragLeave(void);
1626 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1627 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1629 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1630 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1631 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1632 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1633 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1634 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1635 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1636 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1637 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1638 void WINAPI ILFree(LPITEMIDLIST);
1639 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1640 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1641 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1642 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1643 HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1644 BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1645 HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1648 #include <poppack.h>
1650 #ifdef __cplusplus
1651 } /* extern "C" */
1652 #endif /* defined(__cplusplus) */
1654 #endif /* __WINE_SHLOBJ_H */