crypt32: Don't fail chain creation if signature doesn't match.
[wine/wine64.git] / include / shlobj.h
blob414f45242a0ba32089779733f1453181d9ec340d
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_SHLOBJ_H
20 #define __WINE_SHLOBJ_H
22 #include <ole2.h>
23 #include <commctrl.h>
24 #include <prsht.h>
25 #include <shlguid.h>
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* defined(__cplusplus) */
31 /* Except for specific structs, this header is byte packed */
32 #include <pshpack1.h>
34 #include <shtypes.h>
35 #include <shobjidl.h>
37 #ifndef HPSXA_DEFINED
38 #define HPSXA_DEFINED
39 DECLARE_HANDLE(HPSXA);
40 #endif
42 UINT WINAPI SHAddFromPropSheetExtArray(HPSXA,LPFNADDPROPSHEETPAGE,LPARAM);
43 LPVOID WINAPI SHAlloc(ULONG);
44 HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*);
45 HPSXA WINAPI SHCreatePropSheetExtArray(HKEY,LPCWSTR,UINT);
46 DWORD WINAPI SHCLSIDFromStringA(LPCSTR,CLSID*);
47 DWORD WINAPI SHCLSIDFromStringW(LPCWSTR,CLSID*);
48 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
49 HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**);
50 void WINAPI SHDestroyPropSheetExtArray(HPSXA);
51 BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
52 DWORD WINAPI SHFormatDrive(HWND,UINT,UINT,UINT);
53 void WINAPI SHFree(LPVOID);
54 BOOL WINAPI GetFileNameFromBrowse(HWND,LPSTR,DWORD,LPCSTR,LPCSTR,LPCSTR,LPCSTR);
55 HRESULT WINAPI SHGetInstanceExplorer(IUnknown**);
56 BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
57 BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
58 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
59 INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST);
60 HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
61 HRESULT WINAPI SHLoadOLE(LPARAM);
62 UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM);
63 LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
64 int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
65 HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
66 VOID WINAPI SHUpdateImageA(LPCSTR,INT,UINT,INT);
67 VOID WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
68 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
69 int WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
70 int WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
72 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formatable */
73 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was canceled */
74 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formatable */
76 /* SHFormatDrive flags */
77 #define SHFMT_ID_DEFAULT 0xFFFF
78 #define SHFMT_OPT_FULL 1
79 #define SHFMT_OPT_SYSONLY 2
81 /* SHObjectProperties flags */
82 #define SHOP_PRINTERNAME 0x01
83 #define SHOP_FILEPATH 0x02
84 #define SHOP_VOLUMEGUID 0x04
86 BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
88 #define PCS_FATAL 0x80000000
89 #define PCS_REPLACEDCHAR 0x00000001
90 #define PCS_REMOVEDCHAR 0x00000002
91 #define PCS_TRUNCATED 0x00000004
92 #define PCS_PATHTOOLONG 0x00000008
94 int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
96 /*****************************************************************************
97 * IContextMenu interface
101 /* DATAOBJECT_InitShellIDList*/
102 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
104 typedef struct
105 { UINT cidl;
106 UINT aoffset[1];
107 } CIDA, *LPIDA;
109 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
110 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
112 /* DATAOBJECT_InitFileGroupDesc */
113 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
115 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
117 /* DATAOBJECT_InitFileContents*/
118 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
120 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
121 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
122 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
123 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
124 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
125 #define CFSTR_SHELLURL "UniformResourceLocator"
126 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
127 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
128 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
129 #define CFSTR_INDRAGLOOP "InShellDragLoop"
131 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
132 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
135 /************************************************************************
136 * IShellView interface
139 typedef GUID SHELLVIEWID;
140 #define SV_CLASS_NAME ("SHELLDLL_DefView")
142 #define FCIDM_SHVIEWFIRST 0x0000
143 /* undocumented */
144 #define FCIDM_SHVIEW_ARRANGE 0x7001
145 #define FCIDM_SHVIEW_DELETE 0x7011
146 #define FCIDM_SHVIEW_PROPERTIES 0x7013
147 #define FCIDM_SHVIEW_CUT 0x7018
148 #define FCIDM_SHVIEW_COPY 0x7019
149 #define FCIDM_SHVIEW_INSERT 0x701A
150 #define FCIDM_SHVIEW_UNDO 0x701B
151 #define FCIDM_SHVIEW_INSERTLINK 0x701C
152 #define FCIDM_SHVIEW_SELECTALL 0x7021
153 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
155 #define FCIDM_SHVIEW_BIGICON 0x7029
156 #define FCIDM_SHVIEW_SMALLICON 0x702A
157 #define FCIDM_SHVIEW_LISTVIEW 0x702B
158 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
159 /* 0x7030-0x703f are used by the shellbrowser */
160 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
161 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
163 #define FCIDM_SHVIEW_HELP 0x7041
164 #define FCIDM_SHVIEW_RENAME 0x7050
165 #define FCIDM_SHVIEW_CREATELINK 0x7051
166 #define FCIDM_SHVIEW_NEWLINK 0x7052
167 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
169 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
170 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
171 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
173 #define FCIDM_SHVIEWLAST 0x7fff
174 #define FCIDM_BROWSERFIRST 0xA000
175 /* undocumented toolbar items from stddlg's*/
176 #define FCIDM_TB_UPFOLDER 0xA001
177 #define FCIDM_TB_NEWFOLDER 0xA002
178 #define FCIDM_TB_SMALLICON 0xA003
179 #define FCIDM_TB_REPORTVIEW 0xA004
180 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
182 #define FCIDM_BROWSERLAST 0xbf00
183 #define FCIDM_GLOBALFIRST 0x8000
184 #define FCIDM_GLOBALLAST 0x9fff
187 * Global submenu IDs and separator IDs
189 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
190 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
191 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
192 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
193 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
194 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
195 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
196 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
197 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
198 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
200 /* control IDs known to the view */
201 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
202 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
205 /****************************************************************************
206 * IShellIcon interface
209 #define INTERFACE IShellIcon
210 DECLARE_INTERFACE_(IShellIcon,IUnknown)
212 /*** IUnknown methods ***/
213 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
214 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
215 STDMETHOD_(ULONG,Release)(THIS) PURE;
216 /*** IShellIcon methods ***/
217 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
219 #undef INTERFACE
221 #if !defined(__cplusplus) || defined(CINTERFACE)
222 /*** IUnknown methods ***/
223 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
224 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
225 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
226 /*** IShellIcon methods ***/
227 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
228 #endif
230 typedef IShellIcon *LPSHELLICON;
232 /* IQueryInfo interface */
233 #define INTERFACE IQueryInfo
234 DECLARE_INTERFACE_(IQueryInfo,IUnknown)
236 /*** IUnknown methods ***/
237 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
238 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
239 STDMETHOD_(ULONG,Release)(THIS) PURE;
240 /*** IQueryInfo methods ***/
241 STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, WCHAR** lppTips) PURE;
242 STDMETHOD(GetInfoFlags)(THIS_ DWORD* lpFlags) PURE;
244 #undef INTERFACE
246 #if !defined(__cplusplus) || defined(CINTERFACE)
247 /*** IUnknown methods ***/
248 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
249 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
250 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
251 /*** IQueryInfo methods ***/
252 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
253 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
254 #endif
256 /* IInputObject interface */
257 #define INTERFACE IInputObject
258 DECLARE_INTERFACE_(IInputObject,IUnknown)
260 /*** IUnknown methods ***/
261 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
262 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
263 STDMETHOD_(ULONG,Release)(THIS) PURE;
264 /*** IInputObject methods ***/
265 STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
266 STDMETHOD(HasFocusIO)(THIS) PURE;
267 STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
269 #undef INTERFACE
271 #if !defined(__cplusplus) || defined(CINTERFACE)
272 /*** IUnknown methods ***/
273 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
274 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
275 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
276 /*** IInputObject methods ***/
277 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
278 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
279 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
280 #endif
282 /* IInputObjectSite interface */
283 #define INTERFACE IInputObjectSite
284 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
286 /*** IUnknown methods ***/
287 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
288 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
289 STDMETHOD_(ULONG,Release) (THIS) PURE;
290 /*** IInputObjectSite methods ***/
291 STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
293 #undef INTERFACE
295 #if !defined(__cplusplus) || defined(CINTERFACE)
296 /*** IUnknown methods ***/
297 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
298 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
299 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
300 /*** IInputObject methods ***/
301 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
302 #endif
304 /* IObjMgr interface */
305 #define INTERFACE IObjMgr
306 DECLARE_INTERFACE_(IObjMgr,IUnknown)
308 /*** IUnknown methods ***/
309 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
310 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
311 STDMETHOD_(ULONG,Release) (THIS) PURE;
312 /*** IObjMgr methods ***/
313 STDMETHOD(Append)(THIS_ LPUNKNOWN punk) PURE;
314 STDMETHOD(Remove)(THIS_ LPUNKNOWN punk) PURE;
316 #undef INTERFACE
318 #if !defined(__cplusplus) || defined(CINTERFACE)
319 /*** IUnknown methods ***/
320 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
321 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
322 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
323 /*** IObjMgr methods ***/
324 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
325 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
326 #endif
328 /* IACList interface */
329 #define INTERFACE IACList
330 DECLARE_INTERFACE_(IACList,IUnknown)
332 /*** IUnknown methods ***/
333 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
334 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
335 STDMETHOD_(ULONG,Release) (THIS) PURE;
336 /*** IACList methods ***/
337 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
339 #undef INTERFACE
341 #if !defined(__cplusplus) || defined(CINTERFACE)
342 /*** IUnknown methods ***/
343 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
344 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
345 #define IACList_Release(p) (p)->lpVtbl->Release(p)
346 /*** IACList methods ***/
347 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
348 #endif
351 /****************************************************************************
352 * SHAddToRecentDocs API
354 #define SHARD_PIDL 0x00000001L
355 #define SHARD_PATHA 0x00000002L
356 #define SHARD_PATHW 0x00000003L
357 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
359 void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
361 /****************************************************************************
362 * SHBrowseForFolder API
364 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
366 #include <pshpack8.h>
368 typedef struct tagBROWSEINFOA {
369 HWND hwndOwner;
370 LPCITEMIDLIST pidlRoot;
371 LPSTR pszDisplayName;
372 LPCSTR lpszTitle;
373 UINT ulFlags;
374 BFFCALLBACK lpfn;
375 LPARAM lParam;
376 INT iImage;
377 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
379 typedef struct tagBROWSEINFOW {
380 HWND hwndOwner;
381 LPCITEMIDLIST pidlRoot;
382 LPWSTR pszDisplayName;
383 LPCWSTR lpszTitle;
384 UINT ulFlags;
385 BFFCALLBACK lpfn;
386 LPARAM lParam;
387 INT iImage;
388 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
390 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
391 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
392 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
394 #include <poppack.h>
396 /* Browsing for directory. */
397 #define BIF_RETURNONLYFSDIRS 0x0001
398 #define BIF_DONTGOBELOWDOMAIN 0x0002
399 #define BIF_STATUSTEXT 0x0004
400 #define BIF_RETURNFSANCESTORS 0x0008
401 #define BIF_EDITBOX 0x0010
402 #define BIF_VALIDATE 0x0020
403 #define BIF_NEWDIALOGSTYLE 0x0040
404 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
405 #define BIF_BROWSEINCLUDEURLS 0x0080
406 #define BIF_UAHINT 0x0100
407 #define BIF_NONEWFOLDERBUTTON 0x0200
408 #define BIF_NOTRANSLATETARGETS 0x0400
410 #define BIF_BROWSEFORCOMPUTER 0x1000
411 #define BIF_BROWSEFORPRINTER 0x2000
412 #define BIF_BROWSEINCLUDEFILES 0x4000
414 /* message from browser */
415 #define BFFM_INITIALIZED 1
416 #define BFFM_SELCHANGED 2
417 #define BFFM_VALIDATEFAILEDA 3
418 #define BFFM_VALIDATEFAILEDW 4
419 #define BFFM_IUNKNOWN 5
421 /* messages to browser */
422 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
423 #define BFFM_ENABLEOK (WM_USER+101)
424 #define BFFM_SETSELECTIONA (WM_USER+102)
425 #define BFFM_SETSELECTIONW (WM_USER+103)
426 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
427 #define BFFM_SETOKTEXT (WM_USER+105)
428 #define BFFM_SETEXPANDED (WM_USER+106)
430 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
431 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
432 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
433 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
434 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
435 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
437 /**********************************************************************
438 * SHCreateShellFolderViewEx API
441 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
442 IShellView* dwUser,
443 IShellFolder* pshf,
444 HWND hWnd,
445 UINT uMsg,
446 WPARAM wParam,
447 LPARAM lParam);
449 typedef struct _CSFV
451 UINT cbSize;
452 IShellFolder* pshf;
453 IShellView* psvOuter;
454 LPCITEMIDLIST pidl;
455 LONG lEvents;
456 LPFNVIEWCALLBACK pfnCallback;
457 FOLDERVIEWMODE fvm;
458 } CSFV, *LPCSFV;
460 HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
462 /* SHCreateShellFolderViewEx callback messages */
463 #define SFVM_MERGEMENU 1
464 #define SFVM_INVOKECOMMAND 2
465 #define SFVM_GETHELPTEXT 3
466 #define SFVM_GETTOOLTIPTEXT 4
467 #define SFVM_GETBUTTONINFO 5
468 #define SFVM_GETBUTTONS 6
469 #define SFVM_INITMENUPOPUP 7
470 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
471 #define SFVM_DRAWMENUITEM 9 /* undocumented */
472 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
473 #define SFVM_EXITMENULOOP 11 /* undocumented */
474 #define SFVM_VIEWRELEASE 12 /* undocumented */
475 #define SFVM_GETNAMELENGTH 13 /* undocumented */
476 #define SFVM_FSNOTIFY 14
477 #define SFVM_WINDOWCREATED 15
478 #define SFVM_WINDOWCLOSING 16 /* undocumented */
479 #define SFVM_LISTREFRESHED 17 /* undocumented */
480 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
481 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
482 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
483 #define SFVM_GETDETAILSOF 23
484 #define SFVM_COLUMNCLICK 24
485 #define SFVM_QUERYFSNOTIFY 25
486 #define SFVM_DEFITEMCOUNT 26
487 #define SFVM_DEFVIEWMODE 27
488 #define SFVM_UNMERGEFROMMENU 28
489 #define SFVM_ADDINGOBJECT 29 /* undocumented */
490 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
491 #define SFVM_UPDATESTATUSBAR 31
492 #define SFVM_BACKGROUNDENUM 32
493 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
494 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
495 #define SFVM_CANSELECTALL 35 /* undocumented */
496 #define SFVM_DIDDRAGDROP 36
497 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
498 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
499 #define SFVM_SETISFV 39
500 #define SFVM_GETEXTVIEWS 40 /* undocumented */
501 #define SFVM_THISIDLIST 41
502 #define SFVM_ADDPROPERTYPAGES 47
503 #define SFVM_BACKGROUNDENUMDONE 48
504 #define SFVM_GETNOTIFY 49
505 #define SFVM_GETSORTDEFAULTS 53
506 #define SFVM_SIZE 57
507 #define SFVM_GETZONE 58
508 #define SFVM_GETPANE 59
509 #define SFVM_GETHELPTOPIC 63
510 #define SFVM_GETANIMATION 68
511 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
512 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
513 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
514 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
515 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
516 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
517 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
518 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
520 /* Types and definitions for the SFM_* parameters */
521 #include <pshpack8.h>
523 #define QCMINFO_PLACE_BEFORE 0
524 #define QCMINFO_PLACE_AFTER 1
525 typedef struct _QCMINFO_IDMAP_PLACEMENT
527 UINT id;
528 UINT fFlags;
529 } QCMINFO_IDMAP_PLACEMENT;
531 typedef struct _QCMINFO_IDMAP
533 UINT nMaxIds;
534 QCMINFO_IDMAP_PLACEMENT pIdList[1];
535 } QCMINFO_IDMAP;
537 typedef struct _QCMINFO
539 HMENU hmenu;
540 UINT indexMenu;
541 UINT idCmdFirst;
542 UINT idCmdLast;
543 QCMINFO_IDMAP const* pIdMap;
544 } QCMINFO, *LPQCMINFO;
546 #define TBIF_DEFAULT 0x00000000
547 #define TBIF_APPEND 0x00000000
548 #define TBIF_PREPEND 0x00000001
549 #define TBIF_REPLACE 0x00000002
550 #define TBIF_INTERNETBAR 0x00010000
551 #define TBIF_STANDARDTOOLBAR 0x00020000
552 #define TBIF_NOTOOLBAR 0x00030000
554 typedef struct _TBINFO
556 UINT cbuttons;
557 UINT uFlags;
558 } TBINFO, *LPTBINFO;
560 #include <poppack.h>
562 /****************************************************************************
563 * SHShellFolderView_Message API
566 LRESULT WINAPI SHShellFolderView_Message(
567 HWND hwndCabinet,
568 UINT uMessage,
569 LPARAM lParam);
571 /* SHShellFolderView_Message messages */
572 #define SFVM_REARRANGE 0x0001
573 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
574 #define SFVM_ADDOBJECT 0x0003
575 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
576 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
577 #define SFVM_REMOVEOBJECT 0x0006
578 #define SFVM_UPDATEOBJECT 0x0007
579 #define SFVM_SETREDRAW 0x0008 /* undocumented */
580 #define SFVM_GETSELECTEDOBJECTS 0x0009
581 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
582 #define SFVM_MOVEICONS 0x000B /* undocumented */
583 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
584 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
585 #define SFVM_SETITEMPOS 0x000E
586 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
587 #define SFVM_SETCLIPBOARD 0x0010
588 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
589 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
590 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
591 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
592 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
593 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
594 #define SFVM_SETPOINTS 0x0017
596 /****************************************************************************
597 * SHGetDataFromIDList API
599 #define SHGDFIL_FINDDATA 1
600 #define SHGDFIL_NETRESOURCE 2
601 #define SHGDFIL_DESCRIPTIONID 3
603 #define SHDID_ROOT_REGITEM 1
604 #define SHDID_FS_FILE 2
605 #define SHDID_FS_DIRECTORY 3
606 #define SHDID_FS_OTHER 4
607 #define SHDID_COMPUTER_DRIVE35 5
608 #define SHDID_COMPUTER_DRIVE525 6
609 #define SHDID_COMPUTER_REMOVABLE 7
610 #define SHDID_COMPUTER_FIXED 8
611 #define SHDID_COMPUTER_NETDRIVE 9
612 #define SHDID_COMPUTER_CDROM 10
613 #define SHDID_COMPUTER_RAMDISK 11
614 #define SHDID_COMPUTER_OTHER 12
615 #define SHDID_NET_DOMAIN 13
616 #define SHDID_NET_SERVER 14
617 #define SHDID_NET_SHARE 15
618 #define SHDID_NET_RESTOFNET 16
619 #define SHDID_NET_OTHER 17
620 #define SHDID_COMPUTER_IMAGING 18
621 #define SHDID_COMPUTER_AUDIO 19
622 #define SHDID_COMPUTER_SHAREDDOCS 20
624 #include <pshpack8.h>
626 typedef struct _SHDESCRIPTIONID
627 { DWORD dwDescriptionId;
628 CLSID clsid;
629 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
631 #include <poppack.h>
633 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
634 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
635 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
637 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
638 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
639 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
641 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
643 /**********************************************************************
644 * SHGetSetSettings ()
647 typedef struct
649 BOOL fShowAllObjects : 1;
650 BOOL fShowExtensions : 1;
651 BOOL fNoConfirmRecycle : 1;
653 BOOL fShowSysFiles : 1;
654 BOOL fShowCompColor : 1;
655 BOOL fDoubleClickInWebView : 1;
656 BOOL fDesktopHTML : 1;
657 BOOL fWin95Classic : 1;
658 BOOL fDontPrettyPath : 1;
659 BOOL fShowAttribCol : 1;
660 BOOL fMapNetDrvBtn : 1;
661 BOOL fShowInfoTip : 1;
662 BOOL fHideIcons : 1;
663 BOOL fWebView : 1;
664 BOOL fFilter : 1;
665 BOOL fShowSuperHidden : 1;
666 BOOL fNoNetCrawling : 1;
668 UINT :15; /* Required for proper binary layout with gcc */
669 DWORD dwWin95Unused;
670 UINT uWin95Unused;
671 LONG lParamSort;
672 int iSortDirection;
673 UINT version;
674 UINT uNotUsed;
675 BOOL fSepProcess: 1;
676 BOOL fStartPanelOn: 1;
677 BOOL fShowStartPage: 1;
678 UINT fSpareFlags : 13;
679 UINT :15; /* Required for proper binary layout with gcc */
680 } SHELLSTATE, *LPSHELLSTATE;
682 /**********************************************************************
683 * SHGetSettings ()
685 typedef struct
686 { BOOL fShowAllObjects : 1;
687 BOOL fShowExtensions : 1;
688 BOOL fNoConfirmRecycle : 1;
689 BOOL fShowSysFiles : 1;
691 BOOL fShowCompColor : 1;
692 BOOL fDoubleClickInWebView : 1;
693 BOOL fDesktopHTML : 1;
694 BOOL fWin95Classic : 1;
696 BOOL fDontPrettyPath : 1;
697 BOOL fShowAttribCol : 1;
698 BOOL fMapNetDrvBtn : 1;
699 BOOL fShowInfoTip : 1;
701 BOOL fHideIcons : 1;
702 UINT fRestFlags : 3;
703 UINT :15; /* Required for proper binary layout with gcc */
704 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
706 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
708 #define SSF_SHOWALLOBJECTS 0x0001
709 #define SSF_SHOWEXTENSIONS 0x0002
710 #define SSF_SHOWCOMPCOLOR 0x0008
711 #define SSF_SHOWSYSFILES 0x0020
712 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
713 #define SSF_SHOWATTRIBCOL 0x0100
714 #define SSF_DESKTOPHTML 0x0200
715 #define SSF_WIN95CLASSIC 0x0400
716 #define SSF_DONTPRETTYPATH 0x0800
717 #define SSF_SHOWINFOTIP 0x2000
718 #define SSF_MAPNETDRVBUTTON 0x1000
719 #define SSF_NOCONFIRMRECYCLE 0x8000
720 #define SSF_HIDEICONS 0x4000
722 /****************************************************************************
723 * SHRestricted API
725 typedef enum RESTRICTIONS
727 REST_NONE = 0x00000000,
728 REST_NORUN = 0x00000001,
729 REST_NOCLOSE = 0x00000002,
730 REST_NOSAVESET = 0x00000004,
731 REST_NOFILEMENU = 0x00000008,
732 REST_NOSETFOLDERS = 0x00000010,
733 REST_NOSETTASKBAR = 0x00000020,
734 REST_NODESKTOP = 0x00000040,
735 REST_NOFIND = 0x00000080,
736 REST_NODRIVES = 0x00000100,
737 REST_NODRIVEAUTORUN = 0x00000200,
738 REST_NODRIVETYPEAUTORUN = 0x00000400,
739 REST_NONETHOOD = 0x00000800,
740 REST_STARTBANNER = 0x00001000,
741 REST_RESTRICTRUN = 0x00002000,
742 REST_NOPRINTERTABS = 0x00004000,
743 REST_NOPRINTERDELETE = 0x00008000,
744 REST_NOPRINTERADD = 0x00010000,
745 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
746 REST_MYDOCSONNET = 0x00040000,
747 REST_NOEXITTODOS = 0x00080000,
748 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
749 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
750 REST_NOCOMMONGROUPS = 0x00400000,
751 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
752 REST_NOWEB = 0x01000000,
753 REST_NOTRAYCONTEXTMENU = 0x02000000,
754 REST_NOVIEWCONTEXTMENU = 0x04000000,
755 REST_NONETCONNECTDISCONNECT = 0x08000000,
756 REST_STARTMENULOGOFF = 0x10000000,
757 REST_NOSETTINGSASSIST = 0x20000000,
758 REST_NOINTERNETICON = 0x40000001,
759 REST_NORECENTDOCSHISTORY,
760 REST_NORECENTDOCSMENU,
761 REST_NOACTIVEDESKTOP,
762 REST_NOACTIVEDESKTOPCHANGES,
763 REST_NOFAVORITESMENU,
764 REST_CLEARRECENTDOCSONEXIT,
765 REST_CLASSICSHELL,
766 REST_NOCUSTOMIZEWEBVIEW,
768 REST_NOHTMLWALLPAPER = 0x40000010,
769 REST_NOCHANGINGWALLPAPER,
770 REST_NODESKCOMP,
771 REST_NOADDDESKCOMP,
772 REST_NODELDESKCOMP,
773 REST_NOCLOSEDESKCOMP,
774 REST_NOCLOSE_DRAGDROPBAND,
775 REST_NOMOVINGBAND,
776 REST_NOEDITDESKCOMP,
777 REST_NORESOLVESEARCH,
778 REST_NORESOLVETRACK,
779 REST_FORCECOPYACLWITHFILE,
780 REST_NOLOGO3CHANNELNOTIFY,
781 REST_NOFORGETSOFTWAREUPDATE,
782 REST_NOSETACTIVEDESKTOP,
783 REST_NOUPDATEWINDOWS,
784 REST_NOCHANGESTARMENU, /* 0x40000020 */
785 REST_NOFOLDEROPTIONS,
786 REST_HASFINDCOMPUTERS,
787 REST_INTELLIMENUS,
788 REST_RUNDLGMEMCHECKBOX,
789 REST_ARP_ShowPostSetup,
790 REST_NOCSC,
791 REST_NOCONTROLPANEL,
792 REST_ENUMWORKGROUP,
793 REST_ARP_NOARP,
794 REST_ARP_NOREMOVEPAGE,
795 REST_ARP_NOADDPAGE,
796 REST_ARP_NOWINSETUPPAGE,
797 REST_GREYMSIADS,
798 REST_NOCHANGEMAPPEDDRIVELABEL,
799 REST_NOCHANGEMAPPEDDRIVECOMMENT,
800 REST_MaxRecentDocs, /* 0x40000030 */
801 REST_NONETWORKCONNECTIONS,
802 REST_FORCESTARTMENULOGOFF,
803 REST_NOWEBVIEW,
804 REST_NOCUSTOMIZETHISFOLDER,
805 REST_NOENCRYPTION,
807 REST_ALLOWFRENCHENCRYPTION, /* not documented */
809 REST_DONTSHOWSUPERHIDDEN,
810 REST_NOSHELLSEARCHBUTTON,
811 REST_NOHARDWARETAB,
812 REST_NORUNASINSTALLPROMPT,
813 REST_PROMPTRUNASINSTALLNETPATH,
814 REST_NOMANAGEMYCOMPUTERVERB,
815 REST_NORECENTDOCSNETHOOD,
816 REST_DISALLOWRUN,
817 REST_NOWELCOMESCREEN,
818 REST_RESTRICTCPL, /* 0x40000040 */
819 REST_DISALLOWCPL,
820 REST_NOSMBALLOONTIP,
821 REST_NOSMHELP,
822 REST_NOWINKEYS,
823 REST_NOENCRYPTONMOVE,
824 REST_NOLOCALMACHINERUN,
825 REST_NOCURRENTUSERRUN,
826 REST_NOLOCALMACHINERUNONCE,
827 REST_NOCURRENTUSERRUNONCE,
828 REST_FORCEACTIVEDESKTOPON,
829 REST_NOCOMPUTERSNEARME,
830 REST_NOVIEWONDRIVE,
831 REST_NONETCRAWL,
832 REST_NOSHAREDDOCUMENTS,
833 REST_NOSMMYDOCS,
834 REST_NOSMMYPICS, /* 0x40000050 */
835 REST_ALLOWBITBUCKDRIVES,
836 REST_NONLEGACYSHELLMODE,
837 REST_NOCONTROLPANELBARRICADE,
838 REST_NOSTARTPAGE,
839 REST_NOAUTOTRAYNOTIFY,
840 REST_NOTASKGROUPING,
841 REST_NOCDBURNING,
842 REST_MYCOMPNOPROP,
843 REST_MYDOCSNOPROP,
844 REST_NOSTARTPANEL,
845 REST_NODISPLAYAPPEARANCEPAGE,
846 REST_NOTHEMESTAB,
847 REST_NOVISUALSTYLECHOICE,
848 REST_NOSIZECHOICE,
849 REST_NOCOLORCHOICE,
850 REST_SETVISUALSTYLE, /* 0x40000060 */
851 REST_STARTRUNNOHOMEPATH,
852 REST_NOUSERNAMEINSTARTPANEL,
853 REST_NOMYCOMPUTERICON,
854 REST_NOSMNETWORKPLACES,
855 REST_NOSMPINNEDLIST,
856 REST_NOSMMYMUSIC,
857 REST_NOSMEJECTPC,
858 REST_NOSMMOREPROGRAMS,
859 REST_NOSMMFUPROGRAMS,
860 REST_NOTRAYITEMSDISPLAY,
861 REST_NOTOOLBARSONTASKBAR,
862 /* 0x4000006C
863 0x4000006D
864 0x4000006E */
865 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
866 REST_HIDECLOCK, /* 0x40000070 */
867 REST_NOLOWDISKSPACECHECKS,
868 REST_NOENTIRENETWORK,
869 REST_NODESKTOPCLEANUP,
870 REST_BITBUCKNUKEONDELETE,
871 REST_BITBUCKCONFIRMDELETE,
872 REST_BITBUCKNOPROP,
873 REST_NODISPBACKGROUND,
874 REST_NODISPSCREENSAVEPG,
875 REST_NODISPSETTINGSPG,
876 REST_NODISPSCREENSAVEPREVIEW,
877 REST_NODISPLAYCPL,
878 REST_HIDERUNASVERB,
879 REST_NOTHUMBNAILCACHE,
880 REST_NOSTRCMPLOGICAL,
881 REST_NOPUBLISHWIZARD,
882 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
883 REST_NOWEBSERVICES,
884 REST_ALLOWUNHASHEDWEBVIEW,
885 REST_ALLOWLEGACYWEBVIEW,
886 REST_REVERTWEBVIEWSECURITY,
888 REST_INHERITCONSOLEHANDLES = 0x40000086,
890 REST_NODISCONNECT = 0x41000001,
891 REST_NOSECURITY,
892 REST_NOFILEASSOCIATE, /* 0x41000003 */
893 } RESTRICTIONS;
895 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
897 /****************************************************************************
898 * SHChangeNotify API
900 typedef struct _SHChangeNotifyEntry
902 LPCITEMIDLIST pidl;
903 BOOL fRecursive;
904 } SHChangeNotifyEntry;
906 #define SHCNE_RENAMEITEM 0x00000001
907 #define SHCNE_CREATE 0x00000002
908 #define SHCNE_DELETE 0x00000004
909 #define SHCNE_MKDIR 0x00000008
910 #define SHCNE_RMDIR 0x00000010
911 #define SHCNE_MEDIAINSERTED 0x00000020
912 #define SHCNE_MEDIAREMOVED 0x00000040
913 #define SHCNE_DRIVEREMOVED 0x00000080
914 #define SHCNE_DRIVEADD 0x00000100
915 #define SHCNE_NETSHARE 0x00000200
916 #define SHCNE_NETUNSHARE 0x00000400
917 #define SHCNE_ATTRIBUTES 0x00000800
918 #define SHCNE_UPDATEDIR 0x00001000
919 #define SHCNE_UPDATEITEM 0x00002000
920 #define SHCNE_SERVERDISCONNECT 0x00004000
921 #define SHCNE_UPDATEIMAGE 0x00008000
922 #define SHCNE_DRIVEADDGUI 0x00010000
923 #define SHCNE_RENAMEFOLDER 0x00020000
924 #define SHCNE_FREESPACE 0x00040000
926 #define SHCNE_EXTENDED_EVENT 0x04000000
927 #define SHCNE_ASSOCCHANGED 0x08000000
928 #define SHCNE_DISKEVENTS 0x0002381F
929 #define SHCNE_GLOBALEVENTS 0x0C0581E0
930 #define SHCNE_ALLEVENTS 0x7FFFFFFF
931 #define SHCNE_INTERRUPT 0x80000000
933 #define SHCNEE_ORDERCHANGED 0x0002L
934 #define SHCNEE_MSI_CHANGE 0x0004L
935 #define SHCNEE_MSI_UNINSTALL 0x0005L
937 #define SHCNF_IDLIST 0x0000
938 #define SHCNF_PATHA 0x0001
939 #define SHCNF_PRINTERA 0x0002
940 #define SHCNF_DWORD 0x0003
941 #define SHCNF_PATHW 0x0005
942 #define SHCNF_PRINTERW 0x0006
943 #define SHCNF_TYPE 0x00FF
944 #define SHCNF_FLUSH 0x1000
945 #define SHCNF_FLUSHNOWAIT 0x2000
947 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
948 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
950 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
952 typedef enum {
953 SLDF_HAS_ID_LIST = 0x00000001,
954 SLDF_HAS_LINK_INFO = 0x00000002,
955 SLDF_HAS_NAME = 0x00000004,
956 SLDF_HAS_RELPATH = 0x00000008,
957 SLDF_HAS_WORKINGDIR = 0x00000010,
958 SLDF_HAS_ARGS = 0x00000020,
959 SLDF_HAS_ICONLOCATION = 0x00000040,
960 SLDF_UNICODE = 0x00000080,
961 SLDF_FORCE_NO_LINKINFO = 0x00000100,
962 SLDF_HAS_EXP_SZ = 0x00000200,
963 SLDF_RUN_IN_SEPARATE = 0x00000400,
964 SLDF_HAS_LOGO3ID = 0x00000800,
965 SLDF_HAS_DARWINID = 0x00001000,
966 SLDF_RUNAS_USER = 0x00002000,
967 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
968 SLDF_NO_PIDL_ALIAS = 0x00008000,
969 SLDF_FORCE_UNCNAME = 0x00010000,
970 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
971 SLDF_RESERVED = 0x80000000,
972 } SHELL_LINK_DATA_FLAGS;
974 typedef struct tagDATABLOCKHEADER
976 DWORD cbSize;
977 DWORD dwSignature;
978 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
980 typedef struct {
981 DATABLOCK_HEADER dbh;
982 CHAR szDarwinID[MAX_PATH];
983 WCHAR szwDarwinID[MAX_PATH];
984 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
986 typedef struct {
987 DWORD cbSize;
988 DWORD cbSignature;
989 CHAR szTarget[MAX_PATH];
990 WCHAR szwTarget[MAX_PATH];
991 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
993 typedef struct {
994 DWORD cbSize;
995 DWORD dwSignature;
996 DWORD idSpecialFolder;
997 DWORD cbOffset;
998 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
1000 #define EXP_SZ_LINK_SIG 0xa0000001
1001 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1002 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1003 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1004 #define EXP_DARWIN_ID_SIG 0xa0000006
1005 #define EXP_LOGO3_ID_SIG 0xa0000007
1006 #define EXP_SZ_ICON_SIG 0xa0000007
1008 typedef struct _SHChangeDWORDAsIDList {
1009 USHORT cb;
1010 DWORD dwItem1;
1011 DWORD dwItem2;
1012 USHORT cbZero;
1013 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
1015 typedef struct _SHChangeProductKeyAsIDList {
1016 USHORT cb;
1017 WCHAR wszProductKey[39];
1018 USHORT cbZero;
1019 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
1021 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
1022 int cEntries, SHChangeNotifyEntry *pshcne);
1023 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
1024 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
1025 LPITEMIDLIST **pppidl, LONG *plEvent);
1026 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
1028 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
1030 /****************************************************************************
1031 * SHCreateDirectory API
1033 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
1034 int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
1035 int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
1037 /****************************************************************************
1038 * SHGetSpecialFolderLocation API
1040 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
1041 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
1043 /****************************************************************************
1044 * SHGetFolderPath API
1046 typedef enum {
1047 SHGFP_TYPE_CURRENT = 0,
1048 SHGFP_TYPE_DEFAULT = 1
1049 } SHGFP_TYPE;
1051 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
1052 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
1053 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1055 #define CSIDL_DESKTOP 0x0000
1056 #define CSIDL_INTERNET 0x0001
1057 #define CSIDL_PROGRAMS 0x0002
1058 #define CSIDL_CONTROLS 0x0003
1059 #define CSIDL_PRINTERS 0x0004
1060 #define CSIDL_PERSONAL 0x0005
1061 #define CSIDL_FAVORITES 0x0006
1062 #define CSIDL_STARTUP 0x0007
1063 #define CSIDL_RECENT 0x0008
1064 #define CSIDL_SENDTO 0x0009
1065 #define CSIDL_BITBUCKET 0x000a
1066 #define CSIDL_STARTMENU 0x000b
1067 #define CSIDL_MYDOCUMENTS 0x000c
1068 #define CSIDL_MYMUSIC 0x000d
1069 #define CSIDL_MYVIDEO 0x000e
1070 #define CSIDL_DESKTOPDIRECTORY 0x0010
1071 #define CSIDL_DRIVES 0x0011
1072 #define CSIDL_NETWORK 0x0012
1073 #define CSIDL_NETHOOD 0x0013
1074 #define CSIDL_FONTS 0x0014
1075 #define CSIDL_TEMPLATES 0x0015
1076 #define CSIDL_COMMON_STARTMENU 0x0016
1077 #define CSIDL_COMMON_PROGRAMS 0X0017
1078 #define CSIDL_COMMON_STARTUP 0x0018
1079 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1080 #define CSIDL_APPDATA 0x001a
1081 #define CSIDL_PRINTHOOD 0x001b
1082 #define CSIDL_LOCAL_APPDATA 0x001c
1083 #define CSIDL_ALTSTARTUP 0x001d
1084 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1085 #define CSIDL_COMMON_FAVORITES 0x001f
1086 #define CSIDL_INTERNET_CACHE 0x0020
1087 #define CSIDL_COOKIES 0x0021
1088 #define CSIDL_HISTORY 0x0022
1089 #define CSIDL_COMMON_APPDATA 0x0023
1090 #define CSIDL_WINDOWS 0x0024
1091 #define CSIDL_SYSTEM 0x0025
1092 #define CSIDL_PROGRAM_FILES 0x0026
1093 #define CSIDL_MYPICTURES 0x0027
1094 #define CSIDL_PROFILE 0x0028
1095 #define CSIDL_SYSTEMX86 0x0029
1096 #define CSIDL_PROGRAM_FILESX86 0x002a
1097 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1098 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1099 #define CSIDL_COMMON_TEMPLATES 0x002d
1100 #define CSIDL_COMMON_DOCUMENTS 0x002e
1101 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1102 #define CSIDL_ADMINTOOLS 0x0030
1103 #define CSIDL_CONNECTIONS 0x0031
1104 #define CSIDL_COMMON_MUSIC 0x0035
1105 #define CSIDL_COMMON_PICTURES 0x0036
1106 #define CSIDL_COMMON_VIDEO 0x0037
1107 #define CSIDL_RESOURCES 0x0038
1108 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1109 #define CSIDL_COMMON_OEM_LINKS 0x003a
1110 #define CSIDL_CDBURN_AREA 0x003b
1111 #define CSIDL_COMPUTERSNEARME 0x003d
1112 #define CSIDL_PROFILES 0x003e
1113 #define CSIDL_FOLDER_MASK 0x00ff
1114 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1115 #define CSIDL_FLAG_NO_ALIAS 0x1000
1116 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1117 #define CSIDL_FLAG_CREATE 0x8000
1119 #define CSIDL_FLAG_MASK 0xff00
1121 /****************************************************************************
1122 * SHGetDesktopFolder API
1124 HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
1126 /****************************************************************************
1127 * SHBindToParent API
1129 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1131 /****************************************************************************
1132 * SHDefExtractIcon API
1134 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
1135 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1136 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
1137 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1138 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1141 * DROPFILES for CF_HDROP and CF_PRINTERS
1143 typedef struct _DROPFILES
1145 DWORD pFiles;
1146 POINT pt;
1147 BOOL fNC;
1148 BOOL fWide;
1149 } DROPFILES, *LPDROPFILES;
1152 * Properties of a file in the clipboard
1154 typedef struct _FILEDESCRIPTORA {
1155 DWORD dwFlags;
1156 CLSID clsid;
1157 SIZEL sizel;
1158 POINTL pointl;
1159 DWORD dwFileAttributes;
1160 FILETIME ftCreationTime;
1161 FILETIME ftLastAccessTime;
1162 FILETIME ftLastWriteTime;
1163 DWORD nFileSizeHigh;
1164 DWORD nFileSizeLow;
1165 CHAR cFileName[MAX_PATH];
1166 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1168 typedef struct _FILEDESCRIPTORW {
1169 DWORD dwFlags;
1170 CLSID clsid;
1171 SIZEL sizel;
1172 POINTL pointl;
1173 DWORD dwFileAttributes;
1174 FILETIME ftCreationTime;
1175 FILETIME ftLastAccessTime;
1176 FILETIME ftLastWriteTime;
1177 DWORD nFileSizeHigh;
1178 DWORD nFileSizeLow;
1179 WCHAR cFileName[MAX_PATH];
1180 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
1182 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
1183 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
1186 * CF_FILEGROUPDESCRIPTOR clipboard format
1188 typedef struct _FILEGROUPDESCRIPTORA {
1189 UINT cItems;
1190 FILEDESCRIPTORA fgd[1];
1191 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1193 typedef struct _FILEGROUPDESCRIPTORW {
1194 UINT cItems;
1195 FILEDESCRIPTORW fgd[1];
1196 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1198 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1199 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1201 /****************************************************************************
1202 * Cabinet functions
1205 typedef struct {
1206 WORD cLength;
1207 WORD nVersion;
1208 BOOL fFullPathTitle:1;
1209 BOOL fSaveLocalView:1;
1210 BOOL fNotShell:1;
1211 BOOL fSimpleDefault:1;
1212 BOOL fDontShowDescBar:1;
1213 BOOL fNewWindowMode:1;
1214 BOOL fShowCompColor:1;
1215 BOOL fDontPrettyNames:1;
1216 BOOL fAdminsCreateCommonGroups:1;
1217 UINT fUnusedFlags:7;
1218 UINT :15; /* Required for proper binary layout with gcc */
1219 UINT fMenuEnumFilter;
1220 } CABINETSTATE, *LPCABINETSTATE;
1222 #define CABINETSTATE_VERSION 2
1224 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1225 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1227 /****************************************************************************
1228 * Path Manipulation Routines
1230 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1231 LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
1233 /****************************************************************************
1234 * Drag And Drop Routines
1237 /* DAD_AutoScroll sample structure */
1238 #define NUM_POINTS 3
1239 typedef struct
1241 int iNextSample;
1242 DWORD dwLastScroll;
1243 BOOL bFull;
1244 POINT pts[NUM_POINTS];
1245 DWORD dwTimes[NUM_POINTS];
1246 } AUTO_SCROLL_DATA;
1248 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1249 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1250 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1251 BOOL WINAPI DAD_DragMove(POINT);
1252 BOOL WINAPI DAD_DragLeave(void);
1253 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1254 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1256 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1257 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1258 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1259 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1260 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1261 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1262 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1263 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1264 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1265 void WINAPI ILFree(LPITEMIDLIST);
1266 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1267 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1268 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1269 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1270 HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1271 BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1272 HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1275 #include <poppack.h>
1277 #ifdef __cplusplus
1278 } /* extern "C" */
1279 #endif /* defined(__cplusplus) */
1281 #endif /* __WINE_SHLOBJ_H */