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