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
29 #endif /* defined(__cplusplus) */
31 /* Except for specific structs, this header is byte packed */
39 DECLARE_HANDLE(HPSXA);
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 BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
56 BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
57 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
58 INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST);
59 HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
60 HRESULT WINAPI SHLoadOLE(LPARAM);
61 UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM);
62 LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
63 int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
64 HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
65 VOID WINAPI SHUpdateImageA(LPCSTR,INT,UINT,INT);
66 VOID WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
67 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
68 int WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
69 int WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
71 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formatable */
72 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was canceled */
73 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formatable */
75 /* SHFormatDrive flags */
76 #define SHFMT_ID_DEFAULT 0xFFFF
77 #define SHFMT_OPT_FULL 1
78 #define SHFMT_OPT_SYSONLY 2
80 /* SHObjectProperties flags */
81 #define SHOP_PRINTERNAME 0x01
82 #define SHOP_FILEPATH 0x02
83 #define SHOP_VOLUMEGUID 0x04
85 BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
87 #define PCS_FATAL 0x80000000
88 #define PCS_REPLACEDCHAR 0x00000001
89 #define PCS_REMOVEDCHAR 0x00000002
90 #define PCS_TRUNCATED 0x00000004
91 #define PCS_PATHTOOLONG 0x00000008
93 int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
95 /*****************************************************************************
96 * IContextMenu interface
100 /* DATAOBJECT_InitShellIDList*/
101 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
108 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
109 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
111 /* DATAOBJECT_InitFileGroupDesc */
112 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
114 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
116 /* DATAOBJECT_InitFileContents*/
117 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
119 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
120 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
121 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
122 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
123 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
124 #define CFSTR_SHELLURL "UniformResourceLocator"
125 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
126 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
127 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
128 #define CFSTR_INDRAGLOOP "InShellDragLoop"
130 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
131 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
134 /************************************************************************
135 * IShellView interface
138 typedef GUID SHELLVIEWID;
139 #define SV_CLASS_NAME ("SHELLDLL_DefView")
141 #define FCIDM_SHVIEWFIRST 0x0000
143 #define FCIDM_SHVIEW_ARRANGE 0x7001
144 #define FCIDM_SHVIEW_DELETE 0x7011
145 #define FCIDM_SHVIEW_PROPERTIES 0x7013
146 #define FCIDM_SHVIEW_CUT 0x7018
147 #define FCIDM_SHVIEW_COPY 0x7019
148 #define FCIDM_SHVIEW_INSERT 0x701A
149 #define FCIDM_SHVIEW_UNDO 0x701B
150 #define FCIDM_SHVIEW_INSERTLINK 0x701C
151 #define FCIDM_SHVIEW_SELECTALL 0x7021
152 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
154 #define FCIDM_SHVIEW_BIGICON 0x7029
155 #define FCIDM_SHVIEW_SMALLICON 0x702A
156 #define FCIDM_SHVIEW_LISTVIEW 0x702B
157 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
158 /* 0x7030-0x703f are used by the shellbrowser */
159 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
160 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
162 #define FCIDM_SHVIEW_HELP 0x7041
163 #define FCIDM_SHVIEW_RENAME 0x7050
164 #define FCIDM_SHVIEW_CREATELINK 0x7051
165 #define FCIDM_SHVIEW_NEWLINK 0x7052
166 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
168 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
169 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
170 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
172 #define FCIDM_SHVIEWLAST 0x7fff
173 #define FCIDM_BROWSERFIRST 0xA000
174 /* undocumented toolbar items from stddlg's*/
175 #define FCIDM_TB_UPFOLDER 0xA001
176 #define FCIDM_TB_NEWFOLDER 0xA002
177 #define FCIDM_TB_SMALLICON 0xA003
178 #define FCIDM_TB_REPORTVIEW 0xA004
179 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
181 #define FCIDM_BROWSERLAST 0xbf00
182 #define FCIDM_GLOBALFIRST 0x8000
183 #define FCIDM_GLOBALLAST 0x9fff
186 * Global submenu IDs and separator IDs
188 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
189 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
190 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
191 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
192 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
193 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
194 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
195 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
196 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
197 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
199 /* control IDs known to the view */
200 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
201 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
204 /****************************************************************************
205 * IShellIcon interface
208 #define INTERFACE IShellIcon
209 DECLARE_INTERFACE_(IShellIcon,IUnknown)
211 /*** IUnknown methods ***/
212 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
213 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
214 STDMETHOD_(ULONG,Release)(THIS) PURE;
215 /*** IShellIcon methods ***/
216 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
220 #if !defined(__cplusplus) || defined(CINTERFACE)
221 /*** IUnknown methods ***/
222 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
223 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
224 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
225 /*** IShellIcon methods ***/
226 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
229 typedef IShellIcon *LPSHELLICON;
231 /* IQueryInfo interface */
232 #define INTERFACE IQueryInfo
233 DECLARE_INTERFACE_(IQueryInfo,IUnknown)
235 /*** IUnknown methods ***/
236 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
237 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
238 STDMETHOD_(ULONG,Release)(THIS) PURE;
239 /*** IQueryInfo methods ***/
240 STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, WCHAR** lppTips) PURE;
241 STDMETHOD(GetInfoFlags)(THIS_ DWORD* lpFlags) PURE;
245 #if !defined(__cplusplus) || defined(CINTERFACE)
246 /*** IUnknown methods ***/
247 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
248 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
249 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
250 /*** IQueryInfo methods ***/
251 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
252 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
255 /* IInputObject interface */
256 #define INTERFACE IInputObject
257 DECLARE_INTERFACE_(IInputObject,IUnknown)
259 /*** IUnknown methods ***/
260 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
261 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
262 STDMETHOD_(ULONG,Release)(THIS) PURE;
263 /*** IInputObject methods ***/
264 STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
265 STDMETHOD(HasFocusIO)(THIS) PURE;
266 STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
270 #if !defined(__cplusplus) || defined(CINTERFACE)
271 /*** IUnknown methods ***/
272 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
273 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
274 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
275 /*** IInputObject methods ***/
276 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
277 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
278 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
281 /* IInputObjectSite interface */
282 #define INTERFACE IInputObjectSite
283 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
285 /*** IUnknown methods ***/
286 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
287 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
288 STDMETHOD_(ULONG,Release) (THIS) PURE;
289 /*** IInputObjectSite methods ***/
290 STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
294 #if !defined(__cplusplus) || defined(CINTERFACE)
295 /*** IUnknown methods ***/
296 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
297 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
298 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
299 /*** IInputObject methods ***/
300 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
303 /****************************************************************************
304 * SHAddToRecentDocs API
306 #define SHARD_PIDL 0x00000001L
307 #define SHARD_PATHA 0x00000002L
308 #define SHARD_PATHW 0x00000003L
309 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
311 void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
313 /****************************************************************************
314 * SHBrowseForFolder API
316 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
318 #include <pshpack8.h>
320 typedef struct tagBROWSEINFOA {
322 LPCITEMIDLIST pidlRoot;
323 LPSTR pszDisplayName;
329 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
331 typedef struct tagBROWSEINFOW {
333 LPCITEMIDLIST pidlRoot;
334 LPWSTR pszDisplayName;
340 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
342 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
343 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
344 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
348 /* Browsing for directory. */
349 #define BIF_RETURNONLYFSDIRS 0x0001
350 #define BIF_DONTGOBELOWDOMAIN 0x0002
351 #define BIF_STATUSTEXT 0x0004
352 #define BIF_RETURNFSANCESTORS 0x0008
353 #define BIF_EDITBOX 0x0010
354 #define BIF_VALIDATE 0x0020
355 #define BIF_NEWDIALOGSTYLE 0x0040
357 #define BIF_BROWSEFORCOMPUTER 0x1000
358 #define BIF_BROWSEFORPRINTER 0x2000
359 #define BIF_BROWSEINCLUDEFILES 0x4000
361 /* message from browser */
362 #define BFFM_INITIALIZED 1
363 #define BFFM_SELCHANGED 2
364 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
365 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
367 /* messages to browser */
368 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
369 #define BFFM_ENABLEOK (WM_USER+101)
370 #define BFFM_SETSELECTIONA (WM_USER+102)
371 #define BFFM_SETSELECTIONW (WM_USER+103)
372 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
373 #define BFFM_SETOKTEXT (WM_USER+105)
374 #define BFFM_SETEXPANDED (WM_USER+106)
376 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
377 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
378 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
379 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
380 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
381 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
383 /**********************************************************************
384 * SHCreateShellFolderViewEx API
387 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
399 IShellView* psvOuter;
402 LPFNVIEWCALLBACK pfnCallback;
406 HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
408 /* SHCreateShellFolderViewEx callback messages */
409 #define SFVM_MERGEMENU 1
410 #define SFVM_INVOKECOMMAND 2
411 #define SFVM_GETHELPTEXT 3
412 #define SFVM_GETTOOLTIPTEXT 4
413 #define SFVM_GETBUTTONINFO 5
414 #define SFVM_GETBUTTONS 6
415 #define SFVM_INITMENUPOPUP 7
416 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
417 #define SFVM_DRAWMENUITEM 9 /* undocumented */
418 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
419 #define SFVM_EXITMENULOOP 11 /* undocumented */
420 #define SFVM_VIEWRELEASE 12 /* undocumented */
421 #define SFVM_GETNAMELENGTH 13 /* undocumented */
422 #define SFVM_FSNOTIFY 14
423 #define SFVM_WINDOWCREATED 15
424 #define SFVM_WINDOWCLOSING 16 /* undocumented */
425 #define SFVM_LISTREFRESHED 17 /* undocumented */
426 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
427 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
428 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
429 #define SFVM_GETDETAILSOF 23
430 #define SFVM_COLUMNCLICK 24
431 #define SFVM_QUERYFSNOTIFY 25
432 #define SFVM_DEFITEMCOUNT 26
433 #define SFVM_DEFVIEWMODE 27
434 #define SFVM_UNMERGEFROMMENU 28
435 #define SFVM_ADDINGOBJECT 29 /* undocumented */
436 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
437 #define SFVM_UPDATESTATUSBAR 31
438 #define SFVM_BACKGROUNDENUM 32
439 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
440 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
441 #define SFVM_CANSELECTALL 35 /* undocumented */
442 #define SFVM_DIDDRAGDROP 36
443 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
444 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
445 #define SFVM_SETISFV 39
446 #define SFVM_GETEXTVIEWS 40 /* undocumented */
447 #define SFVM_THISIDLIST 41
448 #define SFVM_ADDPROPERTYPAGES 47
449 #define SFVM_BACKGROUNDENUMDONE 48
450 #define SFVM_GETNOTIFY 49
451 #define SFVM_GETSORTDEFAULTS 53
453 #define SFVM_GETZONE 58
454 #define SFVM_GETPANE 59
455 #define SFVM_GETHELPTOPIC 63
456 #define SFVM_GETANIMATION 68
457 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
458 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
459 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
460 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
461 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
462 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
463 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
464 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
466 /* Types and definitions for the SFM_* parameters */
467 #include <pshpack8.h>
469 #define QCMINFO_PLACE_BEFORE 0
470 #define QCMINFO_PLACE_AFTER 1
471 typedef struct _QCMINFO_IDMAP_PLACEMENT
475 } QCMINFO_IDMAP_PLACEMENT;
477 typedef struct _QCMINFO_IDMAP
480 QCMINFO_IDMAP_PLACEMENT pIdList[1];
483 typedef struct _QCMINFO
489 QCMINFO_IDMAP const* pIdMap;
490 } QCMINFO, *LPQCMINFO;
492 #define TBIF_DEFAULT 0x00000000
493 #define TBIF_APPEND 0x00000000
494 #define TBIF_PREPEND 0x00000001
495 #define TBIF_REPLACE 0x00000002
496 #define TBIF_INTERNETBAR 0x00010000
497 #define TBIF_STANDARDTOOLBAR 0x00020000
498 #define TBIF_NOTOOLBAR 0x00030000
500 typedef struct _TBINFO
508 /****************************************************************************
509 * SHShellFolderView_Message API
512 LRESULT WINAPI SHShellFolderView_Message(
517 /* SHShellFolderView_Message messages */
518 #define SFVM_REARRANGE 0x0001
519 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
520 #define SFVM_ADDOBJECT 0x0003
521 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
522 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
523 #define SFVM_REMOVEOBJECT 0x0006
524 #define SFVM_UPDATEOBJECT 0x0007
525 #define SFVM_SETREDRAW 0x0008 /* undocumented */
526 #define SFVM_GETSELECTEDOBJECTS 0x0009
527 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
528 #define SFVM_MOVEICONS 0x000B /* undocumented */
529 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
530 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
531 #define SFVM_SETITEMPOS 0x000E
532 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
533 #define SFVM_SETCLIPBOARD 0x0010
534 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
535 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
536 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
537 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
538 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
539 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
540 #define SFVM_SETPOINTS 0x0017
542 /****************************************************************************
543 * SHGetDataFromIDList API
545 #define SHGDFIL_FINDDATA 1
546 #define SHGDFIL_NETRESOURCE 2
547 #define SHGDFIL_DESCRIPTIONID 3
549 #define SHDID_ROOT_REGITEM 1
550 #define SHDID_FS_FILE 2
551 #define SHDID_FS_DIRECTORY 3
552 #define SHDID_FS_OTHER 4
553 #define SHDID_COMPUTER_DRIVE35 5
554 #define SHDID_COMPUTER_DRIVE525 6
555 #define SHDID_COMPUTER_REMOVABLE 7
556 #define SHDID_COMPUTER_FIXED 8
557 #define SHDID_COMPUTER_NETDRIVE 9
558 #define SHDID_COMPUTER_CDROM 10
559 #define SHDID_COMPUTER_RAMDISK 11
560 #define SHDID_COMPUTER_OTHER 12
561 #define SHDID_NET_DOMAIN 13
562 #define SHDID_NET_SERVER 14
563 #define SHDID_NET_SHARE 15
564 #define SHDID_NET_RESTOFNET 16
565 #define SHDID_NET_OTHER 17
566 #define SHDID_COMPUTER_IMAGING 18
567 #define SHDID_COMPUTER_AUDIO 19
568 #define SHDID_COMPUTER_SHAREDDOCS 20
570 #include <pshpack8.h>
572 typedef struct _SHDESCRIPTIONID
573 { DWORD dwDescriptionId;
575 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
579 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
580 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
581 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
583 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
584 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
585 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
587 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
589 /**********************************************************************
590 * SHGetSetSettings ()
595 BOOL fShowAllObjects : 1;
596 BOOL fShowExtensions : 1;
597 BOOL fNoConfirmRecycle : 1;
599 BOOL fShowSysFiles : 1;
600 BOOL fShowCompColor : 1;
601 BOOL fDoubleClickInWebView : 1;
602 BOOL fDesktopHTML : 1;
603 BOOL fWin95Classic : 1;
604 BOOL fDontPrettyPath : 1;
605 BOOL fShowAttribCol : 1;
606 BOOL fMapNetDrvBtn : 1;
607 BOOL fShowInfoTip : 1;
611 BOOL fShowSuperHidden : 1;
612 BOOL fNoNetCrawling : 1;
614 UINT :15; /* Required for proper binary layout with gcc */
622 BOOL fStartPanelOn: 1;
623 BOOL fShowStartPage: 1;
624 UINT fSpareFlags : 13;
625 UINT :15; /* Required for proper binary layout with gcc */
626 } SHELLSTATE, *LPSHELLSTATE;
628 /**********************************************************************
632 { BOOL fShowAllObjects : 1;
633 BOOL fShowExtensions : 1;
634 BOOL fNoConfirmRecycle : 1;
635 BOOL fShowSysFiles : 1;
637 BOOL fShowCompColor : 1;
638 BOOL fDoubleClickInWebView : 1;
639 BOOL fDesktopHTML : 1;
640 BOOL fWin95Classic : 1;
642 BOOL fDontPrettyPath : 1;
643 BOOL fShowAttribCol : 1;
644 BOOL fMapNetDrvBtn : 1;
645 BOOL fShowInfoTip : 1;
649 UINT :15; /* Required for proper binary layout with gcc */
650 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
652 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
654 #define SSF_SHOWALLOBJECTS 0x0001
655 #define SSF_SHOWEXTENSIONS 0x0002
656 #define SSF_SHOWCOMPCOLOR 0x0008
657 #define SSF_SHOWSYSFILES 0x0020
658 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
659 #define SSF_SHOWATTRIBCOL 0x0100
660 #define SSF_DESKTOPHTML 0x0200
661 #define SSF_WIN95CLASSIC 0x0400
662 #define SSF_DONTPRETTYPATH 0x0800
663 #define SSF_SHOWINFOTIP 0x2000
664 #define SSF_MAPNETDRVBUTTON 0x1000
665 #define SSF_NOCONFIRMRECYCLE 0x8000
666 #define SSF_HIDEICONS 0x4000
668 /****************************************************************************
671 typedef enum RESTRICTIONS
673 REST_NONE = 0x00000000,
674 REST_NORUN = 0x00000001,
675 REST_NOCLOSE = 0x00000002,
676 REST_NOSAVESET = 0x00000004,
677 REST_NOFILEMENU = 0x00000008,
678 REST_NOSETFOLDERS = 0x00000010,
679 REST_NOSETTASKBAR = 0x00000020,
680 REST_NODESKTOP = 0x00000040,
681 REST_NOFIND = 0x00000080,
682 REST_NODRIVES = 0x00000100,
683 REST_NODRIVEAUTORUN = 0x00000200,
684 REST_NODRIVETYPEAUTORUN = 0x00000400,
685 REST_NONETHOOD = 0x00000800,
686 REST_STARTBANNER = 0x00001000,
687 REST_RESTRICTRUN = 0x00002000,
688 REST_NOPRINTERTABS = 0x00004000,
689 REST_NOPRINTERDELETE = 0x00008000,
690 REST_NOPRINTERADD = 0x00010000,
691 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
692 REST_MYDOCSONNET = 0x00040000,
693 REST_NOEXITTODOS = 0x00080000,
694 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
695 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
696 REST_NOCOMMONGROUPS = 0x00400000,
697 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
698 REST_NOWEB = 0x01000000,
699 REST_NOTRAYCONTEXTMENU = 0x02000000,
700 REST_NOVIEWCONTEXTMENU = 0x04000000,
701 REST_NONETCONNECTDISCONNECT = 0x08000000,
702 REST_STARTMENULOGOFF = 0x10000000,
703 REST_NOSETTINGSASSIST = 0x20000000,
704 REST_NOINTERNETICON = 0x40000001,
705 REST_NORECENTDOCSHISTORY,
706 REST_NORECENTDOCSMENU,
707 REST_NOACTIVEDESKTOP,
708 REST_NOACTIVEDESKTOPCHANGES,
709 REST_NOFAVORITESMENU,
710 REST_CLEARRECENTDOCSONEXIT,
712 REST_NOCUSTOMIZEWEBVIEW,
714 REST_NOHTMLWALLPAPER = 0x40000010,
715 REST_NOCHANGINGWALLPAPER,
719 REST_NOCLOSEDESKCOMP,
720 REST_NOCLOSE_DRAGDROPBAND,
723 REST_NORESOLVESEARCH,
725 REST_FORCECOPYACLWITHFILE,
726 REST_NOLOGO3CHANNELNOTIFY,
727 REST_NOFORGETSOFTWAREUPDATE,
728 REST_NOSETACTIVEDESKTOP,
729 REST_NOUPDATEWINDOWS,
730 REST_NOCHANGESTARMENU, /* 0x40000020 */
731 REST_NOFOLDEROPTIONS,
732 REST_HASFINDCOMPUTERS,
734 REST_RUNDLGMEMCHECKBOX,
735 REST_ARP_ShowPostSetup,
740 REST_ARP_NOREMOVEPAGE,
742 REST_ARP_NOWINSETUPPAGE,
744 REST_NOCHANGEMAPPEDDRIVELABEL,
745 REST_NOCHANGEMAPPEDDRIVECOMMENT,
746 REST_MaxRecentDocs, /* 0x40000030 */
747 REST_NONETWORKCONNECTIONS,
748 REST_FORCESTARTMENULOGOFF,
750 REST_NOCUSTOMIZETHISFOLDER,
753 REST_ALLOWFRENCHENCRYPTION, /* not documented */
755 REST_DONTSHOWSUPERHIDDEN,
756 REST_NOSHELLSEARCHBUTTON,
758 REST_NORUNASINSTALLPROMPT,
759 REST_PROMPTRUNASINSTALLNETPATH,
760 REST_NOMANAGEMYCOMPUTERVERB,
761 REST_NORECENTDOCSNETHOOD,
763 REST_NOWELCOMESCREEN,
764 REST_RESTRICTCPL, /* 0x40000040 */
769 REST_NOENCRYPTONMOVE,
770 REST_NOLOCALMACHINERUN,
771 REST_NOCURRENTUSERRUN,
772 REST_NOLOCALMACHINERUNONCE,
773 REST_NOCURRENTUSERRUNONCE,
774 REST_FORCEACTIVEDESKTOPON,
775 REST_NOCOMPUTERSNEARME,
778 REST_NOSHAREDDOCUMENTS,
780 REST_NOSMMYPICS, /* 0x40000050 */
781 REST_ALLOWBITBUCKDRIVES,
782 REST_NONLEGACYSHELLMODE,
783 REST_NOCONTROLPANELBARRICADE,
785 REST_NOAUTOTRAYNOTIFY,
791 REST_NODISPLAYAPPEARANCEPAGE,
793 REST_NOVISUALSTYLECHOICE,
796 REST_SETVISUALSTYLE, /* 0x40000060 */
797 REST_STARTRUNNOHOMEPATH,
798 REST_NOUSERNAMEINSTARTPANEL,
799 REST_NOMYCOMPUTERICON,
800 REST_NOSMNETWORKPLACES,
804 REST_NOSMMOREPROGRAMS,
805 REST_NOSMMFUPROGRAMS,
806 REST_NOTRAYITEMSDISPLAY,
807 REST_NOTOOLBARSONTASKBAR,
811 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
812 REST_HIDECLOCK, /* 0x40000070 */
813 REST_NOLOWDISKSPACECHECKS,
814 REST_NOENTIRENETWORK,
815 REST_NODESKTOPCLEANUP,
816 REST_BITBUCKNUKEONDELETE,
817 REST_BITBUCKCONFIRMDELETE,
819 REST_NODISPBACKGROUND,
820 REST_NODISPSCREENSAVEPG,
821 REST_NODISPSETTINGSPG,
822 REST_NODISPSCREENSAVEPREVIEW,
825 REST_NOTHUMBNAILCACHE,
826 REST_NOSTRCMPLOGICAL,
827 REST_NOPUBLISHWIZARD,
828 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
830 REST_ALLOWUNHASHEDWEBVIEW,
831 REST_ALLOWLEGACYWEBVIEW,
832 REST_REVERTWEBVIEWSECURITY,
834 REST_INHERITCONSOLEHANDLES = 0x40000086,
836 REST_NODISCONNECT = 0x41000001,
838 REST_NOFILEASSOCIATE, /* 0x41000003 */
841 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
843 /****************************************************************************
846 typedef struct _SHChangeNotifyEntry
850 } SHChangeNotifyEntry;
852 #define SHCNE_RENAMEITEM 0x00000001
853 #define SHCNE_CREATE 0x00000002
854 #define SHCNE_DELETE 0x00000004
855 #define SHCNE_MKDIR 0x00000008
856 #define SHCNE_RMDIR 0x00000010
857 #define SHCNE_MEDIAINSERTED 0x00000020
858 #define SHCNE_MEDIAREMOVED 0x00000040
859 #define SHCNE_DRIVEREMOVED 0x00000080
860 #define SHCNE_DRIVEADD 0x00000100
861 #define SHCNE_NETSHARE 0x00000200
862 #define SHCNE_NETUNSHARE 0x00000400
863 #define SHCNE_ATTRIBUTES 0x00000800
864 #define SHCNE_UPDATEDIR 0x00001000
865 #define SHCNE_UPDATEITEM 0x00002000
866 #define SHCNE_SERVERDISCONNECT 0x00004000
867 #define SHCNE_UPDATEIMAGE 0x00008000
868 #define SHCNE_DRIVEADDGUI 0x00010000
869 #define SHCNE_RENAMEFOLDER 0x00020000
870 #define SHCNE_FREESPACE 0x00040000
872 #define SHCNE_EXTENDED_EVENT 0x04000000
873 #define SHCNE_ASSOCCHANGED 0x08000000
874 #define SHCNE_DISKEVENTS 0x0002381F
875 #define SHCNE_GLOBALEVENTS 0x0C0581E0
876 #define SHCNE_ALLEVENTS 0x7FFFFFFF
877 #define SHCNE_INTERRUPT 0x80000000
879 #define SHCNEE_ORDERCHANGED 0x0002L
880 #define SHCNEE_MSI_CHANGE 0x0004L
881 #define SHCNEE_MSI_UNINSTALL 0x0005L
883 #define SHCNF_IDLIST 0x0000
884 #define SHCNF_PATHA 0x0001
885 #define SHCNF_PRINTERA 0x0002
886 #define SHCNF_DWORD 0x0003
887 #define SHCNF_PATHW 0x0005
888 #define SHCNF_PRINTERW 0x0006
889 #define SHCNF_TYPE 0x00FF
890 #define SHCNF_FLUSH 0x1000
891 #define SHCNF_FLUSHNOWAIT 0x2000
893 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
894 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
896 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
899 SLDF_HAS_ID_LIST = 0x00000001,
900 SLDF_HAS_LINK_INFO = 0x00000002,
901 SLDF_HAS_NAME = 0x00000004,
902 SLDF_HAS_RELPATH = 0x00000008,
903 SLDF_HAS_WORKINGDIR = 0x00000010,
904 SLDF_HAS_ARGS = 0x00000020,
905 SLDF_HAS_ICONLOCATION = 0x00000040,
906 SLDF_UNICODE = 0x00000080,
907 SLDF_FORCE_NO_LINKINFO = 0x00000100,
908 SLDF_HAS_EXP_SZ = 0x00000200,
909 SLDF_RUN_IN_SEPARATE = 0x00000400,
910 SLDF_HAS_LOGO3ID = 0x00000800,
911 SLDF_HAS_DARWINID = 0x00001000,
912 SLDF_RUNAS_USER = 0x00002000,
913 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
914 SLDF_NO_PIDL_ALIAS = 0x00008000,
915 SLDF_FORCE_UNCNAME = 0x00010000,
916 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
917 SLDF_RESERVED = 0x80000000,
918 } SHELL_LINK_DATA_FLAGS;
920 typedef struct tagDATABLOCKHEADER
924 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
927 DATABLOCK_HEADER dbh;
928 CHAR szDarwinID[MAX_PATH];
929 WCHAR szwDarwinID[MAX_PATH];
930 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
935 CHAR szTarget[MAX_PATH];
936 WCHAR szwTarget[MAX_PATH];
937 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
942 DWORD idSpecialFolder;
944 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
946 #define EXP_SZ_LINK_SIG 0xa0000001
947 #define NT_CONSOLE_PROPS_SIG 0xa0000002
948 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
949 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
950 #define EXP_DARWIN_ID_SIG 0xa0000006
951 #define EXP_LOGO3_ID_SIG 0xa0000007
952 #define EXP_SZ_ICON_SIG 0xa0000007
954 typedef struct _SHChangeDWORDAsIDList {
959 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
961 typedef struct _SHChangeProductKeyAsIDList {
963 WCHAR wszProductKey[39];
965 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
967 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
968 int cEntries, SHChangeNotifyEntry *pshcne);
969 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
970 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
971 LPITEMIDLIST **pppidl, LONG *plEvent);
972 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
974 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
976 /****************************************************************************
977 * SHCreateDirectory API
979 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
980 int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
981 int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
983 /****************************************************************************
984 * SHGetSpecialFolderLocation API
986 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
987 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
989 /****************************************************************************
990 * SHGetFolderPath API
993 SHGFP_TYPE_CURRENT = 0,
994 SHGFP_TYPE_DEFAULT = 1
997 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
998 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
999 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1001 #define CSIDL_DESKTOP 0x0000
1002 #define CSIDL_INTERNET 0x0001
1003 #define CSIDL_PROGRAMS 0x0002
1004 #define CSIDL_CONTROLS 0x0003
1005 #define CSIDL_PRINTERS 0x0004
1006 #define CSIDL_PERSONAL 0x0005
1007 #define CSIDL_FAVORITES 0x0006
1008 #define CSIDL_STARTUP 0x0007
1009 #define CSIDL_RECENT 0x0008
1010 #define CSIDL_SENDTO 0x0009
1011 #define CSIDL_BITBUCKET 0x000a
1012 #define CSIDL_STARTMENU 0x000b
1013 #define CSIDL_MYDOCUMENTS 0x000c
1014 #define CSIDL_MYMUSIC 0x000d
1015 #define CSIDL_MYVIDEO 0x000e
1016 #define CSIDL_DESKTOPDIRECTORY 0x0010
1017 #define CSIDL_DRIVES 0x0011
1018 #define CSIDL_NETWORK 0x0012
1019 #define CSIDL_NETHOOD 0x0013
1020 #define CSIDL_FONTS 0x0014
1021 #define CSIDL_TEMPLATES 0x0015
1022 #define CSIDL_COMMON_STARTMENU 0x0016
1023 #define CSIDL_COMMON_PROGRAMS 0X0017
1024 #define CSIDL_COMMON_STARTUP 0x0018
1025 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1026 #define CSIDL_APPDATA 0x001a
1027 #define CSIDL_PRINTHOOD 0x001b
1028 #define CSIDL_LOCAL_APPDATA 0x001c
1029 #define CSIDL_ALTSTARTUP 0x001d
1030 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1031 #define CSIDL_COMMON_FAVORITES 0x001f
1032 #define CSIDL_INTERNET_CACHE 0x0020
1033 #define CSIDL_COOKIES 0x0021
1034 #define CSIDL_HISTORY 0x0022
1035 #define CSIDL_COMMON_APPDATA 0x0023
1036 #define CSIDL_WINDOWS 0x0024
1037 #define CSIDL_SYSTEM 0x0025
1038 #define CSIDL_PROGRAM_FILES 0x0026
1039 #define CSIDL_MYPICTURES 0x0027
1040 #define CSIDL_PROFILE 0x0028
1041 #define CSIDL_SYSTEMX86 0x0029
1042 #define CSIDL_PROGRAM_FILESX86 0x002a
1043 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1044 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1045 #define CSIDL_COMMON_TEMPLATES 0x002d
1046 #define CSIDL_COMMON_DOCUMENTS 0x002e
1047 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1048 #define CSIDL_ADMINTOOLS 0x0030
1049 #define CSIDL_CONNECTIONS 0x0031
1050 #define CSIDL_COMMON_MUSIC 0x0035
1051 #define CSIDL_COMMON_PICTURES 0x0036
1052 #define CSIDL_COMMON_VIDEO 0x0037
1053 #define CSIDL_RESOURCES 0x0038
1054 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1055 #define CSIDL_COMMON_OEM_LINKS 0x003a
1056 #define CSIDL_CDBURN_AREA 0x003b
1057 #define CSIDL_COMPUTERSNEARME 0x003d
1058 #define CSIDL_PROFILES 0x003e
1059 #define CSIDL_FOLDER_MASK 0x00ff
1060 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1061 #define CSIDL_FLAG_NO_ALIAS 0x1000
1062 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1063 #define CSIDL_FLAG_CREATE 0x8000
1065 #define CSIDL_FLAG_MASK 0xff00
1067 /****************************************************************************
1068 * SHGetDesktopFolder API
1070 HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
1072 /****************************************************************************
1073 * SHBindToParent API
1075 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1077 /****************************************************************************
1078 * SHDefExtractIcon API
1080 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
1081 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1082 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
1083 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1084 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1087 * DROPFILES for CF_HDROP and CF_PRINTERS
1089 typedef struct _DROPFILES
1095 } DROPFILES, *LPDROPFILES;
1098 * Properties of a file in the clipboard
1100 typedef struct _FILEDESCRIPTORA {
1105 DWORD dwFileAttributes;
1106 FILETIME ftCreationTime;
1107 FILETIME ftLastAccessTime;
1108 FILETIME ftLastWriteTime;
1109 DWORD nFileSizeHigh;
1111 CHAR cFileName[MAX_PATH];
1112 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1114 typedef struct _FILEDESCRIPTORW {
1119 DWORD dwFileAttributes;
1120 FILETIME ftCreationTime;
1121 FILETIME ftLastAccessTime;
1122 FILETIME ftLastWriteTime;
1123 DWORD nFileSizeHigh;
1125 WCHAR cFileName[MAX_PATH];
1126 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
1128 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
1129 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
1132 * CF_FILEGROUPDESCRIPTOR clipboard format
1134 typedef struct _FILEGROUPDESCRIPTORA {
1136 FILEDESCRIPTORA fgd[1];
1137 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1139 typedef struct _FILEGROUPDESCRIPTORW {
1141 FILEDESCRIPTORW fgd[1];
1142 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1144 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1145 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1147 /****************************************************************************
1154 BOOL fFullPathTitle:1;
1155 BOOL fSaveLocalView:1;
1157 BOOL fSimpleDefault:1;
1158 BOOL fDontShowDescBar:1;
1159 BOOL fNewWindowMode:1;
1160 BOOL fShowCompColor:1;
1161 BOOL fDontPrettyNames:1;
1162 BOOL fAdminsCreateCommonGroups:1;
1163 UINT fUnusedFlags:7;
1164 UINT :15; /* Required for proper binary layout with gcc */
1165 UINT fMenuEnumFilter;
1166 } CABINETSTATE, *LPCABINETSTATE;
1168 #define CABINETSTATE_VERSION 2
1170 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1171 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1173 /****************************************************************************
1174 * Path Manipulation Routines
1176 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1177 LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
1179 /****************************************************************************
1180 * Drag And Drop Routines
1183 /* DAD_AutoScroll sample structure */
1184 #define NUM_POINTS 3
1190 POINT pts[NUM_POINTS];
1191 DWORD dwTimes[NUM_POINTS];
1194 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1195 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1196 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1197 BOOL WINAPI DAD_DragMove(POINT);
1198 BOOL WINAPI DAD_DragLeave(void);
1199 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1200 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1202 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1203 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1204 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1205 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1206 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1207 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1208 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1209 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1210 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1211 void WINAPI ILFree(LPITEMIDLIST);
1212 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1213 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1214 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1215 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1216 HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1217 BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1218 HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1221 #include <poppack.h>
1225 #endif /* defined(__cplusplus) */
1227 #endif /* __WINE_SHLOBJ_H */