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
29 #endif /* defined(__cplusplus) */
36 LPVOID WINAPI SHAlloc(ULONG);
37 HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*);
38 HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**);
39 BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
40 void WINAPI SHFree(LPVOID);
41 BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST pidl,LPSTR pszPath);
42 BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl,LPWSTR pszPath);
43 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
44 HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
45 LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
46 int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
49 /* SHObjectProperties flags */
50 #define SHOP_PRINTERNAME 0x01
51 #define SHOP_FILEPATH 0x02
52 #define SHOP_VOLUMEGUID 0x04
54 BOOL WINAPI SHObjectProperties(HWND,UINT,LPCWSTR,LPCWSTR);
57 /*****************************************************************************
58 * Predeclare interfaces
60 typedef struct IShellIcon IShellIcon, *LPSHELLICON;
63 /*****************************************************************************
64 * IContextMenu interface
68 /* DATAOBJECT_InitShellIDList*/
69 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
71 extern UINT cfShellIDList;
78 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
79 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
81 /* DATAOBJECT_InitFileGroupDesc */
82 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
83 extern UINT cfFileGroupDesc;
85 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
87 /* DATAOBJECT_InitFileContents*/
88 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
89 extern UINT cfFileContents;
91 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
92 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
93 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
94 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
95 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
96 #define CFSTR_SHELLURL "UniformResourceLocator"
97 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
98 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
99 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
100 #define CFSTR_INDRAGLOOP "InShellDragLoop"
102 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
105 /************************************************************************
106 * IShellView interface
109 typedef GUID SHELLVIEWID;
110 #define SV_CLASS_NAME ("SHELLDLL_DefView")
112 #define FCIDM_SHVIEWFIRST 0x0000
114 #define FCIDM_SHVIEW_ARRANGE 0x7001
115 #define FCIDM_SHVIEW_DELETE 0x7011
116 #define FCIDM_SHVIEW_PROPERTIES 0x7013
117 #define FCIDM_SHVIEW_CUT 0x7018
118 #define FCIDM_SHVIEW_COPY 0x7019
119 #define FCIDM_SHVIEW_INSERT 0x701A
120 #define FCIDM_SHVIEW_UNDO 0x701B
121 #define FCIDM_SHVIEW_INSERTLINK 0x701C
122 #define FCIDM_SHVIEW_SELECTALL 0x7021
123 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
125 #define FCIDM_SHVIEW_BIGICON 0x7029
126 #define FCIDM_SHVIEW_SMALLICON 0x702A
127 #define FCIDM_SHVIEW_LISTVIEW 0x702B
128 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
129 /* 0x7030-0x703f are used by the shellbrowser */
130 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
131 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
133 #define FCIDM_SHVIEW_HELP 0x7041
134 #define FCIDM_SHVIEW_RENAME 0x7050
135 #define FCIDM_SHVIEW_CREATELINK 0x7051
136 #define FCIDM_SHVIEW_NEWLINK 0x7052
137 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
139 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
140 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
141 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
143 #define FCIDM_SHVIEWLAST 0x7fff
144 #define FCIDM_BROWSERFIRST 0xA000
145 /* undocumented toolbar items from stddlg's*/
146 #define FCIDM_TB_UPFOLDER 0xA001
147 #define FCIDM_TB_NEWFOLDER 0xA002
148 #define FCIDM_TB_SMALLICON 0xA003
149 #define FCIDM_TB_REPORTVIEW 0xA004
150 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
152 #define FCIDM_BROWSERLAST 0xbf00
153 #define FCIDM_GLOBALFIRST 0x8000
154 #define FCIDM_GLOBALLAST 0x9fff
157 * Global submenu IDs and separator IDs
159 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
160 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
161 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
162 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
163 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
164 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
165 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
166 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
167 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
168 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
170 /* control IDs known to the view */
171 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
172 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
175 /****************************************************************************
176 * IShellIcon interface
179 #define INTERFACE IShellIcon
180 #define IShellIcon_METHODS \
182 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
183 ICOM_DEFINE(IShellIcon, IUnknown)
187 /*** IUnknown methods ***/
188 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
189 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
190 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
191 /*** IShellIcon methods ***/
192 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
195 /****************************************************************************
196 * SHAddToRecentDocs API
198 #define SHARD_PIDL 0x00000001L
199 #define SHARD_PATHA 0x00000002L
200 #define SHARD_PATHW 0x00000003L
201 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
203 DWORD WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv);
205 /****************************************************************************
206 * SHBrowseForFolder API
208 typedef INT (CALLBACK *BFFCALLBACK)(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
210 typedef struct tagBROWSEINFOA {
212 LPCITEMIDLIST pidlRoot;
213 LPSTR pszDisplayName;
219 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
221 typedef struct tagBROWSEINFOW {
223 LPCITEMIDLIST pidlRoot;
224 LPWSTR pszDisplayName;
230 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
232 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
233 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
234 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
236 /* Browsing for directory. */
237 #define BIF_RETURNONLYFSDIRS 0x0001
238 #define BIF_DONTGOBELOWDOMAIN 0x0002
239 #define BIF_STATUSTEXT 0x0004
240 #define BIF_RETURNFSANCESTORS 0x0008
241 #define BIF_EDITBOX 0x0010
242 #define BIF_VALIDATE 0x0020
243 #define BIF_NEWDIALOGSTYLE 0x0040
245 #define BIF_BROWSEFORCOMPUTER 0x1000
246 #define BIF_BROWSEFORPRINTER 0x2000
247 #define BIF_BROWSEINCLUDEFILES 0x4000
249 /* message from browser */
250 #define BFFM_INITIALIZED 1
251 #define BFFM_SELCHANGED 2
252 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
253 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
255 /* messages to browser */
256 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
257 #define BFFM_ENABLEOK (WM_USER+101)
258 #define BFFM_SETSELECTIONA (WM_USER+102)
259 #define BFFM_SETSELECTIONW (WM_USER+103)
260 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
261 #define BFFM_SETOKTEXT (WM_USER+105)
262 #define BFFM_SETEXPANDED (WM_USER+106)
264 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
265 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
266 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
267 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
268 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
269 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
271 /****************************************************************************
272 * SHGetDataFromIDList API
274 #define SHGDFIL_FINDDATA 1
275 #define SHGDFIL_NETRESOURCE 2
276 #define SHGDFIL_DESCRIPTIONID 3
278 #define SHDID_ROOT_REGITEM 1
279 #define SHDID_FS_FILE 2
280 #define SHDID_FS_DIRECTORY 3
281 #define SHDID_FS_OTHER 4
282 #define SHDID_COMPUTER_DRIVE35 5
283 #define SHDID_COMPUTER_DRIVE525 6
284 #define SHDID_COMPUTER_REMOVABLE 7
285 #define SHDID_COMPUTER_FIXED 8
286 #define SHDID_COMPUTER_NETDRIVE 9
287 #define SHDID_COMPUTER_CDROM 10
288 #define SHDID_COMPUTER_RAMDISK 11
289 #define SHDID_COMPUTER_OTHER 12
290 #define SHDID_NET_DOMAIN 13
291 #define SHDID_NET_SERVER 14
292 #define SHDID_NET_SHARE 15
293 #define SHDID_NET_RESTOFNET 16
294 #define SHDID_NET_OTHER 17
295 #define SHDID_COMPUTER_IMAGING 18
296 #define SHDID_COMPUTER_AUDIO 19
297 #define SHDID_COMPUTER_SHAREDDOCS 20
299 typedef struct _SHDESCRIPTIONID
300 { DWORD dwDescriptionId;
302 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
304 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
305 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
306 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
308 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
309 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
310 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
312 /****************************************************************************
317 * IShellFolderViewCallback Callback
318 * This "callback" is called by the shells default IShellView implementation (that
319 * we got using SHCreateShellViewEx()), to notify us of the various things that
320 * are happening to the shellview (and ask for things too).
322 * You don't have to support anything here - anything you don't want to
323 * handle, the shell will do itself if you just return E_NOTIMPL. This parameters
324 * that the shell passes to this function are entirely undocumented.
326 * HOWEVER, as the cabview sample as originally written used this callback, the
327 * writers implemented the callback mechanism on top of their own IShellView.
328 * Look there for some clues on what to do here.
331 typedef HRESULT (CALLBACK *SHELLVIEWPROC)(DWORD dwUserParam,LPSHELLFOLDER psf,
332 HWND hwnd,UINT uMsg,UINT wParam,LPARAM lParam);
334 /* NF valid values for the "viewmode" item of the SHELLTEMPLATE*/
335 #define NF_INHERITVIEW 0x0000
336 #define NF_LOCALVIEW 0x0001
338 typedef struct _SHELLVIEWDATA /* idl */
340 LPSHELLFOLDER pShellFolder;
343 DWORD v3; /* always 0 */
344 SHELLVIEWPROC pCallBack;
345 DWORD viewmode; /* NF_* enum */
346 } SHELLVIEWDATA, * LPSHELLVIEWDATA;
348 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
350 /**********************************************************************
351 * SHGetSetSettings ()
356 BOOL fShowAllObjects : 1;
357 BOOL fShowExtensions : 1;
358 BOOL fNoConfirmRecycle : 1;
360 BOOL fShowSysFiles : 1;
361 BOOL fShowCompColor : 1;
362 BOOL fDoubleClickInWebView : 1;
363 BOOL fDesktopHTML : 1;
364 BOOL fWin95Classic : 1;
365 BOOL fDontPrettyPath : 1;
366 BOOL fShowAttribCol : 1;
367 BOOL fMapNetDrvBtn : 1;
368 BOOL fShowInfoTip : 1;
372 BOOL fShowSuperHidden : 1;
373 BOOL fNoNetCrawling : 1;
382 BOOL fStartPanelOn: 1;
383 BOOL fShowStartPage: 1;
384 UINT fSpareFlags : 13;
385 } SHELLSTATE, *LPSHELLSTATE;
387 /**********************************************************************
391 { BOOL fShowAllObjects : 1;
392 BOOL fShowExtensions : 1;
393 BOOL fNoConfirmRecycle : 1;
394 BOOL fShowSysFiles : 1;
396 BOOL fShowCompColor : 1;
397 BOOL fDoubleClickInWebView : 1;
398 BOOL fDesktopHTML : 1;
399 BOOL fWin95Classic : 1;
401 BOOL fDontPrettyPath : 1;
402 BOOL fShowAttribCol : 1;
403 BOOL fMapNetDrvBtn : 1;
404 BOOL fShowInfoTip : 1;
408 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
410 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
412 #define SSF_SHOWALLOBJECTS 0x0001
413 #define SSF_SHOWEXTENSIONS 0x0002
414 #define SSF_SHOWCOMPCOLOR 0x0008
415 #define SSF_SHOWSYSFILES 0x0020
416 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
417 #define SSF_SHOWATTRIBCOL 0x0100
418 #define SSF_DESKTOPHTML 0x0200
419 #define SSF_WIN95CLASSIC 0x0400
420 #define SSF_DONTPRETTYPATH 0x0800
421 #define SSF_SHOWINFOTIP 0x2000
422 #define SSF_MAPNETDRVBUTTON 0x1000
423 #define SSF_NOCONFIRMRECYCLE 0x8000
424 #define SSF_HIDEICONS 0x4000
426 /****************************************************************************
429 typedef enum RESTRICTIONS
431 REST_NONE = 0x00000000,
432 REST_NORUN = 0x00000001,
433 REST_NOCLOSE = 0x00000002,
434 REST_NOSAVESET = 0x00000004,
435 REST_NOFILEMENU = 0x00000008,
436 REST_NOSETFOLDERS = 0x00000010,
437 REST_NOSETTASKBAR = 0x00000020,
438 REST_NODESKTOP = 0x00000040,
439 REST_NOFIND = 0x00000080,
440 REST_NODRIVES = 0x00000100,
441 REST_NODRIVEAUTORUN = 0x00000200,
442 REST_NODRIVETYPEAUTORUN = 0x00000400,
443 REST_NONETHOOD = 0x00000800,
444 REST_STARTBANNER = 0x00001000,
445 REST_RESTRICTRUN = 0x00002000,
446 REST_NOPRINTERTABS = 0x00004000,
447 REST_NOPRINTERDELETE = 0x00008000,
448 REST_NOPRINTERADD = 0x00010000,
449 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
450 REST_MYDOCSONNET = 0x00040000,
451 REST_NOEXITTODOS = 0x00080000,
452 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
453 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
454 REST_NOCOMMONGROUPS = 0x00400000,
455 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
456 REST_NOWEB = 0x01000000,
457 REST_NOTRAYCONTEXTMENU = 0x02000000,
458 REST_NOVIEWCONTEXTMENU = 0x04000000,
459 REST_NONETCONNECTDISCONNECT = 0x08000000,
460 REST_STARTMENULOGOFF = 0x10000000,
461 REST_NOSETTINGSASSIST = 0x20000000,
462 REST_NOINTERNETICON = 0x40000001,
463 REST_NORECENTDOCSHISTORY,
464 REST_NORECENTDOCSMENU,
465 REST_NOACTIVEDESKTOP,
466 REST_NOACTIVEDESKTOPCHANGES,
467 REST_NOFAVORITESMENU,
468 REST_CLEARRECENTDOCSONEXIT,
470 REST_NOCUSTOMIZEWEBVIEW,
472 REST_NOHTMLWALLPAPER = 0x40000010,
473 REST_NOCHANGINGWALLPAPER,
477 REST_NOCLOSEDESKCOMP,
478 REST_NOCLOSE_DRAGDROPBAND,
481 REST_NORESOLVESEARCH,
483 REST_FORCECOPYACLWITHFILE,
484 REST_NOLOGO3CHANNELNOTIFY,
485 REST_NOFORGETSOFTWAREUPDATE,
486 REST_NOSETACTIVEDESKTOP,
487 REST_NOUPDATEWINDOWS,
488 REST_NOCHANGESTARMENU, /* 0x40000020 */
489 REST_NOFOLDEROPTIONS,
490 REST_HASFINDCOMPUTERS,
492 REST_RUNDLGMEMCHECKBOX,
493 REST_ARP_ShowPostSetup,
498 REST_ARP_NOREMOVEPAGE,
500 REST_ARP_NOWINSETUPPAGE,
502 REST_NOCHANGEMAPPEDDRIVELABEL,
503 REST_NOCHANGEMAPPEDDRIVECOMMENT,
504 REST_MaxRecentDocs, /* 0x40000030 */
505 REST_NONETWORKCONNECTIONS,
506 REST_FORCESTARTMENULOGOFF,
508 REST_NOCUSTOMIZETHISFOLDER,
511 REST_ALLOWFRENCHENCRYPTION, /* not documented */
513 REST_DONTSHOWSUPERHIDDEN,
514 REST_NOSHELLSEARCHBUTTON,
516 REST_NORUNASINSTALLPROMPT,
517 REST_PROMPTRUNASINSTALLNETPATH,
518 REST_NOMANAGEMYCOMPUTERVERB,
519 REST_NORECENTDOCSNETHOOD,
521 REST_NOWELCOMESCREEN,
522 REST_RESTRICTCPL, /* 0x40000040 */
527 REST_NOENCRYPTONMOVE,
528 REST_NOLOCALMACHINERUN,
529 REST_NOCURRENTUSERRUN,
530 REST_NOLOCALMACHINERUNONCE,
531 REST_NOCURRENTUSERRUNONCE,
532 REST_FORCEACTIVEDESKTOPON,
533 REST_NOCOMPUTERSNEARME,
536 REST_NOSHAREDDOCUMENTS,
538 REST_NOSMMYPICS, /* 0x40000050 */
539 REST_ALLOWBITBUCKDRIVES,
540 REST_NONLEGACYSHELLMODE,
541 REST_NOCONTROLPANELBARRICADE,
543 REST_NOAUTOTRAYNOTIFY,
549 REST_NODISPLAYAPPEARANCEPAGE,
551 REST_NOVISUALSTYLECHOICE,
554 REST_SETVISUALSTYLE, /* 0x40000060 */
555 REST_STARTRUNNOHOMEPATH,
556 REST_NOUSERNAMEINSTARTPANEL,
557 REST_NOMYCOMPUTERICON,
558 REST_NOSMNETWORKPLACES,
562 REST_NOSMMOREPROGRAMS,
563 REST_NOSMMFUPROGRAMS,
564 REST_NOTRAYITEMSDISPLAY,
565 REST_NOTOOLBARSONTASKBAR,
569 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
570 REST_HIDECLOCK, /* 0x40000070 */
571 REST_NOLOWDISKSPACECHECKS,
572 REST_NOENTIRENETWORK,
573 REST_NODESKTOPCLEANUP,
574 REST_BITBUCKNUKEONDELETE,
575 REST_BITBUCKCONFIRMDELETE,
577 REST_NODISPBACKGROUND,
578 REST_NODISPSCREENSAVEPG,
579 REST_NODISPSETTINGSPG,
580 REST_NODISPSCREENSAVEPREVIEW,
583 REST_NOTHUMBNAILCACHE,
584 REST_NOSTRCMPLOGICAL,
585 REST_NOPUBLISHWIZARD,
586 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
588 REST_ALLOWUNHASHEDWEBVIEW,
589 REST_ALLOWLEGACYWEBVIEW,
590 REST_REVERTWEBVIEWSECURITY,
592 REST_INHERITCONSOLEHANDLES = 0x40000086,
594 REST_NODISCONNECT = 0x41000001,
596 REST_NOFILEASSOCIATE, /* 0x41000003 */
599 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
601 /****************************************************************************
604 typedef struct _SHChangeNotifyEntry
608 } SHChangeNotifyEntry;
610 #define SHCNE_RENAMEITEM 0x00000001
611 #define SHCNE_CREATE 0x00000002
612 #define SHCNE_DELETE 0x00000004
613 #define SHCNE_MKDIR 0x00000008
614 #define SHCNE_RMDIR 0x00000010
615 #define SHCNE_MEDIAINSERTED 0x00000020
616 #define SHCNE_MEDIAREMOVED 0x00000040
617 #define SHCNE_DRIVEREMOVED 0x00000080
618 #define SHCNE_DRIVEADD 0x00000100
619 #define SHCNE_NETSHARE 0x00000200
620 #define SHCNE_NETUNSHARE 0x00000400
621 #define SHCNE_ATTRIBUTES 0x00000800
622 #define SHCNE_UPDATEDIR 0x00001000
623 #define SHCNE_UPDATEITEM 0x00002000
624 #define SHCNE_SERVERDISCONNECT 0x00004000
625 #define SHCNE_UPDATEIMAGE 0x00008000
626 #define SHCNE_DRIVEADDGUI 0x00010000
627 #define SHCNE_RENAMEFOLDER 0x00020000
628 #define SHCNE_FREESPACE 0x00040000
630 #define SHCNE_EXTENDED_EVENT 0x04000000
631 #define SHCNE_ASSOCCHANGED 0x08000000
632 #define SHCNE_DISKEVENTS 0x0002381F
633 #define SHCNE_GLOBALEVENTS 0x0C0581E0
634 #define SHCNE_ALLEVENTS 0x7FFFFFFF
635 #define SHCNE_INTERRUPT 0x80000000
637 #define SHCNEE_ORDERCHANGED 0x0002L
638 #define SHCNEE_MSI_CHANGE 0x0004L
639 #define SHCNEE_MSI_UNINSTALL 0x0005L
641 #define SHCNF_IDLIST 0x0000
642 #define SHCNF_PATHA 0x0001
643 #define SHCNF_PRINTERA 0x0002
644 #define SHCNF_DWORD 0x0003
645 #define SHCNF_PATHW 0x0005
646 #define SHCNF_PRINTERW 0x0006
647 #define SHCNF_TYPE 0x00FF
648 #define SHCNF_FLUSH 0x1000
649 #define SHCNF_FLUSHNOWAIT 0x2000
651 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
652 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
654 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
659 typedef struct IShellChangeNotify IShellChangeNotify, *LPSHELLCHANGENOTIFY;
661 #define INTERFACE IShellChangeNotify
662 #define IShellChangeNotify_METHODS \
664 STDMETHOD(OnChange)(THIS_ LONG lEvent, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2) PURE;
666 ICOM_DEFINE(IShellChangeNotify, IUnknown)
670 /*** IUnknown methods ***/
671 #define IShellChangeNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
672 #define IShellChangeNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
673 #define IShellChangeNotify_Release(p) (p)->lpVtbl->Release(p)
674 /*** IShellChangeNotify methods ***/
675 #define IShellChangeNotify_OnChange(p,a,b,c) (p)->lpVtbl->OnChange(p,a,b,c)
678 typedef struct _SHChangeDWORDAsIDList {
683 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
685 typedef struct _SHChangeProductKeyAsIDList {
687 WCHAR wszProductKey[39];
689 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
691 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
692 int cEntries, SHChangeNotifyEntry *pshcne);
693 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
694 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
695 LPITEMIDLIST **pppidl, LONG *plEvent);
696 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
698 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
700 /****************************************************************************
701 * SHCreateDirectory API
703 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
704 DWORD WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
705 DWORD WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
707 /****************************************************************************
708 * SHGetSpecialFolderLocation API
710 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
711 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
713 /****************************************************************************
714 * SHGetFolderPath API
717 SHGFP_TYPE_CURRENT = 0,
718 SHGFP_TYPE_DEFAULT = 1
721 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
722 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
723 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
725 #define CSIDL_DESKTOP 0x0000
726 #define CSIDL_INTERNET 0x0001
727 #define CSIDL_PROGRAMS 0x0002
728 #define CSIDL_CONTROLS 0x0003
729 #define CSIDL_PRINTERS 0x0004
730 #define CSIDL_PERSONAL 0x0005
731 #define CSIDL_FAVORITES 0x0006
732 #define CSIDL_STARTUP 0x0007
733 #define CSIDL_RECENT 0x0008
734 #define CSIDL_SENDTO 0x0009
735 #define CSIDL_BITBUCKET 0x000a
736 #define CSIDL_STARTMENU 0x000b
737 #define CSIDL_MYDOCUMENTS 0x000c
738 #define CSIDL_MYMUSIC 0x000d
739 #define CSIDL_MYVIDEO 0x000e
740 #define CSIDL_DESKTOPDIRECTORY 0x0010
741 #define CSIDL_DRIVES 0x0011
742 #define CSIDL_NETWORK 0x0012
743 #define CSIDL_NETHOOD 0x0013
744 #define CSIDL_FONTS 0x0014
745 #define CSIDL_TEMPLATES 0x0015
746 #define CSIDL_COMMON_STARTMENU 0x0016
747 #define CSIDL_COMMON_PROGRAMS 0X0017
748 #define CSIDL_COMMON_STARTUP 0x0018
749 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
750 #define CSIDL_APPDATA 0x001a
751 #define CSIDL_PRINTHOOD 0x001b
752 #define CSIDL_LOCAL_APPDATA 0x001c
753 #define CSIDL_ALTSTARTUP 0x001d
754 #define CSIDL_COMMON_ALTSTARTUP 0x001e
755 #define CSIDL_COMMON_FAVORITES 0x001f
756 #define CSIDL_INTERNET_CACHE 0x0020
757 #define CSIDL_COOKIES 0x0021
758 #define CSIDL_HISTORY 0x0022
759 #define CSIDL_COMMON_APPDATA 0x0023
760 #define CSIDL_WINDOWS 0x0024
761 #define CSIDL_SYSTEM 0x0025
762 #define CSIDL_PROGRAM_FILES 0x0026
763 #define CSIDL_MYPICTURES 0x0027
764 #define CSIDL_PROFILE 0x0028
765 #define CSIDL_SYSTEMX86 0x0029
766 #define CSIDL_PROGRAM_FILESX86 0x002a
767 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
768 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
769 #define CSIDL_COMMON_TEMPLATES 0x002d
770 #define CSIDL_COMMON_DOCUMENTS 0x002e
771 #define CSIDL_COMMON_ADMINTOOLS 0x002f
772 #define CSIDL_ADMINTOOLS 0x0030
773 #define CSIDL_CONNECTIONS 0x0031
774 #define CSIDL_COMMON_MUSIC 0x0035
775 #define CSIDL_COMMON_PICTURES 0x0036
776 #define CSIDL_COMMON_VIDEO 0x0037
777 #define CSIDL_RESOURCES 0x0038
778 #define CSIDL_RESOURCES_LOCALIZED 0x0039
779 #define CSIDL_COMMON_OEM_LINKS 0x003a
780 #define CSIDL_CDBURN_AREA 0x003b
781 #define CSIDL_COMPUTERSNEARME 0x003d
782 #define CSIDL_PROFILES 0x003e
783 #define CSIDL_FOLDER_MASK 0x00ff
784 #define CSIDL_FLAG_PER_USER_INIT 0x0800
785 #define CSIDL_FLAG_NO_ALIAS 0x1000
786 #define CSIDL_FLAG_DONT_VERIFY 0x4000
787 #define CSIDL_FLAG_CREATE 0x8000
789 #define CSIDL_FLAG_MASK 0xff00
791 /****************************************************************************
792 * SHGetDesktopFolder API
794 DWORD WINAPI SHGetDesktopFolder(IShellFolder * *);
796 /****************************************************************************
799 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
801 /****************************************************************************
802 * SHDefExtractIcon API
804 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
805 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
806 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
807 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
808 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
811 * DROPFILES for CF_HDROP and CF_PRINTERS
813 typedef struct _DROPFILES
819 } DROPFILES, *LPDROPFILES;
822 * Properties of a file in the clipboard
824 typedef struct _FILEDESCRIPTORA {
829 DWORD dwFileAttributes;
830 FILETIME ftCreationTime;
831 FILETIME ftLastAccessTime;
832 FILETIME ftLastWriteTime;
835 CHAR cFileName[MAX_PATH];
836 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
838 typedef struct _FILEDESCRIPTORW {
843 DWORD dwFileAttributes;
844 FILETIME ftCreationTime;
845 FILETIME ftLastAccessTime;
846 FILETIME ftLastWriteTime;
849 WCHAR cFileName[MAX_PATH];
850 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
852 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
853 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
856 * CF_FILEGROUPDESCRIPTOR clipboard format
858 typedef struct _FILEGROUPDESCRIPTORA {
860 FILEDESCRIPTORA fgd[1];
861 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
863 typedef struct _FILEGROUPDESCRIPTORW {
865 FILEDESCRIPTORW fgd[1];
866 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
868 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
869 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
871 /****************************************************************************
878 BOOL fFullPathTitle:1;
879 BOOL fSaveLocalView:1;
881 BOOL fSimpleDefault:1;
882 BOOL fDontShowDescBar:1;
883 BOOL fNewWindowMode:1;
884 BOOL fShowCompColor:1;
885 BOOL fDontPrettyNames:1;
886 BOOL fAdminsCreateCommonGroups:1;
888 UINT fMenuEnumFilter;
889 } CABINETSTATE, *LPCABINETSTATE;
891 #define CABINETSTATE_VERSION 2
893 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
894 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
896 /****************************************************************************
897 * Path Manipulation Routines
899 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
903 /****************************************************************************
904 * Drag And Drop Routines
907 /* DAD_AutoScroll sample structure */
914 POINT pts[NUM_POINTS];
915 DWORD dwTimes[NUM_POINTS];
918 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
919 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
920 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
921 BOOL WINAPI DAD_DragMove(POINT);
922 BOOL WINAPI DAD_DragLeave(void);
923 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
924 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
926 /*****************************************************************************
927 * IFileSystemBindData interface
929 #ifndef __IFileSystemBindData_FWD_DEFINED__
930 #define __IFileSystemBindData_FWD_DEFINED__
931 typedef struct IFileSystemBindData IFileSystemBindData;
934 typedef IFileSystemBindData *LPFILESYSTEMBINDDATA;
936 #ifndef __IFileSystemBindData_INTERFACE_DEFINED__
937 #define __IFileSystemBindData_INTERFACE_DEFINED__
939 DEFINE_GUID(IID_IFileSystemBindData, 0x01e18d10, 0x4d8b, 0x11d2, 0x85,0x5d, 0x00,0x60,0x08,0x05,0x93,0x67);
940 #if defined(__cplusplus) && !defined(CINTERFACE)
941 struct IFileSystemBindData : public IUnknown
943 virtual HRESULT STDMETHODCALLTYPE GetFindData(
944 WIN32_FIND_DATAW* pfd) = 0;
946 virtual HRESULT STDMETHODCALLTYPE SetFindData(
947 const WIN32_FIND_DATAW* pfd) = 0;
951 typedef struct IFileSystemBindDataVtbl IFileSystemBindDataVtbl;
952 struct IFileSystemBindData {
953 const IFileSystemBindDataVtbl* lpVtbl;
955 struct IFileSystemBindDataVtbl {
956 ICOM_MSVTABLE_COMPAT_FIELDS
958 /*** IUnknown methods ***/
959 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
960 IFileSystemBindData* This,
964 ULONG (STDMETHODCALLTYPE *AddRef)(
965 IFileSystemBindData* This);
967 ULONG (STDMETHODCALLTYPE *Release)(
968 IFileSystemBindData* This);
970 /*** IFileSystemBindData methods ***/
971 HRESULT (STDMETHODCALLTYPE *GetFindData)(
972 IFileSystemBindData* This,
973 WIN32_FIND_DATAW* pfd);
975 HRESULT (STDMETHODCALLTYPE *SetFindData)(
976 IFileSystemBindData* This,
977 const WIN32_FIND_DATAW* pfd);
981 /*** IUnknown methods ***/
982 #define IFileSystemBindData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
983 #define IFileSystemBindData_AddRef(p) (p)->lpVtbl->AddRef(p)
984 #define IFileSystemBindData_Release(p) (p)->lpVtbl->Release(p)
985 /*** IFileSystemBindData methods ***/
986 #define IFileSystemBindData_GetFindData(p,a) (p)->lpVtbl->GetFindData(p,a)
987 #define IFileSystemBindData_SetFindData(p,a) (p)->lpVtbl->SetFindData(p,a)
991 #define IFileSystemBindData_METHODS \
992 ICOM_MSVTABLE_COMPAT_FIELDS \
993 /*** IUnknown methods ***/ \
994 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
995 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
996 STDMETHOD_(ULONG,Release)(THIS) PURE; \
997 /*** IFileSystemBindData methods ***/ \
998 STDMETHOD_(HRESULT,GetFindData)(THIS_ WIN32_FIND_DATAW* pfd) PURE; \
999 STDMETHOD_(HRESULT,SetFindData)(THIS_ const WIN32_FIND_DATAW* pfd) PURE;
1001 #endif /* __IFileSystemBindData_INTERFACE_DEFINED__ */
1003 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1004 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1005 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1006 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1007 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1008 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1009 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1010 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1011 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1012 void WINAPI ILFree(LPITEMIDLIST);
1013 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1014 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1015 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1016 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1017 BOOL WINAPI ILRemoveLastID(LPCITEMIDLIST);
1021 #endif /* defined(__cplusplus) */
1023 #endif /* __WINE_SHLOBJ_H */