widl: Use the correct type offset when freeing proxy variables.
[wine/multimedia.git] / include / shlobj.h
blobd92e4cb33c92a1bf18fda544e3d900da6faaed6e
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 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 */
103 typedef struct
104 { UINT cidl;
105 UINT aoffset[1];
106 } CIDA, *LPIDA;
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
142 /* undocumented */
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;
218 #undef INTERFACE
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)
227 #endif
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;
243 #undef INTERFACE
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)
253 #endif
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;
268 #undef INTERFACE
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)
279 #endif
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;
292 #undef INTERFACE
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)
301 #endif
303 /* IObjMgr interface */
304 #define INTERFACE IObjMgr
305 DECLARE_INTERFACE_(IObjMgr,IUnknown)
307 /*** IUnknown methods ***/
308 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
309 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
310 STDMETHOD_(ULONG,Release) (THIS) PURE;
311 /*** IObjMgr methods ***/
312 STDMETHOD(Append)(THIS_ LPUNKNOWN punk) PURE;
313 STDMETHOD(Remove)(THIS_ LPUNKNOWN punk) PURE;
315 #undef INTERFACE
317 #if !defined(__cplusplus) || defined(CINTERFACE)
318 /*** IUnknown methods ***/
319 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
320 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
321 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
322 /*** IObjMgr methods ***/
323 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
324 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
325 #endif
327 /* IACList interface */
328 #define INTERFACE IACList
329 DECLARE_INTERFACE_(IACList,IUnknown)
331 /*** IUnknown methods ***/
332 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
333 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
334 STDMETHOD_(ULONG,Release) (THIS) PURE;
335 /*** IACList methods ***/
336 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
338 #undef INTERFACE
340 #if !defined(__cplusplus) || defined(CINTERFACE)
341 /*** IUnknown methods ***/
342 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
343 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
344 #define IACList_Release(p) (p)->lpVtbl->Release(p)
345 /*** IACList methods ***/
346 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
347 #endif
350 /****************************************************************************
351 * SHAddToRecentDocs API
353 #define SHARD_PIDL 0x00000001L
354 #define SHARD_PATHA 0x00000002L
355 #define SHARD_PATHW 0x00000003L
356 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
358 void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
360 /****************************************************************************
361 * SHBrowseForFolder API
363 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
365 #include <pshpack8.h>
367 typedef struct tagBROWSEINFOA {
368 HWND hwndOwner;
369 LPCITEMIDLIST pidlRoot;
370 LPSTR pszDisplayName;
371 LPCSTR lpszTitle;
372 UINT ulFlags;
373 BFFCALLBACK lpfn;
374 LPARAM lParam;
375 INT iImage;
376 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
378 typedef struct tagBROWSEINFOW {
379 HWND hwndOwner;
380 LPCITEMIDLIST pidlRoot;
381 LPWSTR pszDisplayName;
382 LPCWSTR lpszTitle;
383 UINT ulFlags;
384 BFFCALLBACK lpfn;
385 LPARAM lParam;
386 INT iImage;
387 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
389 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
390 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
391 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
393 #include <poppack.h>
395 /* Browsing for directory. */
396 #define BIF_RETURNONLYFSDIRS 0x0001
397 #define BIF_DONTGOBELOWDOMAIN 0x0002
398 #define BIF_STATUSTEXT 0x0004
399 #define BIF_RETURNFSANCESTORS 0x0008
400 #define BIF_EDITBOX 0x0010
401 #define BIF_VALIDATE 0x0020
402 #define BIF_NEWDIALOGSTYLE 0x0040
404 #define BIF_BROWSEFORCOMPUTER 0x1000
405 #define BIF_BROWSEFORPRINTER 0x2000
406 #define BIF_BROWSEINCLUDEFILES 0x4000
408 /* message from browser */
409 #define BFFM_INITIALIZED 1
410 #define BFFM_SELCHANGED 2
411 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
412 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
414 /* messages to browser */
415 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
416 #define BFFM_ENABLEOK (WM_USER+101)
417 #define BFFM_SETSELECTIONA (WM_USER+102)
418 #define BFFM_SETSELECTIONW (WM_USER+103)
419 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
420 #define BFFM_SETOKTEXT (WM_USER+105)
421 #define BFFM_SETEXPANDED (WM_USER+106)
423 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
424 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
425 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
426 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
427 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
428 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
430 /**********************************************************************
431 * SHCreateShellFolderViewEx API
434 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
435 IShellView* dwUser,
436 IShellFolder* pshf,
437 HWND hWnd,
438 UINT uMsg,
439 WPARAM wParam,
440 LPARAM lParam);
442 typedef struct _CSFV
444 UINT cbSize;
445 IShellFolder* pshf;
446 IShellView* psvOuter;
447 LPCITEMIDLIST pidl;
448 LONG lEvents;
449 LPFNVIEWCALLBACK pfnCallback;
450 FOLDERVIEWMODE fvm;
451 } CSFV, *LPCSFV;
453 HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
455 /* SHCreateShellFolderViewEx callback messages */
456 #define SFVM_MERGEMENU 1
457 #define SFVM_INVOKECOMMAND 2
458 #define SFVM_GETHELPTEXT 3
459 #define SFVM_GETTOOLTIPTEXT 4
460 #define SFVM_GETBUTTONINFO 5
461 #define SFVM_GETBUTTONS 6
462 #define SFVM_INITMENUPOPUP 7
463 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
464 #define SFVM_DRAWMENUITEM 9 /* undocumented */
465 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
466 #define SFVM_EXITMENULOOP 11 /* undocumented */
467 #define SFVM_VIEWRELEASE 12 /* undocumented */
468 #define SFVM_GETNAMELENGTH 13 /* undocumented */
469 #define SFVM_FSNOTIFY 14
470 #define SFVM_WINDOWCREATED 15
471 #define SFVM_WINDOWCLOSING 16 /* undocumented */
472 #define SFVM_LISTREFRESHED 17 /* undocumented */
473 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
474 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
475 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
476 #define SFVM_GETDETAILSOF 23
477 #define SFVM_COLUMNCLICK 24
478 #define SFVM_QUERYFSNOTIFY 25
479 #define SFVM_DEFITEMCOUNT 26
480 #define SFVM_DEFVIEWMODE 27
481 #define SFVM_UNMERGEFROMMENU 28
482 #define SFVM_ADDINGOBJECT 29 /* undocumented */
483 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
484 #define SFVM_UPDATESTATUSBAR 31
485 #define SFVM_BACKGROUNDENUM 32
486 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
487 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
488 #define SFVM_CANSELECTALL 35 /* undocumented */
489 #define SFVM_DIDDRAGDROP 36
490 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
491 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
492 #define SFVM_SETISFV 39
493 #define SFVM_GETEXTVIEWS 40 /* undocumented */
494 #define SFVM_THISIDLIST 41
495 #define SFVM_ADDPROPERTYPAGES 47
496 #define SFVM_BACKGROUNDENUMDONE 48
497 #define SFVM_GETNOTIFY 49
498 #define SFVM_GETSORTDEFAULTS 53
499 #define SFVM_SIZE 57
500 #define SFVM_GETZONE 58
501 #define SFVM_GETPANE 59
502 #define SFVM_GETHELPTOPIC 63
503 #define SFVM_GETANIMATION 68
504 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
505 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
506 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
507 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
508 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
509 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
510 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
511 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
513 /* Types and definitions for the SFM_* parameters */
514 #include <pshpack8.h>
516 #define QCMINFO_PLACE_BEFORE 0
517 #define QCMINFO_PLACE_AFTER 1
518 typedef struct _QCMINFO_IDMAP_PLACEMENT
520 UINT id;
521 UINT fFlags;
522 } QCMINFO_IDMAP_PLACEMENT;
524 typedef struct _QCMINFO_IDMAP
526 UINT nMaxIds;
527 QCMINFO_IDMAP_PLACEMENT pIdList[1];
528 } QCMINFO_IDMAP;
530 typedef struct _QCMINFO
532 HMENU hmenu;
533 UINT indexMenu;
534 UINT idCmdFirst;
535 UINT idCmdLast;
536 QCMINFO_IDMAP const* pIdMap;
537 } QCMINFO, *LPQCMINFO;
539 #define TBIF_DEFAULT 0x00000000
540 #define TBIF_APPEND 0x00000000
541 #define TBIF_PREPEND 0x00000001
542 #define TBIF_REPLACE 0x00000002
543 #define TBIF_INTERNETBAR 0x00010000
544 #define TBIF_STANDARDTOOLBAR 0x00020000
545 #define TBIF_NOTOOLBAR 0x00030000
547 typedef struct _TBINFO
549 UINT cbuttons;
550 UINT uFlags;
551 } TBINFO, *LPTBINFO;
553 #include <poppack.h>
555 /****************************************************************************
556 * SHShellFolderView_Message API
559 LRESULT WINAPI SHShellFolderView_Message(
560 HWND hwndCabinet,
561 UINT uMessage,
562 LPARAM lParam);
564 /* SHShellFolderView_Message messages */
565 #define SFVM_REARRANGE 0x0001
566 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
567 #define SFVM_ADDOBJECT 0x0003
568 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
569 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
570 #define SFVM_REMOVEOBJECT 0x0006
571 #define SFVM_UPDATEOBJECT 0x0007
572 #define SFVM_SETREDRAW 0x0008 /* undocumented */
573 #define SFVM_GETSELECTEDOBJECTS 0x0009
574 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
575 #define SFVM_MOVEICONS 0x000B /* undocumented */
576 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
577 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
578 #define SFVM_SETITEMPOS 0x000E
579 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
580 #define SFVM_SETCLIPBOARD 0x0010
581 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
582 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
583 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
584 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
585 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
586 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
587 #define SFVM_SETPOINTS 0x0017
589 /****************************************************************************
590 * SHGetDataFromIDList API
592 #define SHGDFIL_FINDDATA 1
593 #define SHGDFIL_NETRESOURCE 2
594 #define SHGDFIL_DESCRIPTIONID 3
596 #define SHDID_ROOT_REGITEM 1
597 #define SHDID_FS_FILE 2
598 #define SHDID_FS_DIRECTORY 3
599 #define SHDID_FS_OTHER 4
600 #define SHDID_COMPUTER_DRIVE35 5
601 #define SHDID_COMPUTER_DRIVE525 6
602 #define SHDID_COMPUTER_REMOVABLE 7
603 #define SHDID_COMPUTER_FIXED 8
604 #define SHDID_COMPUTER_NETDRIVE 9
605 #define SHDID_COMPUTER_CDROM 10
606 #define SHDID_COMPUTER_RAMDISK 11
607 #define SHDID_COMPUTER_OTHER 12
608 #define SHDID_NET_DOMAIN 13
609 #define SHDID_NET_SERVER 14
610 #define SHDID_NET_SHARE 15
611 #define SHDID_NET_RESTOFNET 16
612 #define SHDID_NET_OTHER 17
613 #define SHDID_COMPUTER_IMAGING 18
614 #define SHDID_COMPUTER_AUDIO 19
615 #define SHDID_COMPUTER_SHAREDDOCS 20
617 #include <pshpack8.h>
619 typedef struct _SHDESCRIPTIONID
620 { DWORD dwDescriptionId;
621 CLSID clsid;
622 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
624 #include <poppack.h>
626 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
627 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
628 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
630 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
631 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
632 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
634 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
636 /**********************************************************************
637 * SHGetSetSettings ()
640 typedef struct
642 BOOL fShowAllObjects : 1;
643 BOOL fShowExtensions : 1;
644 BOOL fNoConfirmRecycle : 1;
646 BOOL fShowSysFiles : 1;
647 BOOL fShowCompColor : 1;
648 BOOL fDoubleClickInWebView : 1;
649 BOOL fDesktopHTML : 1;
650 BOOL fWin95Classic : 1;
651 BOOL fDontPrettyPath : 1;
652 BOOL fShowAttribCol : 1;
653 BOOL fMapNetDrvBtn : 1;
654 BOOL fShowInfoTip : 1;
655 BOOL fHideIcons : 1;
656 BOOL fWebView : 1;
657 BOOL fFilter : 1;
658 BOOL fShowSuperHidden : 1;
659 BOOL fNoNetCrawling : 1;
661 UINT :15; /* Required for proper binary layout with gcc */
662 DWORD dwWin95Unused;
663 UINT uWin95Unused;
664 LONG lParamSort;
665 int iSortDirection;
666 UINT version;
667 UINT uNotUsed;
668 BOOL fSepProcess: 1;
669 BOOL fStartPanelOn: 1;
670 BOOL fShowStartPage: 1;
671 UINT fSpareFlags : 13;
672 UINT :15; /* Required for proper binary layout with gcc */
673 } SHELLSTATE, *LPSHELLSTATE;
675 /**********************************************************************
676 * SHGetSettings ()
678 typedef struct
679 { BOOL fShowAllObjects : 1;
680 BOOL fShowExtensions : 1;
681 BOOL fNoConfirmRecycle : 1;
682 BOOL fShowSysFiles : 1;
684 BOOL fShowCompColor : 1;
685 BOOL fDoubleClickInWebView : 1;
686 BOOL fDesktopHTML : 1;
687 BOOL fWin95Classic : 1;
689 BOOL fDontPrettyPath : 1;
690 BOOL fShowAttribCol : 1;
691 BOOL fMapNetDrvBtn : 1;
692 BOOL fShowInfoTip : 1;
694 BOOL fHideIcons : 1;
695 UINT fRestFlags : 3;
696 UINT :15; /* Required for proper binary layout with gcc */
697 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
699 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
701 #define SSF_SHOWALLOBJECTS 0x0001
702 #define SSF_SHOWEXTENSIONS 0x0002
703 #define SSF_SHOWCOMPCOLOR 0x0008
704 #define SSF_SHOWSYSFILES 0x0020
705 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
706 #define SSF_SHOWATTRIBCOL 0x0100
707 #define SSF_DESKTOPHTML 0x0200
708 #define SSF_WIN95CLASSIC 0x0400
709 #define SSF_DONTPRETTYPATH 0x0800
710 #define SSF_SHOWINFOTIP 0x2000
711 #define SSF_MAPNETDRVBUTTON 0x1000
712 #define SSF_NOCONFIRMRECYCLE 0x8000
713 #define SSF_HIDEICONS 0x4000
715 /****************************************************************************
716 * SHRestricted API
718 typedef enum RESTRICTIONS
720 REST_NONE = 0x00000000,
721 REST_NORUN = 0x00000001,
722 REST_NOCLOSE = 0x00000002,
723 REST_NOSAVESET = 0x00000004,
724 REST_NOFILEMENU = 0x00000008,
725 REST_NOSETFOLDERS = 0x00000010,
726 REST_NOSETTASKBAR = 0x00000020,
727 REST_NODESKTOP = 0x00000040,
728 REST_NOFIND = 0x00000080,
729 REST_NODRIVES = 0x00000100,
730 REST_NODRIVEAUTORUN = 0x00000200,
731 REST_NODRIVETYPEAUTORUN = 0x00000400,
732 REST_NONETHOOD = 0x00000800,
733 REST_STARTBANNER = 0x00001000,
734 REST_RESTRICTRUN = 0x00002000,
735 REST_NOPRINTERTABS = 0x00004000,
736 REST_NOPRINTERDELETE = 0x00008000,
737 REST_NOPRINTERADD = 0x00010000,
738 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
739 REST_MYDOCSONNET = 0x00040000,
740 REST_NOEXITTODOS = 0x00080000,
741 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
742 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
743 REST_NOCOMMONGROUPS = 0x00400000,
744 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
745 REST_NOWEB = 0x01000000,
746 REST_NOTRAYCONTEXTMENU = 0x02000000,
747 REST_NOVIEWCONTEXTMENU = 0x04000000,
748 REST_NONETCONNECTDISCONNECT = 0x08000000,
749 REST_STARTMENULOGOFF = 0x10000000,
750 REST_NOSETTINGSASSIST = 0x20000000,
751 REST_NOINTERNETICON = 0x40000001,
752 REST_NORECENTDOCSHISTORY,
753 REST_NORECENTDOCSMENU,
754 REST_NOACTIVEDESKTOP,
755 REST_NOACTIVEDESKTOPCHANGES,
756 REST_NOFAVORITESMENU,
757 REST_CLEARRECENTDOCSONEXIT,
758 REST_CLASSICSHELL,
759 REST_NOCUSTOMIZEWEBVIEW,
761 REST_NOHTMLWALLPAPER = 0x40000010,
762 REST_NOCHANGINGWALLPAPER,
763 REST_NODESKCOMP,
764 REST_NOADDDESKCOMP,
765 REST_NODELDESKCOMP,
766 REST_NOCLOSEDESKCOMP,
767 REST_NOCLOSE_DRAGDROPBAND,
768 REST_NOMOVINGBAND,
769 REST_NOEDITDESKCOMP,
770 REST_NORESOLVESEARCH,
771 REST_NORESOLVETRACK,
772 REST_FORCECOPYACLWITHFILE,
773 REST_NOLOGO3CHANNELNOTIFY,
774 REST_NOFORGETSOFTWAREUPDATE,
775 REST_NOSETACTIVEDESKTOP,
776 REST_NOUPDATEWINDOWS,
777 REST_NOCHANGESTARMENU, /* 0x40000020 */
778 REST_NOFOLDEROPTIONS,
779 REST_HASFINDCOMPUTERS,
780 REST_INTELLIMENUS,
781 REST_RUNDLGMEMCHECKBOX,
782 REST_ARP_ShowPostSetup,
783 REST_NOCSC,
784 REST_NOCONTROLPANEL,
785 REST_ENUMWORKGROUP,
786 REST_ARP_NOARP,
787 REST_ARP_NOREMOVEPAGE,
788 REST_ARP_NOADDPAGE,
789 REST_ARP_NOWINSETUPPAGE,
790 REST_GREYMSIADS,
791 REST_NOCHANGEMAPPEDDRIVELABEL,
792 REST_NOCHANGEMAPPEDDRIVECOMMENT,
793 REST_MaxRecentDocs, /* 0x40000030 */
794 REST_NONETWORKCONNECTIONS,
795 REST_FORCESTARTMENULOGOFF,
796 REST_NOWEBVIEW,
797 REST_NOCUSTOMIZETHISFOLDER,
798 REST_NOENCRYPTION,
800 REST_ALLOWFRENCHENCRYPTION, /* not documented */
802 REST_DONTSHOWSUPERHIDDEN,
803 REST_NOSHELLSEARCHBUTTON,
804 REST_NOHARDWARETAB,
805 REST_NORUNASINSTALLPROMPT,
806 REST_PROMPTRUNASINSTALLNETPATH,
807 REST_NOMANAGEMYCOMPUTERVERB,
808 REST_NORECENTDOCSNETHOOD,
809 REST_DISALLOWRUN,
810 REST_NOWELCOMESCREEN,
811 REST_RESTRICTCPL, /* 0x40000040 */
812 REST_DISALLOWCPL,
813 REST_NOSMBALLOONTIP,
814 REST_NOSMHELP,
815 REST_NOWINKEYS,
816 REST_NOENCRYPTONMOVE,
817 REST_NOLOCALMACHINERUN,
818 REST_NOCURRENTUSERRUN,
819 REST_NOLOCALMACHINERUNONCE,
820 REST_NOCURRENTUSERRUNONCE,
821 REST_FORCEACTIVEDESKTOPON,
822 REST_NOCOMPUTERSNEARME,
823 REST_NOVIEWONDRIVE,
824 REST_NONETCRAWL,
825 REST_NOSHAREDDOCUMENTS,
826 REST_NOSMMYDOCS,
827 REST_NOSMMYPICS, /* 0x40000050 */
828 REST_ALLOWBITBUCKDRIVES,
829 REST_NONLEGACYSHELLMODE,
830 REST_NOCONTROLPANELBARRICADE,
831 REST_NOSTARTPAGE,
832 REST_NOAUTOTRAYNOTIFY,
833 REST_NOTASKGROUPING,
834 REST_NOCDBURNING,
835 REST_MYCOMPNOPROP,
836 REST_MYDOCSNOPROP,
837 REST_NOSTARTPANEL,
838 REST_NODISPLAYAPPEARANCEPAGE,
839 REST_NOTHEMESTAB,
840 REST_NOVISUALSTYLECHOICE,
841 REST_NOSIZECHOICE,
842 REST_NOCOLORCHOICE,
843 REST_SETVISUALSTYLE, /* 0x40000060 */
844 REST_STARTRUNNOHOMEPATH,
845 REST_NOUSERNAMEINSTARTPANEL,
846 REST_NOMYCOMPUTERICON,
847 REST_NOSMNETWORKPLACES,
848 REST_NOSMPINNEDLIST,
849 REST_NOSMMYMUSIC,
850 REST_NOSMEJECTPC,
851 REST_NOSMMOREPROGRAMS,
852 REST_NOSMMFUPROGRAMS,
853 REST_NOTRAYITEMSDISPLAY,
854 REST_NOTOOLBARSONTASKBAR,
855 /* 0x4000006C
856 0x4000006D
857 0x4000006E */
858 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
859 REST_HIDECLOCK, /* 0x40000070 */
860 REST_NOLOWDISKSPACECHECKS,
861 REST_NOENTIRENETWORK,
862 REST_NODESKTOPCLEANUP,
863 REST_BITBUCKNUKEONDELETE,
864 REST_BITBUCKCONFIRMDELETE,
865 REST_BITBUCKNOPROP,
866 REST_NODISPBACKGROUND,
867 REST_NODISPSCREENSAVEPG,
868 REST_NODISPSETTINGSPG,
869 REST_NODISPSCREENSAVEPREVIEW,
870 REST_NODISPLAYCPL,
871 REST_HIDERUNASVERB,
872 REST_NOTHUMBNAILCACHE,
873 REST_NOSTRCMPLOGICAL,
874 REST_NOPUBLISHWIZARD,
875 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
876 REST_NOWEBSERVICES,
877 REST_ALLOWUNHASHEDWEBVIEW,
878 REST_ALLOWLEGACYWEBVIEW,
879 REST_REVERTWEBVIEWSECURITY,
881 REST_INHERITCONSOLEHANDLES = 0x40000086,
883 REST_NODISCONNECT = 0x41000001,
884 REST_NOSECURITY,
885 REST_NOFILEASSOCIATE, /* 0x41000003 */
886 } RESTRICTIONS;
888 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
890 /****************************************************************************
891 * SHChangeNotify API
893 typedef struct _SHChangeNotifyEntry
895 LPCITEMIDLIST pidl;
896 BOOL fRecursive;
897 } SHChangeNotifyEntry;
899 #define SHCNE_RENAMEITEM 0x00000001
900 #define SHCNE_CREATE 0x00000002
901 #define SHCNE_DELETE 0x00000004
902 #define SHCNE_MKDIR 0x00000008
903 #define SHCNE_RMDIR 0x00000010
904 #define SHCNE_MEDIAINSERTED 0x00000020
905 #define SHCNE_MEDIAREMOVED 0x00000040
906 #define SHCNE_DRIVEREMOVED 0x00000080
907 #define SHCNE_DRIVEADD 0x00000100
908 #define SHCNE_NETSHARE 0x00000200
909 #define SHCNE_NETUNSHARE 0x00000400
910 #define SHCNE_ATTRIBUTES 0x00000800
911 #define SHCNE_UPDATEDIR 0x00001000
912 #define SHCNE_UPDATEITEM 0x00002000
913 #define SHCNE_SERVERDISCONNECT 0x00004000
914 #define SHCNE_UPDATEIMAGE 0x00008000
915 #define SHCNE_DRIVEADDGUI 0x00010000
916 #define SHCNE_RENAMEFOLDER 0x00020000
917 #define SHCNE_FREESPACE 0x00040000
919 #define SHCNE_EXTENDED_EVENT 0x04000000
920 #define SHCNE_ASSOCCHANGED 0x08000000
921 #define SHCNE_DISKEVENTS 0x0002381F
922 #define SHCNE_GLOBALEVENTS 0x0C0581E0
923 #define SHCNE_ALLEVENTS 0x7FFFFFFF
924 #define SHCNE_INTERRUPT 0x80000000
926 #define SHCNEE_ORDERCHANGED 0x0002L
927 #define SHCNEE_MSI_CHANGE 0x0004L
928 #define SHCNEE_MSI_UNINSTALL 0x0005L
930 #define SHCNF_IDLIST 0x0000
931 #define SHCNF_PATHA 0x0001
932 #define SHCNF_PRINTERA 0x0002
933 #define SHCNF_DWORD 0x0003
934 #define SHCNF_PATHW 0x0005
935 #define SHCNF_PRINTERW 0x0006
936 #define SHCNF_TYPE 0x00FF
937 #define SHCNF_FLUSH 0x1000
938 #define SHCNF_FLUSHNOWAIT 0x2000
940 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
941 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
943 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
945 typedef enum {
946 SLDF_HAS_ID_LIST = 0x00000001,
947 SLDF_HAS_LINK_INFO = 0x00000002,
948 SLDF_HAS_NAME = 0x00000004,
949 SLDF_HAS_RELPATH = 0x00000008,
950 SLDF_HAS_WORKINGDIR = 0x00000010,
951 SLDF_HAS_ARGS = 0x00000020,
952 SLDF_HAS_ICONLOCATION = 0x00000040,
953 SLDF_UNICODE = 0x00000080,
954 SLDF_FORCE_NO_LINKINFO = 0x00000100,
955 SLDF_HAS_EXP_SZ = 0x00000200,
956 SLDF_RUN_IN_SEPARATE = 0x00000400,
957 SLDF_HAS_LOGO3ID = 0x00000800,
958 SLDF_HAS_DARWINID = 0x00001000,
959 SLDF_RUNAS_USER = 0x00002000,
960 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
961 SLDF_NO_PIDL_ALIAS = 0x00008000,
962 SLDF_FORCE_UNCNAME = 0x00010000,
963 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
964 SLDF_RESERVED = 0x80000000,
965 } SHELL_LINK_DATA_FLAGS;
967 typedef struct tagDATABLOCKHEADER
969 DWORD cbSize;
970 DWORD dwSignature;
971 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
973 typedef struct {
974 DATABLOCK_HEADER dbh;
975 CHAR szDarwinID[MAX_PATH];
976 WCHAR szwDarwinID[MAX_PATH];
977 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
979 typedef struct {
980 DWORD cbSize;
981 DWORD cbSignature;
982 CHAR szTarget[MAX_PATH];
983 WCHAR szwTarget[MAX_PATH];
984 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
986 typedef struct {
987 DWORD cbSize;
988 DWORD dwSignature;
989 DWORD idSpecialFolder;
990 DWORD cbOffset;
991 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
993 #define EXP_SZ_LINK_SIG 0xa0000001
994 #define NT_CONSOLE_PROPS_SIG 0xa0000002
995 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
996 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
997 #define EXP_DARWIN_ID_SIG 0xa0000006
998 #define EXP_LOGO3_ID_SIG 0xa0000007
999 #define EXP_SZ_ICON_SIG 0xa0000007
1001 typedef struct _SHChangeDWORDAsIDList {
1002 USHORT cb;
1003 DWORD dwItem1;
1004 DWORD dwItem2;
1005 USHORT cbZero;
1006 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
1008 typedef struct _SHChangeProductKeyAsIDList {
1009 USHORT cb;
1010 WCHAR wszProductKey[39];
1011 USHORT cbZero;
1012 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
1014 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
1015 int cEntries, SHChangeNotifyEntry *pshcne);
1016 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
1017 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
1018 LPITEMIDLIST **pppidl, LONG *plEvent);
1019 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
1021 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
1023 /****************************************************************************
1024 * SHCreateDirectory API
1026 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
1027 int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
1028 int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
1030 /****************************************************************************
1031 * SHGetSpecialFolderLocation API
1033 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
1034 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
1036 /****************************************************************************
1037 * SHGetFolderPath API
1039 typedef enum {
1040 SHGFP_TYPE_CURRENT = 0,
1041 SHGFP_TYPE_DEFAULT = 1
1042 } SHGFP_TYPE;
1044 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
1045 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
1046 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1048 #define CSIDL_DESKTOP 0x0000
1049 #define CSIDL_INTERNET 0x0001
1050 #define CSIDL_PROGRAMS 0x0002
1051 #define CSIDL_CONTROLS 0x0003
1052 #define CSIDL_PRINTERS 0x0004
1053 #define CSIDL_PERSONAL 0x0005
1054 #define CSIDL_FAVORITES 0x0006
1055 #define CSIDL_STARTUP 0x0007
1056 #define CSIDL_RECENT 0x0008
1057 #define CSIDL_SENDTO 0x0009
1058 #define CSIDL_BITBUCKET 0x000a
1059 #define CSIDL_STARTMENU 0x000b
1060 #define CSIDL_MYDOCUMENTS 0x000c
1061 #define CSIDL_MYMUSIC 0x000d
1062 #define CSIDL_MYVIDEO 0x000e
1063 #define CSIDL_DESKTOPDIRECTORY 0x0010
1064 #define CSIDL_DRIVES 0x0011
1065 #define CSIDL_NETWORK 0x0012
1066 #define CSIDL_NETHOOD 0x0013
1067 #define CSIDL_FONTS 0x0014
1068 #define CSIDL_TEMPLATES 0x0015
1069 #define CSIDL_COMMON_STARTMENU 0x0016
1070 #define CSIDL_COMMON_PROGRAMS 0X0017
1071 #define CSIDL_COMMON_STARTUP 0x0018
1072 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1073 #define CSIDL_APPDATA 0x001a
1074 #define CSIDL_PRINTHOOD 0x001b
1075 #define CSIDL_LOCAL_APPDATA 0x001c
1076 #define CSIDL_ALTSTARTUP 0x001d
1077 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1078 #define CSIDL_COMMON_FAVORITES 0x001f
1079 #define CSIDL_INTERNET_CACHE 0x0020
1080 #define CSIDL_COOKIES 0x0021
1081 #define CSIDL_HISTORY 0x0022
1082 #define CSIDL_COMMON_APPDATA 0x0023
1083 #define CSIDL_WINDOWS 0x0024
1084 #define CSIDL_SYSTEM 0x0025
1085 #define CSIDL_PROGRAM_FILES 0x0026
1086 #define CSIDL_MYPICTURES 0x0027
1087 #define CSIDL_PROFILE 0x0028
1088 #define CSIDL_SYSTEMX86 0x0029
1089 #define CSIDL_PROGRAM_FILESX86 0x002a
1090 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1091 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1092 #define CSIDL_COMMON_TEMPLATES 0x002d
1093 #define CSIDL_COMMON_DOCUMENTS 0x002e
1094 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1095 #define CSIDL_ADMINTOOLS 0x0030
1096 #define CSIDL_CONNECTIONS 0x0031
1097 #define CSIDL_COMMON_MUSIC 0x0035
1098 #define CSIDL_COMMON_PICTURES 0x0036
1099 #define CSIDL_COMMON_VIDEO 0x0037
1100 #define CSIDL_RESOURCES 0x0038
1101 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1102 #define CSIDL_COMMON_OEM_LINKS 0x003a
1103 #define CSIDL_CDBURN_AREA 0x003b
1104 #define CSIDL_COMPUTERSNEARME 0x003d
1105 #define CSIDL_PROFILES 0x003e
1106 #define CSIDL_FOLDER_MASK 0x00ff
1107 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1108 #define CSIDL_FLAG_NO_ALIAS 0x1000
1109 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1110 #define CSIDL_FLAG_CREATE 0x8000
1112 #define CSIDL_FLAG_MASK 0xff00
1114 /****************************************************************************
1115 * SHGetDesktopFolder API
1117 HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
1119 /****************************************************************************
1120 * SHBindToParent API
1122 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1124 /****************************************************************************
1125 * SHDefExtractIcon API
1127 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
1128 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1129 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
1130 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1131 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1134 * DROPFILES for CF_HDROP and CF_PRINTERS
1136 typedef struct _DROPFILES
1138 DWORD pFiles;
1139 POINT pt;
1140 BOOL fNC;
1141 BOOL fWide;
1142 } DROPFILES, *LPDROPFILES;
1145 * Properties of a file in the clipboard
1147 typedef struct _FILEDESCRIPTORA {
1148 DWORD dwFlags;
1149 CLSID clsid;
1150 SIZEL sizel;
1151 POINTL pointl;
1152 DWORD dwFileAttributes;
1153 FILETIME ftCreationTime;
1154 FILETIME ftLastAccessTime;
1155 FILETIME ftLastWriteTime;
1156 DWORD nFileSizeHigh;
1157 DWORD nFileSizeLow;
1158 CHAR cFileName[MAX_PATH];
1159 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1161 typedef struct _FILEDESCRIPTORW {
1162 DWORD dwFlags;
1163 CLSID clsid;
1164 SIZEL sizel;
1165 POINTL pointl;
1166 DWORD dwFileAttributes;
1167 FILETIME ftCreationTime;
1168 FILETIME ftLastAccessTime;
1169 FILETIME ftLastWriteTime;
1170 DWORD nFileSizeHigh;
1171 DWORD nFileSizeLow;
1172 WCHAR cFileName[MAX_PATH];
1173 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
1175 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
1176 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
1179 * CF_FILEGROUPDESCRIPTOR clipboard format
1181 typedef struct _FILEGROUPDESCRIPTORA {
1182 UINT cItems;
1183 FILEDESCRIPTORA fgd[1];
1184 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1186 typedef struct _FILEGROUPDESCRIPTORW {
1187 UINT cItems;
1188 FILEDESCRIPTORW fgd[1];
1189 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1191 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1192 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1194 /****************************************************************************
1195 * Cabinet functions
1198 typedef struct {
1199 WORD cLength;
1200 WORD nVersion;
1201 BOOL fFullPathTitle:1;
1202 BOOL fSaveLocalView:1;
1203 BOOL fNotShell:1;
1204 BOOL fSimpleDefault:1;
1205 BOOL fDontShowDescBar:1;
1206 BOOL fNewWindowMode:1;
1207 BOOL fShowCompColor:1;
1208 BOOL fDontPrettyNames:1;
1209 BOOL fAdminsCreateCommonGroups:1;
1210 UINT fUnusedFlags:7;
1211 UINT :15; /* Required for proper binary layout with gcc */
1212 UINT fMenuEnumFilter;
1213 } CABINETSTATE, *LPCABINETSTATE;
1215 #define CABINETSTATE_VERSION 2
1217 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1218 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1220 /****************************************************************************
1221 * Path Manipulation Routines
1223 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1224 LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
1226 /****************************************************************************
1227 * Drag And Drop Routines
1230 /* DAD_AutoScroll sample structure */
1231 #define NUM_POINTS 3
1232 typedef struct
1234 int iNextSample;
1235 DWORD dwLastScroll;
1236 BOOL bFull;
1237 POINT pts[NUM_POINTS];
1238 DWORD dwTimes[NUM_POINTS];
1239 } AUTO_SCROLL_DATA;
1241 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1242 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1243 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1244 BOOL WINAPI DAD_DragMove(POINT);
1245 BOOL WINAPI DAD_DragLeave(void);
1246 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1247 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1249 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1250 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1251 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1252 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1253 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1254 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1255 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1256 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1257 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1258 void WINAPI ILFree(LPITEMIDLIST);
1259 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1260 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1261 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1262 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1263 HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1264 BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1265 HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1268 #include <poppack.h>
1270 #ifdef __cplusplus
1271 } /* extern "C" */
1272 #endif /* defined(__cplusplus) */
1274 #endif /* __WINE_SHLOBJ_H */