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