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