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
27 #ifdef WINE_NO_UNICODE_MACROS
33 #endif /* defined(__cplusplus) */
35 /* Except for specific structs, this header is byte packed */
43 DECLARE_HANDLE(HPSXA
);
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"
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 };
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)
283 /************************************************************************
284 * IShellView interface
287 #define FCIDM_SHVIEWFIRST 0x0000
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)
350 /****************************************************************************
351 * IShellIcon interface
354 #define INTERFACE IShellIcon
355 DECLARE_INTERFACE_(IShellIcon
,IUnknown
)
357 /*** IUnknown methods ***/
358 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
359 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
360 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
361 /*** IShellIcon methods ***/
362 STDMETHOD(GetIconOf
)(THIS_ LPCITEMIDLIST pidl
, UINT flags
, LPINT lpIconIndex
) PURE
;
366 #if !defined(__cplusplus) || defined(CINTERFACE)
367 /*** IUnknown methods ***/
368 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
369 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
370 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
371 /*** IShellIcon methods ***/
372 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
375 typedef IShellIcon
*LPSHELLICON
;
377 /* IQueryInfo interface */
378 #define INTERFACE IQueryInfo
379 DECLARE_INTERFACE_(IQueryInfo
,IUnknown
)
381 /*** IUnknown methods ***/
382 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
383 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
384 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
385 /*** IQueryInfo methods ***/
386 STDMETHOD(GetInfoTip
)(THIS_ DWORD dwFlags
, WCHAR
** lppTips
) PURE
;
387 STDMETHOD(GetInfoFlags
)(THIS_ DWORD
* lpFlags
) PURE
;
391 #if !defined(__cplusplus) || defined(CINTERFACE)
392 /*** IUnknown methods ***/
393 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
394 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
395 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
396 /*** IQueryInfo methods ***/
397 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
398 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
401 /* IInputObject interface */
402 #define INTERFACE IInputObject
403 DECLARE_INTERFACE_(IInputObject
,IUnknown
)
405 /*** IUnknown methods ***/
406 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
407 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
408 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
409 /*** IInputObject methods ***/
410 STDMETHOD(UIActivateIO
)(THIS_ BOOL bActivating
, LPMSG lpMsg
) PURE
;
411 STDMETHOD(HasFocusIO
)(THIS
) PURE
;
412 STDMETHOD(TranslateAcceleratorIO
)(THIS_ LPMSG lpMsg
) PURE
;
416 #if !defined(__cplusplus) || defined(CINTERFACE)
417 /*** IUnknown methods ***/
418 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
419 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
420 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
421 /*** IInputObject methods ***/
422 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
423 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
424 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
427 /* IInputObjectSite interface */
428 #define INTERFACE IInputObjectSite
429 DECLARE_INTERFACE_(IInputObjectSite
,IUnknown
)
431 /*** IUnknown methods ***/
432 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
433 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
434 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
435 /*** IInputObjectSite methods ***/
436 STDMETHOD(OnFocusChangeIS
)(THIS_ LPUNKNOWN lpUnknown
, BOOL bFocus
) PURE
;
440 #if !defined(__cplusplus) || defined(CINTERFACE)
441 /*** IUnknown methods ***/
442 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
443 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
444 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
445 /*** IInputObject methods ***/
446 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
449 /* IObjMgr interface */
450 #define INTERFACE IObjMgr
451 DECLARE_INTERFACE_(IObjMgr
,IUnknown
)
453 /*** IUnknown methods ***/
454 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
455 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
456 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
457 /*** IObjMgr methods ***/
458 STDMETHOD(Append
)(THIS_ LPUNKNOWN punk
) PURE
;
459 STDMETHOD(Remove
)(THIS_ LPUNKNOWN punk
) PURE
;
463 #if !defined(__cplusplus) || defined(CINTERFACE)
464 /*** IUnknown methods ***/
465 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
466 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
467 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
468 /*** IObjMgr methods ***/
469 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
470 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
473 /* IACList interface */
474 #define INTERFACE IACList
475 DECLARE_INTERFACE_(IACList
,IUnknown
)
477 /*** IUnknown methods ***/
478 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
479 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
480 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
481 /*** IACList methods ***/
482 STDMETHOD(Expand
)(THIS_ LPCOLESTR str
) PURE
;
486 #if !defined(__cplusplus) || defined(CINTERFACE)
487 /*** IUnknown methods ***/
488 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
489 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
490 #define IACList_Release(p) (p)->lpVtbl->Release(p)
491 /*** IACList methods ***/
492 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
495 /* IACList2 interface */
496 #define INTERFACE IACList2
497 DECLARE_INTERFACE_(IACList2
,IACList
)
499 /*** IUnknown methods ***/
500 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
501 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
502 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
503 /*** IACList methods ***/
504 STDMETHOD(Expand
)(THIS_ LPCOLESTR str
) PURE
;
505 /*** IACList2 methods ***/
506 STDMETHOD(SetOptions
)(THIS_ DWORD dwFlag
) PURE
;
507 STDMETHOD(GetOptions
)(THIS_ DWORD
* pdwFlag
) PURE
;
511 #if !defined(__cplusplus) || defined(CINTERFACE)
512 /*** IUnknown methods ***/
513 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
514 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
515 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
516 /*** IACList2 methods ***/
517 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
518 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
521 /****************************************************************************
522 * IShellFolderViewCB interface
525 #define INTERFACE IShellFolderViewCB
526 DECLARE_INTERFACE_(IShellFolderViewCB
,IUnknown
)
528 /*** IUnknown methods ***/
529 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
530 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
531 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
532 /*** IShellFolderViewCB methods ***/
533 STDMETHOD(MessageSFVCB
)(THIS_ UINT uMsg
, WPARAM wParam
, LPARAM lParam
) PURE
;
537 #if !defined(__cplusplus) || defined(CINTERFACE)
538 /*** IUnknown methods ***/
539 #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
540 #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
541 #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
542 /*** IShellFolderViewCB methods ***/
543 #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
546 /****************************************************************************
547 * IShellFolderView interface
550 typedef struct _ITEMSPACING
558 #define INTERFACE IShellFolderView
559 DEFINE_GUID(IID_IShellFolderView
,0x37a378c0,0xf82d,0x11ce,0xae,0x65,0x08,0x00,0x2b,0x2e,0x12,0x62);
560 DECLARE_INTERFACE_(IShellFolderView
, IUnknown
)
562 /*** IUnknown methods ***/
563 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void **ppv
) PURE
;
564 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
565 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
567 /*** IShellFolderView methods ***/
568 STDMETHOD(Rearrange
) (THIS_ LPARAM lParamSort
) PURE
;
569 STDMETHOD(GetArrangeParam
) (THIS_ LPARAM
*plParamSort
) PURE
;
570 STDMETHOD(ArrangeGrid
) (THIS
) PURE
;
571 STDMETHOD(AutoArrange
) (THIS
) PURE
;
572 STDMETHOD(GetAutoArrange
) (THIS
) PURE
;
573 STDMETHOD(AddObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
574 STDMETHOD(GetObject
) (THIS_ PITEMID_CHILD
*ppidl
, UINT uItem
) PURE
;
575 STDMETHOD(RemoveObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
576 STDMETHOD(GetObjectCount
) (THIS_ UINT
*puCount
) PURE
;
577 STDMETHOD(SetObjectCount
) (THIS_ UINT uCount
, UINT dwFlags
) PURE
;
578 STDMETHOD(UpdateObject
) (THIS_ PITEMID_CHILD pidlOld
, PITEMID_CHILD pidlNew
, UINT
*puItem
) PURE
;
579 STDMETHOD(RefreshObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
580 STDMETHOD(SetRedraw
) (THIS_ BOOL bRedraw
) PURE
;
581 STDMETHOD(GetSelectedCount
) (THIS_ UINT
*puSelected
) PURE
;
582 STDMETHOD(GetSelectedObjects
) (THIS_ PCITEMID_CHILD
**pppidl
, UINT
*puItems
) PURE
;
583 STDMETHOD(IsDropOnSource
) (THIS_ IDropTarget
*pDropTarget
) PURE
;
584 STDMETHOD(GetDragPoint
) (THIS_ POINT
*ppt
) PURE
;
585 STDMETHOD(GetDropPoint
) (THIS_ POINT
*ppt
) PURE
;
586 STDMETHOD(MoveIcons
) (THIS_ IDataObject
*pDataObject
) PURE
;
587 STDMETHOD(SetItemPos
) (THIS_ PCUITEMID_CHILD pidl
, POINT
*ppt
) PURE
;
588 STDMETHOD(IsBkDropTarget
) (THIS_ IDropTarget
*pDropTarget
) PURE
;
589 STDMETHOD(SetClipboard
) (THIS_ BOOL bMove
) PURE
;
590 STDMETHOD(SetPoints
) (THIS_ IDataObject
*pDataObject
) PURE
;
591 STDMETHOD(GetItemSpacing
) (THIS_ ITEMSPACING
*pSpacing
) PURE
;
592 STDMETHOD(SetCallback
) (THIS_ IShellFolderViewCB
* pNewCB
, IShellFolderViewCB
** ppOldCB
) PURE
;
593 STDMETHOD(Select
) ( THIS_ UINT dwFlags
) PURE
;
594 STDMETHOD(QuerySupport
) (THIS_ UINT
* pdwSupport
) PURE
;
595 STDMETHOD(SetAutomationObject
)(THIS_ IDispatch
* pdisp
) PURE
;
599 #if !defined(__cplusplus) || defined(CINTERFACE)
600 /*** IUnknown methods ***/
601 #define IShellFolderView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
602 #define IShellFolderView_AddRef(p) (p)->lpVtbl->AddRef(p)
603 #define IShellFolderView_Release(p) (p)->lpVtbl->Release(p)
604 /*** IShellFolderView methods ***/
605 #define IShellFolderView_Rearrange(p,a) (p)->lpVtbl->Rearrange(p,a)
606 #define IShellFolderView_GetArrangeParam(p,a) (p)->lpVtbl->GetArrangeParam(p,a)
607 #define IShellFolderView_ArrangeGrid(p) (p)->lpVtbl->ArrangeGrid(p)
608 #define IShellFolderView_AutoArrange(p) (p)->lpVtbl->AutoArrange(p)
609 #define IShellFolderView_GetAutoArrange(p) (p)->lpVtbl->GetAutoArrange(p)
610 #define IShellFolderView_AddObject(p,a,b) (p)->lpVtbl->AddObject(p,a,b)
611 #define IShellFolderView_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
612 #define IShellFolderView_RemoveObject(p,a,b) (p)->lpVtbl->RemoveObject(p,a,b)
613 #define IShellFolderView_GetObjectCount(p,a) (p)->lpVtbl->GetObjectCount(p,a)
614 #define IShellFolderView_SetObjectCount(p,a,b) (p)->lpVtbl->SetObjectCount(p,a,b)
615 #define IShellFolderView_UpdateObject(p,a,b,c) (p)->lpVtbl->UpdateObject(p,a,b,c)
616 #define IShellFolderView_RefreshObject(p,a,b) (p)->lpVtbl->RefreshObject(p,a,b)
617 #define IShellFolderView_SetRedraw(p,a) (p)->lpVtbl->SetRedraw(p,a)
618 #define IShellFolderView_GetSelectedCount(p,a) (p)->lpVtbl->GetSelectedCount(p,a)
619 #define IShellFolderView_GetSelectedObjects(p,a,b) (p)->lpVtbl->GetSelectedObjects(p,a,b)
620 #define IShellFolderView_IsDropOnSource(p,a) (p)->lpVtbl->IsDropOnSource(p,a)
621 #define IShellFolderView_GetDragPoint(p,a) (p)->lpVtbl->GetDragPoint(p,a)
622 #define IShellFolderView_GetDropPoint(p,a) (p)->lpVtbl->GetDropPoint(p,a)
623 #define IShellFolderView_MoveIcons(p,a) (p)->lpVtbl->MoveIcons(p,a)
624 #define IShellFolderView_SetItemPos(p,a,b) (p)->lpVtbl->SetItemPos(p,a,b)
625 #define IShellFolderView_DropTarget(p,a) (p)->lpVtbl->DropTarget(p,a)
626 #define IShellFolderView_SetClipboard(p,a) (p)->lpVtbl->SetClipboard(p,a)
627 #define IShellFolderView_SetPoints(p,a) (p)->lpVtbl->SetPoints(p,a)
628 #define IShellFolderView_GetItemSpacing(p,a) (p)->lpVtbl->GetItemSpacing(p,a)
629 #define IShellFolderView_SetCallback(p,a) (p)->lpVtbl->SetCallback(p,a)
630 #define IShellFolderView_Select(p,a) (p)->lpVtbl->Select(p,a)
631 #define IShellFolderView_QuerySupport(p,a) (p)->lpVtbl->QuerySupport(p,a)
632 #define IShellFolderView_SetAutomationObject(p,a) (p)->lpVtbl->SetAutomationObject(p,a)
635 /* IProgressDialog interface */
636 #define PROGDLG_NORMAL 0x00000000
637 #define PROGDLG_MODAL 0x00000001
638 #define PROGDLG_AUTOTIME 0x00000002
639 #define PROGDLG_NOTIME 0x00000004
640 #define PROGDLG_NOMINIMIZE 0x00000008
641 #define PROGDLG_NOPROGRESSBAR 0x00000010
642 #define PROGDLG_MARQUEEPROGRESS 0x00000020
643 #define PROGDLG_NOCANCEL 0x00000040
645 #define PDTIMER_RESET 0x00000001
646 #define PDTIMER_PAUSE 0x00000002
647 #define PDTIMER_RESUME 0x00000003
649 #define INTERFACE IProgressDialog
650 DECLARE_INTERFACE_(IProgressDialog
,IUnknown
)
652 /*** IUnknown methods ***/
653 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
654 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
655 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
656 /*** IProgressDialog methods ***/
657 STDMETHOD(StartProgressDialog
)(THIS_ HWND hwndParent
, IUnknown
*punkEnableModeless
, DWORD dwFlags
, LPCVOID reserved
) PURE
;
658 STDMETHOD(StopProgressDialog
)(THIS
) PURE
;
659 STDMETHOD(SetTitle
)(THIS_ LPCWSTR pwzTitle
) PURE
;
660 STDMETHOD(SetAnimation
)(THIS_ HINSTANCE hInstance
, UINT uiResourceId
) PURE
;
661 STDMETHOD_(BOOL
,HasUserCancelled
)(THIS
) PURE
;
662 STDMETHOD(SetProgress
)(THIS_ DWORD dwCompleted
, DWORD dwTotal
) PURE
;
663 STDMETHOD(SetProgress64
)(THIS_ ULONGLONG ullCompleted
, ULONGLONG ullTotal
) PURE
;
664 STDMETHOD(SetLine
)(THIS_ DWORD dwLineNum
, LPCWSTR pwzString
, BOOL bPath
, LPCVOID reserved
) PURE
;
665 STDMETHOD(SetCancelMsg
)(THIS_ LPCWSTR pwzCancelMsg
, LPCVOID reserved
) PURE
;
666 STDMETHOD(Timer
)(THIS_ DWORD dwTimerAction
, LPCVOID reserved
) PURE
;
670 #if !defined(__cplusplus) || defined(CINTERFACE)
671 /*** IUnknown methods ***/
672 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
673 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
674 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
675 /*** IProgressDialog methods ***/
676 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
677 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
678 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
679 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
680 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
681 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
682 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
683 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
684 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
685 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
689 /****************************************************************************
690 * SHAddToRecentDocs API
692 #define SHARD_PIDL 0x00000001L
693 #define SHARD_PATHA 0x00000002L
694 #define SHARD_PATHW 0x00000003L
695 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
697 void WINAPI
SHAddToRecentDocs(UINT
,LPCVOID
);
699 /****************************************************************************
700 * SHBrowseForFolder API
702 typedef INT (CALLBACK
*BFFCALLBACK
)(HWND
,UINT
,LPARAM
,LPARAM
);
704 #include <pshpack8.h>
706 typedef struct tagBROWSEINFOA
{
708 LPCITEMIDLIST pidlRoot
;
709 LPSTR pszDisplayName
;
715 } BROWSEINFOA
, *PBROWSEINFOA
, *LPBROWSEINFOA
;
717 typedef struct tagBROWSEINFOW
{
719 LPCITEMIDLIST pidlRoot
;
720 LPWSTR pszDisplayName
;
726 } BROWSEINFOW
, *PBROWSEINFOW
, *LPBROWSEINFOW
;
728 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
729 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
730 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
734 /* Browsing for directory. */
735 #define BIF_RETURNONLYFSDIRS 0x0001
736 #define BIF_DONTGOBELOWDOMAIN 0x0002
737 #define BIF_STATUSTEXT 0x0004
738 #define BIF_RETURNFSANCESTORS 0x0008
739 #define BIF_EDITBOX 0x0010
740 #define BIF_VALIDATE 0x0020
741 #define BIF_NEWDIALOGSTYLE 0x0040
742 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
743 #define BIF_BROWSEINCLUDEURLS 0x0080
744 #define BIF_UAHINT 0x0100
745 #define BIF_NONEWFOLDERBUTTON 0x0200
746 #define BIF_NOTRANSLATETARGETS 0x0400
748 #define BIF_BROWSEFORCOMPUTER 0x1000
749 #define BIF_BROWSEFORPRINTER 0x2000
750 #define BIF_BROWSEINCLUDEFILES 0x4000
752 /* message from browser */
753 #define BFFM_INITIALIZED 1
754 #define BFFM_SELCHANGED 2
755 #define BFFM_VALIDATEFAILEDA 3
756 #define BFFM_VALIDATEFAILEDW 4
757 #define BFFM_IUNKNOWN 5
759 /* messages to browser */
760 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
761 #define BFFM_ENABLEOK (WM_USER+101)
762 #define BFFM_SETSELECTIONA (WM_USER+102)
763 #define BFFM_SETSELECTIONW (WM_USER+103)
764 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
765 #define BFFM_SETOKTEXT (WM_USER+105)
766 #define BFFM_SETEXPANDED (WM_USER+106)
768 LPITEMIDLIST WINAPI
SHBrowseForFolderA(LPBROWSEINFOA lpbi
);
769 LPITEMIDLIST WINAPI
SHBrowseForFolderW(LPBROWSEINFOW lpbi
);
770 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
771 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
772 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
773 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
775 /**********************************************************************
776 * SHCreateShellFolderViewEx API
779 typedef HRESULT (CALLBACK
*LPFNVIEWCALLBACK
)(
791 IShellView
* psvOuter
;
794 LPFNVIEWCALLBACK pfnCallback
;
798 HRESULT WINAPI
SHCreateShellFolderViewEx(LPCSFV pshfvi
, IShellView
**ppshv
);
800 /* SHCreateShellFolderViewEx callback messages */
801 #define SFVM_MERGEMENU 1
802 #define SFVM_INVOKECOMMAND 2
803 #define SFVM_GETHELPTEXT 3
804 #define SFVM_GETTOOLTIPTEXT 4
805 #define SFVM_GETBUTTONINFO 5
806 #define SFVM_GETBUTTONS 6
807 #define SFVM_INITMENUPOPUP 7
808 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
809 #define SFVM_DRAWMENUITEM 9 /* undocumented */
810 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
811 #define SFVM_EXITMENULOOP 11 /* undocumented */
812 #define SFVM_VIEWRELEASE 12 /* undocumented */
813 #define SFVM_GETNAMELENGTH 13 /* undocumented */
814 #define SFVM_FSNOTIFY 14
815 #define SFVM_WINDOWCREATED 15
816 #define SFVM_WINDOWCLOSING 16 /* undocumented */
817 #define SFVM_LISTREFRESHED 17 /* undocumented */
818 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
819 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
820 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
821 #define SFVM_GETDETAILSOF 23
822 #define SFVM_COLUMNCLICK 24
823 #define SFVM_QUERYFSNOTIFY 25
824 #define SFVM_DEFITEMCOUNT 26
825 #define SFVM_DEFVIEWMODE 27
826 #define SFVM_UNMERGEFROMMENU 28
827 #define SFVM_ADDINGOBJECT 29 /* undocumented */
828 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
829 #define SFVM_UPDATESTATUSBAR 31
830 #define SFVM_BACKGROUNDENUM 32
831 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
832 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
833 #define SFVM_CANSELECTALL 35 /* undocumented */
834 #define SFVM_DIDDRAGDROP 36
835 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
836 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
837 #define SFVM_SETISFV 39
838 #define SFVM_GETEXTVIEWS 40 /* undocumented */
839 #define SFVM_THISIDLIST 41
840 #define SFVM_ADDPROPERTYPAGES 47
841 #define SFVM_BACKGROUNDENUMDONE 48
842 #define SFVM_GETNOTIFY 49
843 #define SFVM_GETSORTDEFAULTS 53
845 #define SFVM_GETZONE 58
846 #define SFVM_GETPANE 59
847 #define SFVM_GETHELPTOPIC 63
848 #define SFVM_GETANIMATION 68
849 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
850 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
851 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
852 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
853 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
854 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
855 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
856 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
858 typedef struct _SFV_CREATE
862 IShellView
*psvOuter
;
863 IShellFolderViewCB
*psfvcb
;
866 HRESULT WINAPI
SHCreateShellFolderView(const SFV_CREATE
*pscfv
, IShellView
**ppsv
);
868 /* Types and definitions for the SFM_* parameters */
869 #include <pshpack8.h>
871 #define QCMINFO_PLACE_BEFORE 0
872 #define QCMINFO_PLACE_AFTER 1
873 typedef struct _QCMINFO_IDMAP_PLACEMENT
877 } QCMINFO_IDMAP_PLACEMENT
;
879 typedef struct _QCMINFO_IDMAP
882 QCMINFO_IDMAP_PLACEMENT pIdList
[1];
885 typedef struct _QCMINFO
891 QCMINFO_IDMAP
const* pIdMap
;
892 } QCMINFO
, *LPQCMINFO
;
894 #define TBIF_DEFAULT 0x00000000
895 #define TBIF_APPEND 0x00000000
896 #define TBIF_PREPEND 0x00000001
897 #define TBIF_REPLACE 0x00000002
898 #define TBIF_INTERNETBAR 0x00010000
899 #define TBIF_STANDARDTOOLBAR 0x00020000
900 #define TBIF_NOTOOLBAR 0x00030000
902 typedef struct _TBINFO
910 /****************************************************************************
911 * SHShellFolderView_Message API
914 LRESULT WINAPI
SHShellFolderView_Message(
919 /* SHShellFolderView_Message messages */
920 #define SFVM_REARRANGE 0x0001
921 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
922 #define SFVM_ADDOBJECT 0x0003
923 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
924 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
925 #define SFVM_REMOVEOBJECT 0x0006
926 #define SFVM_UPDATEOBJECT 0x0007
927 #define SFVM_SETREDRAW 0x0008 /* undocumented */
928 #define SFVM_GETSELECTEDOBJECTS 0x0009
929 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
930 #define SFVM_MOVEICONS 0x000B /* undocumented */
931 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
932 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
933 #define SFVM_SETITEMPOS 0x000E
934 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
935 #define SFVM_SETCLIPBOARD 0x0010
936 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
937 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
938 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
939 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
940 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
941 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
942 #define SFVM_SETPOINTS 0x0017
944 /****************************************************************************
945 * SHGetDataFromIDList API
947 #define SHGDFIL_FINDDATA 1
948 #define SHGDFIL_NETRESOURCE 2
949 #define SHGDFIL_DESCRIPTIONID 3
951 #define SHDID_ROOT_REGITEM 1
952 #define SHDID_FS_FILE 2
953 #define SHDID_FS_DIRECTORY 3
954 #define SHDID_FS_OTHER 4
955 #define SHDID_COMPUTER_DRIVE35 5
956 #define SHDID_COMPUTER_DRIVE525 6
957 #define SHDID_COMPUTER_REMOVABLE 7
958 #define SHDID_COMPUTER_FIXED 8
959 #define SHDID_COMPUTER_NETDRIVE 9
960 #define SHDID_COMPUTER_CDROM 10
961 #define SHDID_COMPUTER_RAMDISK 11
962 #define SHDID_COMPUTER_OTHER 12
963 #define SHDID_NET_DOMAIN 13
964 #define SHDID_NET_SERVER 14
965 #define SHDID_NET_SHARE 15
966 #define SHDID_NET_RESTOFNET 16
967 #define SHDID_NET_OTHER 17
968 #define SHDID_COMPUTER_IMAGING 18
969 #define SHDID_COMPUTER_AUDIO 19
970 #define SHDID_COMPUTER_SHAREDDOCS 20
972 #include <pshpack8.h>
974 typedef struct _SHDESCRIPTIONID
975 { DWORD dwDescriptionId
;
977 } SHDESCRIPTIONID
, *LPSHDESCRIPTIONID
;
981 HRESULT WINAPI
SHGetDataFromIDListA(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
982 HRESULT WINAPI
SHGetDataFromIDListW(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
983 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
985 BOOL WINAPI
SHGetSpecialFolderPathA (HWND hwndOwner
, LPSTR szPath
, int nFolder
, BOOL bCreate
);
986 BOOL WINAPI
SHGetSpecialFolderPathW (HWND hwndOwner
, LPWSTR szPath
, int nFolder
, BOOL bCreate
);
987 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
989 HRESULT WINAPI
SHGetMalloc(LPMALLOC
*lpmal
) ;
991 /**********************************************************************
992 * SHGetSetSettings ()
997 BOOL fShowAllObjects
: 1;
998 BOOL fShowExtensions
: 1;
999 BOOL fNoConfirmRecycle
: 1;
1001 BOOL fShowSysFiles
: 1;
1002 BOOL fShowCompColor
: 1;
1003 BOOL fDoubleClickInWebView
: 1;
1004 BOOL fDesktopHTML
: 1;
1005 BOOL fWin95Classic
: 1;
1006 BOOL fDontPrettyPath
: 1;
1007 BOOL fShowAttribCol
: 1;
1008 BOOL fMapNetDrvBtn
: 1;
1009 BOOL fShowInfoTip
: 1;
1010 BOOL fHideIcons
: 1;
1013 BOOL fShowSuperHidden
: 1;
1014 BOOL fNoNetCrawling
: 1;
1016 UINT
:15; /* Required for proper binary layout with gcc */
1017 DWORD dwWin95Unused
;
1023 BOOL fSepProcess
: 1;
1024 BOOL fStartPanelOn
: 1;
1025 BOOL fShowStartPage
: 1;
1026 UINT fSpareFlags
: 13;
1027 UINT
:15; /* Required for proper binary layout with gcc */
1028 } SHELLSTATE
, *LPSHELLSTATE
;
1030 /**********************************************************************
1034 { BOOL fShowAllObjects
: 1;
1035 BOOL fShowExtensions
: 1;
1036 BOOL fNoConfirmRecycle
: 1;
1037 BOOL fShowSysFiles
: 1;
1039 BOOL fShowCompColor
: 1;
1040 BOOL fDoubleClickInWebView
: 1;
1041 BOOL fDesktopHTML
: 1;
1042 BOOL fWin95Classic
: 1;
1044 BOOL fDontPrettyPath
: 1;
1045 BOOL fShowAttribCol
: 1;
1046 BOOL fMapNetDrvBtn
: 1;
1047 BOOL fShowInfoTip
: 1;
1049 BOOL fHideIcons
: 1;
1050 UINT fRestFlags
: 3;
1051 UINT
:15; /* Required for proper binary layout with gcc */
1052 } SHELLFLAGSTATE
, * LPSHELLFLAGSTATE
;
1054 VOID WINAPI
SHGetSettings(LPSHELLFLAGSTATE lpsfs
, DWORD dwMask
);
1056 #define SSF_SHOWALLOBJECTS 0x0001
1057 #define SSF_SHOWEXTENSIONS 0x0002
1058 #define SSF_SHOWCOMPCOLOR 0x0008
1059 #define SSF_SHOWSYSFILES 0x0020
1060 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
1061 #define SSF_SHOWATTRIBCOL 0x0100
1062 #define SSF_DESKTOPHTML 0x0200
1063 #define SSF_WIN95CLASSIC 0x0400
1064 #define SSF_DONTPRETTYPATH 0x0800
1065 #define SSF_SHOWINFOTIP 0x2000
1066 #define SSF_MAPNETDRVBUTTON 0x1000
1067 #define SSF_NOCONFIRMRECYCLE 0x8000
1068 #define SSF_HIDEICONS 0x4000
1070 /****************************************************************************
1073 typedef enum RESTRICTIONS
1075 REST_NONE
= 0x00000000,
1076 REST_NORUN
= 0x00000001,
1077 REST_NOCLOSE
= 0x00000002,
1078 REST_NOSAVESET
= 0x00000004,
1079 REST_NOFILEMENU
= 0x00000008,
1080 REST_NOSETFOLDERS
= 0x00000010,
1081 REST_NOSETTASKBAR
= 0x00000020,
1082 REST_NODESKTOP
= 0x00000040,
1083 REST_NOFIND
= 0x00000080,
1084 REST_NODRIVES
= 0x00000100,
1085 REST_NODRIVEAUTORUN
= 0x00000200,
1086 REST_NODRIVETYPEAUTORUN
= 0x00000400,
1087 REST_NONETHOOD
= 0x00000800,
1088 REST_STARTBANNER
= 0x00001000,
1089 REST_RESTRICTRUN
= 0x00002000,
1090 REST_NOPRINTERTABS
= 0x00004000,
1091 REST_NOPRINTERDELETE
= 0x00008000,
1092 REST_NOPRINTERADD
= 0x00010000,
1093 REST_NOSTARTMENUSUBFOLDERS
= 0x00020000,
1094 REST_MYDOCSONNET
= 0x00040000,
1095 REST_NOEXITTODOS
= 0x00080000,
1096 REST_ENFORCESHELLEXTSECURITY
= 0x00100000,
1097 REST_LINKRESOLVEIGNORELINKINFO
= 0x00200000,
1098 REST_NOCOMMONGROUPS
= 0x00400000,
1099 REST_SEPARATEDESKTOPPROCESS
= 0x00800000,
1100 REST_NOWEB
= 0x01000000,
1101 REST_NOTRAYCONTEXTMENU
= 0x02000000,
1102 REST_NOVIEWCONTEXTMENU
= 0x04000000,
1103 REST_NONETCONNECTDISCONNECT
= 0x08000000,
1104 REST_STARTMENULOGOFF
= 0x10000000,
1105 REST_NOSETTINGSASSIST
= 0x20000000,
1106 REST_NOINTERNETICON
= 0x40000001,
1107 REST_NORECENTDOCSHISTORY
,
1108 REST_NORECENTDOCSMENU
,
1109 REST_NOACTIVEDESKTOP
,
1110 REST_NOACTIVEDESKTOPCHANGES
,
1111 REST_NOFAVORITESMENU
,
1112 REST_CLEARRECENTDOCSONEXIT
,
1114 REST_NOCUSTOMIZEWEBVIEW
,
1116 REST_NOHTMLWALLPAPER
= 0x40000010,
1117 REST_NOCHANGINGWALLPAPER
,
1121 REST_NOCLOSEDESKCOMP
,
1122 REST_NOCLOSE_DRAGDROPBAND
,
1124 REST_NOEDITDESKCOMP
,
1125 REST_NORESOLVESEARCH
,
1126 REST_NORESOLVETRACK
,
1127 REST_FORCECOPYACLWITHFILE
,
1128 REST_NOLOGO3CHANNELNOTIFY
,
1129 REST_NOFORGETSOFTWAREUPDATE
,
1130 REST_NOSETACTIVEDESKTOP
,
1131 REST_NOUPDATEWINDOWS
,
1132 REST_NOCHANGESTARMENU
, /* 0x40000020 */
1133 REST_NOFOLDEROPTIONS
,
1134 REST_HASFINDCOMPUTERS
,
1136 REST_RUNDLGMEMCHECKBOX
,
1137 REST_ARP_ShowPostSetup
,
1139 REST_NOCONTROLPANEL
,
1142 REST_ARP_NOREMOVEPAGE
,
1144 REST_ARP_NOWINSETUPPAGE
,
1146 REST_NOCHANGEMAPPEDDRIVELABEL
,
1147 REST_NOCHANGEMAPPEDDRIVECOMMENT
,
1148 REST_MaxRecentDocs
, /* 0x40000030 */
1149 REST_NONETWORKCONNECTIONS
,
1150 REST_FORCESTARTMENULOGOFF
,
1152 REST_NOCUSTOMIZETHISFOLDER
,
1155 REST_ALLOWFRENCHENCRYPTION
, /* not documented */
1157 REST_DONTSHOWSUPERHIDDEN
,
1158 REST_NOSHELLSEARCHBUTTON
,
1160 REST_NORUNASINSTALLPROMPT
,
1161 REST_PROMPTRUNASINSTALLNETPATH
,
1162 REST_NOMANAGEMYCOMPUTERVERB
,
1163 REST_NORECENTDOCSNETHOOD
,
1165 REST_NOWELCOMESCREEN
,
1166 REST_RESTRICTCPL
, /* 0x40000040 */
1168 REST_NOSMBALLOONTIP
,
1171 REST_NOENCRYPTONMOVE
,
1172 REST_NOLOCALMACHINERUN
,
1173 REST_NOCURRENTUSERRUN
,
1174 REST_NOLOCALMACHINERUNONCE
,
1175 REST_NOCURRENTUSERRUNONCE
,
1176 REST_FORCEACTIVEDESKTOPON
,
1177 REST_NOCOMPUTERSNEARME
,
1180 REST_NOSHAREDDOCUMENTS
,
1182 REST_NOSMMYPICS
, /* 0x40000050 */
1183 REST_ALLOWBITBUCKDRIVES
,
1184 REST_NONLEGACYSHELLMODE
,
1185 REST_NOCONTROLPANELBARRICADE
,
1187 REST_NOAUTOTRAYNOTIFY
,
1188 REST_NOTASKGROUPING
,
1193 REST_NODISPLAYAPPEARANCEPAGE
,
1195 REST_NOVISUALSTYLECHOICE
,
1198 REST_SETVISUALSTYLE
, /* 0x40000060 */
1199 REST_STARTRUNNOHOMEPATH
,
1200 REST_NOUSERNAMEINSTARTPANEL
,
1201 REST_NOMYCOMPUTERICON
,
1202 REST_NOSMNETWORKPLACES
,
1203 REST_NOSMPINNEDLIST
,
1206 REST_NOSMMOREPROGRAMS
,
1207 REST_NOSMMFUPROGRAMS
,
1208 REST_NOTRAYITEMSDISPLAY
,
1209 REST_NOTOOLBARSONTASKBAR
,
1213 REST_NOSMCONFIGUREPROGRAMS
= 0x4000006F,
1214 REST_HIDECLOCK
, /* 0x40000070 */
1215 REST_NOLOWDISKSPACECHECKS
,
1216 REST_NOENTIRENETWORK
,
1217 REST_NODESKTOPCLEANUP
,
1218 REST_BITBUCKNUKEONDELETE
,
1219 REST_BITBUCKCONFIRMDELETE
,
1221 REST_NODISPBACKGROUND
,
1222 REST_NODISPSCREENSAVEPG
,
1223 REST_NODISPSETTINGSPG
,
1224 REST_NODISPSCREENSAVEPREVIEW
,
1227 REST_NOTHUMBNAILCACHE
,
1228 REST_NOSTRCMPLOGICAL
,
1229 REST_NOPUBLISHWIZARD
,
1230 REST_NOONLINEPRINTSWIZARD
, /* 0x40000080 */
1232 REST_ALLOWUNHASHEDWEBVIEW
,
1233 REST_ALLOWLEGACYWEBVIEW
,
1234 REST_REVERTWEBVIEWSECURITY
,
1236 REST_INHERITCONSOLEHANDLES
= 0x40000086,
1238 REST_NODISCONNECT
= 0x41000001,
1240 REST_NOFILEASSOCIATE
, /* 0x41000003 */
1243 DWORD WINAPI
SHRestricted(RESTRICTIONS rest
);
1245 /****************************************************************************
1246 * SHChangeNotify API
1248 typedef struct _SHChangeNotifyEntry
1252 } SHChangeNotifyEntry
;
1254 #define SHCNE_RENAMEITEM 0x00000001
1255 #define SHCNE_CREATE 0x00000002
1256 #define SHCNE_DELETE 0x00000004
1257 #define SHCNE_MKDIR 0x00000008
1258 #define SHCNE_RMDIR 0x00000010
1259 #define SHCNE_MEDIAINSERTED 0x00000020
1260 #define SHCNE_MEDIAREMOVED 0x00000040
1261 #define SHCNE_DRIVEREMOVED 0x00000080
1262 #define SHCNE_DRIVEADD 0x00000100
1263 #define SHCNE_NETSHARE 0x00000200
1264 #define SHCNE_NETUNSHARE 0x00000400
1265 #define SHCNE_ATTRIBUTES 0x00000800
1266 #define SHCNE_UPDATEDIR 0x00001000
1267 #define SHCNE_UPDATEITEM 0x00002000
1268 #define SHCNE_SERVERDISCONNECT 0x00004000
1269 #define SHCNE_UPDATEIMAGE 0x00008000
1270 #define SHCNE_DRIVEADDGUI 0x00010000
1271 #define SHCNE_RENAMEFOLDER 0x00020000
1272 #define SHCNE_FREESPACE 0x00040000
1274 #define SHCNE_EXTENDED_EVENT 0x04000000
1275 #define SHCNE_ASSOCCHANGED 0x08000000
1276 #define SHCNE_DISKEVENTS 0x0002381F
1277 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1278 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1279 #define SHCNE_INTERRUPT 0x80000000
1281 #define SHCNEE_ORDERCHANGED 0x0002L
1282 #define SHCNEE_MSI_CHANGE 0x0004L
1283 #define SHCNEE_MSI_UNINSTALL 0x0005L
1285 #define SHCNF_IDLIST 0x0000
1286 #define SHCNF_PATHA 0x0001
1287 #define SHCNF_PRINTERA 0x0002
1288 #define SHCNF_DWORD 0x0003
1289 #define SHCNF_PATHW 0x0005
1290 #define SHCNF_PRINTERW 0x0006
1291 #define SHCNF_TYPE 0x00FF
1292 #define SHCNF_FLUSH 0x1000
1293 #define SHCNF_FLUSHNOWAIT 0x2000
1295 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1296 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1298 void WINAPI
SHChangeNotify(LONG wEventId
, UINT uFlags
, LPCVOID dwItem1
, LPCVOID dwItem2
);
1301 SLDF_HAS_ID_LIST
= 0x00000001,
1302 SLDF_HAS_LINK_INFO
= 0x00000002,
1303 SLDF_HAS_NAME
= 0x00000004,
1304 SLDF_HAS_RELPATH
= 0x00000008,
1305 SLDF_HAS_WORKINGDIR
= 0x00000010,
1306 SLDF_HAS_ARGS
= 0x00000020,
1307 SLDF_HAS_ICONLOCATION
= 0x00000040,
1308 SLDF_UNICODE
= 0x00000080,
1309 SLDF_FORCE_NO_LINKINFO
= 0x00000100,
1310 SLDF_HAS_EXP_SZ
= 0x00000200,
1311 SLDF_RUN_IN_SEPARATE
= 0x00000400,
1312 SLDF_HAS_LOGO3ID
= 0x00000800,
1313 SLDF_HAS_DARWINID
= 0x00001000,
1314 SLDF_RUNAS_USER
= 0x00002000,
1315 SLDF_HAS_EXP_ICON_SZ
= 0x00004000,
1316 SLDF_NO_PIDL_ALIAS
= 0x00008000,
1317 SLDF_FORCE_UNCNAME
= 0x00010000,
1318 SLDF_RUN_WITH_SHIMLAYER
= 0x00020000,
1319 SLDF_FORCE_NO_LINKTRACK
= 0x00040000,
1320 SLDF_ENABLE_TARGET_METADATA
= 0x00080000,
1321 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING
= 0x00200000,
1322 SLDF_VALID
= 0x003ff7ff,
1323 SLDF_RESERVED
= 0x80000000,
1324 } SHELL_LINK_DATA_FLAGS
;
1326 typedef struct tagDATABLOCKHEADER
1330 } DATABLOCK_HEADER
, *LPDATABLOCK_HEADER
, *LPDBLIST
;
1333 DATABLOCK_HEADER dbh
;
1334 CHAR szDarwinID
[MAX_PATH
];
1335 WCHAR szwDarwinID
[MAX_PATH
];
1336 } EXP_DARWIN_LINK
, *LPEXP_DARWIN_LINK
;
1341 CHAR szTarget
[MAX_PATH
];
1342 WCHAR szwTarget
[MAX_PATH
];
1343 } EXP_SZ_LINK
, *LPEXP_SZ_LINK
;
1348 DWORD idSpecialFolder
;
1350 } EXP_SPECIAL_FOLDER
, *LPEXP_SPECIAL_FOLDER
;
1355 BYTE abPropertyStorage
[1];
1356 } EXP_PROPERTYSTORAGE
;
1358 #define EXP_SZ_LINK_SIG 0xa0000001
1359 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1360 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1361 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1362 #define EXP_DARWIN_ID_SIG 0xa0000006
1363 #define EXP_SZ_ICON_SIG 0xa0000007
1364 #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
1365 #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
1367 typedef struct _SHChangeDWORDAsIDList
{
1372 } SHChangeDWORDAsIDList
, *LPSHChangeDWORDAsIDList
;
1374 typedef struct _SHChangeProductKeyAsIDList
{
1376 WCHAR wszProductKey
[39];
1378 } SHChangeProductKeyAsIDList
, *LPSHChangeProductKeyAsIDList
;
1380 ULONG WINAPI
SHChangeNotifyRegister(HWND hwnd
, int fSources
, LONG fEvents
, UINT wMsg
,
1381 int cEntries
, SHChangeNotifyEntry
*pshcne
);
1382 BOOL WINAPI
SHChangeNotifyDeregister(ULONG ulID
);
1383 HANDLE WINAPI
SHChangeNotification_Lock(HANDLE hChangeNotification
, DWORD dwProcessId
,
1384 LPITEMIDLIST
**pppidl
, LONG
*plEvent
);
1385 BOOL WINAPI
SHChangeNotification_Unlock(HANDLE hLock
);
1387 HRESULT WINAPI
SHGetRealIDL(IShellFolder
*psf
, LPCITEMIDLIST pidlSimple
, LPITEMIDLIST
* ppidlReal
);
1389 /****************************************************************************
1390 * SHCreateDirectory API
1392 DWORD WINAPI
SHCreateDirectory(HWND
, LPCVOID
);
1393 int WINAPI
SHCreateDirectoryExA(HWND
, LPCSTR
, LPSECURITY_ATTRIBUTES
);
1394 int WINAPI
SHCreateDirectoryExW(HWND
, LPCWSTR
, LPSECURITY_ATTRIBUTES
);
1395 #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
1397 /****************************************************************************
1398 * SHGetSpecialFolderLocation API
1400 HRESULT WINAPI
SHGetSpecialFolderLocation(HWND hwndOwner
, int nFolder
, LPITEMIDLIST
* ppidl
);
1401 HRESULT WINAPI
SHGetFolderLocation(HWND hwndOwner
, int nFolder
, HANDLE hToken
, DWORD dwReserved
, LPITEMIDLIST
*ppidl
);
1403 /****************************************************************************
1404 * SHGetFolderPath API
1407 SHGFP_TYPE_CURRENT
= 0,
1408 SHGFP_TYPE_DEFAULT
= 1
1411 HRESULT WINAPI
SHGetFolderPathA(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPSTR pszPath
);
1412 HRESULT WINAPI
SHGetFolderPathW(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPWSTR pszPath
);
1413 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1415 #define CSIDL_DESKTOP 0x0000
1416 #define CSIDL_INTERNET 0x0001
1417 #define CSIDL_PROGRAMS 0x0002
1418 #define CSIDL_CONTROLS 0x0003
1419 #define CSIDL_PRINTERS 0x0004
1420 #define CSIDL_PERSONAL 0x0005
1421 #define CSIDL_FAVORITES 0x0006
1422 #define CSIDL_STARTUP 0x0007
1423 #define CSIDL_RECENT 0x0008
1424 #define CSIDL_SENDTO 0x0009
1425 #define CSIDL_BITBUCKET 0x000a
1426 #define CSIDL_STARTMENU 0x000b
1427 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1428 #define CSIDL_MYMUSIC 0x000d
1429 #define CSIDL_MYVIDEO 0x000e
1430 #define CSIDL_DESKTOPDIRECTORY 0x0010
1431 #define CSIDL_DRIVES 0x0011
1432 #define CSIDL_NETWORK 0x0012
1433 #define CSIDL_NETHOOD 0x0013
1434 #define CSIDL_FONTS 0x0014
1435 #define CSIDL_TEMPLATES 0x0015
1436 #define CSIDL_COMMON_STARTMENU 0x0016
1437 #define CSIDL_COMMON_PROGRAMS 0X0017
1438 #define CSIDL_COMMON_STARTUP 0x0018
1439 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1440 #define CSIDL_APPDATA 0x001a
1441 #define CSIDL_PRINTHOOD 0x001b
1442 #define CSIDL_LOCAL_APPDATA 0x001c
1443 #define CSIDL_ALTSTARTUP 0x001d
1444 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1445 #define CSIDL_COMMON_FAVORITES 0x001f
1446 #define CSIDL_INTERNET_CACHE 0x0020
1447 #define CSIDL_COOKIES 0x0021
1448 #define CSIDL_HISTORY 0x0022
1449 #define CSIDL_COMMON_APPDATA 0x0023
1450 #define CSIDL_WINDOWS 0x0024
1451 #define CSIDL_SYSTEM 0x0025
1452 #define CSIDL_PROGRAM_FILES 0x0026
1453 #define CSIDL_MYPICTURES 0x0027
1454 #define CSIDL_PROFILE 0x0028
1455 #define CSIDL_SYSTEMX86 0x0029
1456 #define CSIDL_PROGRAM_FILESX86 0x002a
1457 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1458 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1459 #define CSIDL_COMMON_TEMPLATES 0x002d
1460 #define CSIDL_COMMON_DOCUMENTS 0x002e
1461 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1462 #define CSIDL_ADMINTOOLS 0x0030
1463 #define CSIDL_CONNECTIONS 0x0031
1464 #define CSIDL_COMMON_MUSIC 0x0035
1465 #define CSIDL_COMMON_PICTURES 0x0036
1466 #define CSIDL_COMMON_VIDEO 0x0037
1467 #define CSIDL_RESOURCES 0x0038
1468 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1469 #define CSIDL_COMMON_OEM_LINKS 0x003a
1470 #define CSIDL_CDBURN_AREA 0x003b
1471 #define CSIDL_COMPUTERSNEARME 0x003d
1472 #define CSIDL_PROFILES 0x003e
1473 #define CSIDL_FOLDER_MASK 0x00ff
1474 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1475 #define CSIDL_FLAG_NO_ALIAS 0x1000
1476 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1477 #define CSIDL_FLAG_CREATE 0x8000
1479 #define CSIDL_FLAG_MASK 0xff00
1481 /****************************************************************************
1482 * SHGetDesktopFolder API
1484 HRESULT WINAPI
SHGetDesktopFolder(IShellFolder
* *);
1486 /****************************************************************************
1487 * SHBindToParent API
1489 HRESULT WINAPI
SHBindToParent(LPCITEMIDLIST pidl
, REFIID riid
, LPVOID
*ppv
, LPCITEMIDLIST
*ppidlLast
);
1491 /****************************************************************************
1492 * SHDefExtractIcon API
1494 HRESULT WINAPI
SHDefExtractIconA(LPCSTR pszIconFile
, int iIndex
, UINT uFlags
,
1495 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
1496 HRESULT WINAPI
SHDefExtractIconW(LPCWSTR pszIconFile
, int iIndex
, UINT uFlags
,
1497 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
1498 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1501 * DROPFILES for CF_HDROP and CF_PRINTERS
1503 typedef struct _DROPFILES
1509 } DROPFILES
, *LPDROPFILES
;
1512 * Properties of a file in the clipboard
1514 typedef struct _FILEDESCRIPTORA
{
1519 DWORD dwFileAttributes
;
1520 FILETIME ftCreationTime
;
1521 FILETIME ftLastAccessTime
;
1522 FILETIME ftLastWriteTime
;
1523 DWORD nFileSizeHigh
;
1525 CHAR cFileName
[MAX_PATH
];
1526 } FILEDESCRIPTORA
, *LPFILEDESCRIPTORA
;
1528 typedef struct _FILEDESCRIPTORW
{
1533 DWORD dwFileAttributes
;
1534 FILETIME ftCreationTime
;
1535 FILETIME ftLastAccessTime
;
1536 FILETIME ftLastWriteTime
;
1537 DWORD nFileSizeHigh
;
1539 WCHAR cFileName
[MAX_PATH
];
1540 } FILEDESCRIPTORW
, *LPFILEDESCRIPTORW
;
1542 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR
)
1543 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR
)
1546 * CF_FILEGROUPDESCRIPTOR clipboard format
1548 typedef struct _FILEGROUPDESCRIPTORA
{
1550 FILEDESCRIPTORA fgd
[1];
1551 } FILEGROUPDESCRIPTORA
, *LPFILEGROUPDESCRIPTORA
;
1553 typedef struct _FILEGROUPDESCRIPTORW
{
1555 FILEDESCRIPTORW fgd
[1];
1556 } FILEGROUPDESCRIPTORW
, *LPFILEGROUPDESCRIPTORW
;
1558 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR
)
1559 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR
)
1561 /****************************************************************************
1568 BOOL fFullPathTitle
:1;
1569 BOOL fSaveLocalView
:1;
1571 BOOL fSimpleDefault
:1;
1572 BOOL fDontShowDescBar
:1;
1573 BOOL fNewWindowMode
:1;
1574 BOOL fShowCompColor
:1;
1575 BOOL fDontPrettyNames
:1;
1576 BOOL fAdminsCreateCommonGroups
:1;
1577 UINT fUnusedFlags
:7;
1578 UINT
:15; /* Required for proper binary layout with gcc */
1579 UINT fMenuEnumFilter
;
1580 } CABINETSTATE
, *LPCABINETSTATE
;
1582 #define CABINETSTATE_VERSION 2
1584 BOOL WINAPI
ReadCabinetState(CABINETSTATE
*, int);
1585 BOOL WINAPI
WriteCabinetState(CABINETSTATE
*);
1587 /****************************************************************************
1588 * Path Manipulation Routines
1591 /* PathProcessCommand flags */
1592 #define PPCF_ADDQUOTES 0x01
1593 #define PPCF_INCLUDEARGS 0x02
1594 #define PPCF_ADDARGUMENTS 0x03
1595 #define PPCF_NODIRECTORIES 0x10
1596 #define PPCF_DONTRESOLVE 0x20
1597 #define PPCF_FORCEQUALIFY 0x40
1598 #define PPCF_LONGESTPOSSIBLE 0x80
1600 /* PathResolve flags */
1601 #define PRF_VERIFYEXISTS 0x01
1602 #define PRF_EXECUTABLE 0x02
1603 #define PRF_TRYPROGRAMEXTENSIONS 0x03
1604 #define PRF_FIRSTDIRDEF 0x04
1605 #define PRF_DONTFINDLINK 0x08
1607 VOID WINAPI
PathGetShortPath(LPWSTR pszPath
);
1608 LONG WINAPI
PathProcessCommand(LPCWSTR
, LPWSTR
, int, DWORD
);
1609 BOOL WINAPI
PathYetAnotherMakeUniqueName(LPWSTR
, LPCWSTR
, LPCWSTR
, LPCWSTR
);
1611 /****************************************************************************
1612 * Drag And Drop Routines
1615 /* DAD_AutoScroll sample structure */
1616 #define NUM_POINTS 3
1622 POINT pts
[NUM_POINTS
];
1623 DWORD dwTimes
[NUM_POINTS
];
1626 BOOL WINAPI
DAD_SetDragImage(HIMAGELIST
,LPPOINT
);
1627 BOOL WINAPI
DAD_DragEnterEx(HWND
,POINT
);
1628 BOOL WINAPI
DAD_DragEnterEx2(HWND
,POINT
,IDataObject
*);
1629 BOOL WINAPI
DAD_DragMove(POINT
);
1630 BOOL WINAPI
DAD_DragLeave(void);
1631 BOOL WINAPI
DAD_AutoScroll(HWND
,AUTO_SCROLL_DATA
*,LPPOINT
);
1632 HRESULT WINAPI
SHDoDragDrop(HWND
,IDataObject
*,IDropSource
*,DWORD
,LPDWORD
);
1634 LPITEMIDLIST WINAPI
ILAppendID(LPITEMIDLIST
,LPCSHITEMID
,BOOL
);
1635 LPITEMIDLIST WINAPI
ILClone(LPCITEMIDLIST
);
1636 LPITEMIDLIST WINAPI
ILCloneFirst(LPCITEMIDLIST
);
1637 LPITEMIDLIST WINAPI
ILCreateFromPathA(LPCSTR
);
1638 LPITEMIDLIST WINAPI
ILCreateFromPathW(LPCWSTR
);
1639 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1640 LPITEMIDLIST WINAPI
ILCombine(LPCITEMIDLIST
,LPCITEMIDLIST
);
1641 LPITEMIDLIST WINAPI
ILFindChild(LPCITEMIDLIST
,LPCITEMIDLIST
);
1642 LPITEMIDLIST WINAPI
ILFindLastID(LPCITEMIDLIST
);
1643 void WINAPI
ILFree(LPITEMIDLIST
);
1644 LPITEMIDLIST WINAPI
ILGetNext(LPCITEMIDLIST
);
1645 UINT WINAPI
ILGetSize(LPCITEMIDLIST
);
1646 BOOL WINAPI
ILIsEqual(LPCITEMIDLIST
,LPCITEMIDLIST
);
1647 BOOL WINAPI
ILIsParent(LPCITEMIDLIST
,LPCITEMIDLIST
,BOOL
);
1648 HRESULT WINAPI
ILLoadFromStream(LPSTREAM
,LPITEMIDLIST
*);
1649 BOOL WINAPI
ILRemoveLastID(LPITEMIDLIST
);
1650 HRESULT WINAPI
ILSaveToStream(LPSTREAM
,LPCITEMIDLIST
);
1653 #include <poppack.h>
1657 #endif /* defined(__cplusplus) */
1659 #endif /* __WINE_SHLOBJ_H */