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) */
31 /* Except for specific structs, this header is byte packed */
37 LPVOID WINAPI
SHAlloc(ULONG
);
38 HRESULT WINAPI
SHCoCreateInstance(LPCWSTR
,const CLSID
*,IUnknown
*,REFIID
,LPVOID
*);
39 DWORD WINAPI
SHCLSIDFromStringA(LPCSTR
,CLSID
*);
40 DWORD WINAPI
SHCLSIDFromStringW(LPCWSTR
,CLSID
*);
41 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
42 HRESULT WINAPI
SHCreateStdEnumFmtEtc(DWORD
,const FORMATETC
*,IEnumFORMATETC
**);
43 BOOL WINAPI
SHFindFiles(LPCITEMIDLIST
,LPCITEMIDLIST
);
44 void WINAPI
SHFree(LPVOID
);
45 BOOL WINAPI
GetFileNameFromBrowse(HWND
,LPSTR
,DWORD
,LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
46 BOOL WINAPI
SHGetPathFromIDListA(LPCITEMIDLIST
,LPSTR
);
47 BOOL WINAPI
SHGetPathFromIDListW(LPCITEMIDLIST
,LPWSTR
);
48 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
49 HRESULT WINAPI
SHILCreateFromPath(LPCWSTR
,LPITEMIDLIST
*,DWORD
*);
50 HRESULT WINAPI
SHLoadOLE(LPARAM
);
51 LPITEMIDLIST WINAPI
SHSimpleIDListFromPath(LPCWSTR
);
52 int WINAPI
SHMapPIDLToSystemImageListIndex(IShellFolder
*,LPCITEMIDLIST
,int*);
54 int WINAPI
RestartDialog(HWND
,LPCWSTR
,DWORD
);
55 int WINAPI
RestartDialogEx(HWND
,LPCWSTR
,DWORD
,DWORD
);
58 /* SHObjectProperties flags */
59 #define SHOP_PRINTERNAME 0x01
60 #define SHOP_FILEPATH 0x02
61 #define SHOP_VOLUMEGUID 0x04
63 BOOL WINAPI
SHObjectProperties(HWND
,UINT
,LPCWSTR
,LPCWSTR
);
65 #define PCS_FATAL 0x80000000
66 #define PCS_REPLACEDCHAR 0x00000001
67 #define PCS_REMOVEDCHAR 0x00000002
68 #define PCS_TRUNCATED 0x00000004
69 #define PCS_PATHTOOLONG 0x00000008
71 int WINAPI
PathCleanupSpec(LPCWSTR pszDir
, LPWSTR pszSpec
);
73 /*****************************************************************************
74 * Predeclare interfaces
76 typedef struct IShellIcon IShellIcon
, *LPSHELLICON
;
79 /*****************************************************************************
80 * IContextMenu interface
84 /* DATAOBJECT_InitShellIDList*/
85 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
87 extern UINT cfShellIDList
;
94 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
95 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
97 /* DATAOBJECT_InitFileGroupDesc */
98 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
99 extern UINT cfFileGroupDesc
;
101 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
103 /* DATAOBJECT_InitFileContents*/
104 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
105 extern UINT cfFileContents
;
107 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
108 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
109 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
110 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
111 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
112 #define CFSTR_SHELLURL "UniformResourceLocator"
113 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
114 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
115 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
116 #define CFSTR_INDRAGLOOP "InShellDragLoop"
118 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
121 /************************************************************************
122 * IShellView interface
125 typedef GUID SHELLVIEWID
;
126 #define SV_CLASS_NAME ("SHELLDLL_DefView")
128 #define FCIDM_SHVIEWFIRST 0x0000
130 #define FCIDM_SHVIEW_ARRANGE 0x7001
131 #define FCIDM_SHVIEW_DELETE 0x7011
132 #define FCIDM_SHVIEW_PROPERTIES 0x7013
133 #define FCIDM_SHVIEW_CUT 0x7018
134 #define FCIDM_SHVIEW_COPY 0x7019
135 #define FCIDM_SHVIEW_INSERT 0x701A
136 #define FCIDM_SHVIEW_UNDO 0x701B
137 #define FCIDM_SHVIEW_INSERTLINK 0x701C
138 #define FCIDM_SHVIEW_SELECTALL 0x7021
139 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
141 #define FCIDM_SHVIEW_BIGICON 0x7029
142 #define FCIDM_SHVIEW_SMALLICON 0x702A
143 #define FCIDM_SHVIEW_LISTVIEW 0x702B
144 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
145 /* 0x7030-0x703f are used by the shellbrowser */
146 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
147 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
149 #define FCIDM_SHVIEW_HELP 0x7041
150 #define FCIDM_SHVIEW_RENAME 0x7050
151 #define FCIDM_SHVIEW_CREATELINK 0x7051
152 #define FCIDM_SHVIEW_NEWLINK 0x7052
153 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
155 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
156 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
157 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
159 #define FCIDM_SHVIEWLAST 0x7fff
160 #define FCIDM_BROWSERFIRST 0xA000
161 /* undocumented toolbar items from stddlg's*/
162 #define FCIDM_TB_UPFOLDER 0xA001
163 #define FCIDM_TB_NEWFOLDER 0xA002
164 #define FCIDM_TB_SMALLICON 0xA003
165 #define FCIDM_TB_REPORTVIEW 0xA004
166 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
168 #define FCIDM_BROWSERLAST 0xbf00
169 #define FCIDM_GLOBALFIRST 0x8000
170 #define FCIDM_GLOBALLAST 0x9fff
173 * Global submenu IDs and separator IDs
175 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
176 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
177 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
178 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
179 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
180 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
181 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
182 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
183 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
184 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
186 /* control IDs known to the view */
187 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
188 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
191 /****************************************************************************
192 * IShellIcon interface
195 #define INTERFACE IShellIcon
196 DECLARE_INTERFACE_(IShellIcon
,IUnknown
)
198 /*** IUnknown methods ***/
199 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
200 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
201 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
202 /*** IShellIcon methods ***/
203 STDMETHOD(GetIconOf
)(THIS_ LPCITEMIDLIST pidl
, UINT flags
, LPINT lpIconIndex
) PURE
;
207 #if !defined(__cplusplus) || defined(CINTERFACE)
208 /*** IUnknown methods ***/
209 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
210 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
211 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
212 /*** IShellIcon methods ***/
213 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
216 /****************************************************************************
217 * SHAddToRecentDocs API
219 #define SHARD_PIDL 0x00000001L
220 #define SHARD_PATHA 0x00000002L
221 #define SHARD_PATHW 0x00000003L
222 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
224 void WINAPI
SHAddToRecentDocs(UINT uFlags
, LPCVOID pv
);
226 /****************************************************************************
227 * SHBrowseForFolder API
229 typedef INT (CALLBACK
*BFFCALLBACK
)(HWND hwnd
, UINT uMsg
, LPARAM lParam
, LPARAM lpData
);
231 #include <pshpack8.h>
233 typedef struct tagBROWSEINFOA
{
235 LPCITEMIDLIST pidlRoot
;
236 LPSTR pszDisplayName
;
242 } BROWSEINFOA
, *PBROWSEINFOA
, *LPBROWSEINFOA
;
244 typedef struct tagBROWSEINFOW
{
246 LPCITEMIDLIST pidlRoot
;
247 LPWSTR pszDisplayName
;
253 } BROWSEINFOW
, *PBROWSEINFOW
, *LPBROWSEINFOW
;
255 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
256 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
257 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
261 /* Browsing for directory. */
262 #define BIF_RETURNONLYFSDIRS 0x0001
263 #define BIF_DONTGOBELOWDOMAIN 0x0002
264 #define BIF_STATUSTEXT 0x0004
265 #define BIF_RETURNFSANCESTORS 0x0008
266 #define BIF_EDITBOX 0x0010
267 #define BIF_VALIDATE 0x0020
268 #define BIF_NEWDIALOGSTYLE 0x0040
270 #define BIF_BROWSEFORCOMPUTER 0x1000
271 #define BIF_BROWSEFORPRINTER 0x2000
272 #define BIF_BROWSEINCLUDEFILES 0x4000
274 /* message from browser */
275 #define BFFM_INITIALIZED 1
276 #define BFFM_SELCHANGED 2
277 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
278 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
280 /* messages to browser */
281 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
282 #define BFFM_ENABLEOK (WM_USER+101)
283 #define BFFM_SETSELECTIONA (WM_USER+102)
284 #define BFFM_SETSELECTIONW (WM_USER+103)
285 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
286 #define BFFM_SETOKTEXT (WM_USER+105)
287 #define BFFM_SETEXPANDED (WM_USER+106)
289 LPITEMIDLIST WINAPI
SHBrowseForFolderA(LPBROWSEINFOA lpbi
);
290 LPITEMIDLIST WINAPI
SHBrowseForFolderW(LPBROWSEINFOW lpbi
);
291 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
292 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
293 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
294 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
296 /**********************************************************************
297 * SHCreateShellFolderViewEx API
300 typedef HRESULT (CALLBACK
*LPFNVIEWCALLBACK
)(
312 IShellView
* psvOuter
;
315 LPFNVIEWCALLBACK pfnCallback
;
319 HRESULT WINAPI
SHCreateShellFolderViewEx(LPCSFV pshfvi
, IShellView
**ppshv
);
321 /* SHCreateShellFolderViewEx callback messages */
322 #define SFVM_MERGEMENU 1
323 #define SFVM_INVOKECOMMAND 2
324 #define SFVM_GETHELPTEXT 3
325 #define SFVM_GETTOOLTIPTEXT 4
326 #define SFVM_GETBUTTONINFO 5
327 #define SFVM_GETBUTTONS 6
328 #define SFVM_INITMENUPOPUP 7
329 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
330 #define SFVM_DRAWMENUITEM 9 /* undocumented */
331 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
332 #define SFVM_EXITMENULOOP 11 /* undocumented */
333 #define SFVM_VIEWRELEASE 12 /* undocumented */
334 #define SFVM_GETNAMELENGTH 13 /* undocumented */
335 #define SFVM_FSNOTIFY 14
336 #define SFVM_WINDOWCREATED 15
337 #define SFVM_WINDOWCLOSING 16 /* undocumented */
338 #define SFVM_LISTREFRESHED 17 /* undocumented */
339 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
340 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
341 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
342 #define SFVM_GETDETAILSOF 23
343 #define SFVM_COLUMNCLICK 24
344 #define SFVM_QUERYFSNOTIFY 25
345 #define SFVM_DEFITEMCOUNT 26
346 #define SFVM_DEFVIEWMODE 27
347 #define SFVM_UNMERGEFROMMENU 28
348 #define SFVM_ADDINGOBJECT 29 /* undocumented */
349 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
350 #define SFVM_UPDATESTATUSBAR 31
351 #define SFVM_BACKGROUNDENUM 32
352 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
353 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
354 #define SFVM_CANSELECTALL 35 /* undocumented */
355 #define SFVM_DIDDRAGDROP 36
356 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
357 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
358 #define SFVM_SETISFV 39
359 #define SFVM_GETEXTVIEWS 40 /* undocumented */
360 #define SFVM_THISIDLIST 41
361 #define SFVM_ADDPROPERTYPAGES 47
362 #define SFVM_BACKGROUNDENUMDONE 48
363 #define SFVM_GETNOTIFY 49
364 #define SFVM_GETSORTDEFAULTS 53
366 #define SFVM_GETZONE 58
367 #define SFVM_GETPANE 59
368 #define SFVM_GETHELPTOPIC 63
369 #define SFVM_GETANIMATION 68
370 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
371 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
372 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
373 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
374 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
375 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
376 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
377 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
379 /* Types and definitions for the SFM_* parameters */
380 #include <pshpack8.h>
382 #define QCMINFO_PLACE_BEFORE 0
383 #define QCMINFO_PLACE_AFTER 1
384 typedef struct _QCMINFO_IDMAP_PLACEMENT
388 } QCMINFO_IDMAP_PLACEMENT
;
390 typedef struct _QCMINFO_IDMAP
393 QCMINFO_IDMAP_PLACEMENT pIdList
[1];
396 typedef struct _QCMINFO
402 QCMINFO_IDMAP
const* pIdMap
;
403 } QCMINFO
, *LPQCMINFO
;
405 #define TBIF_DEFAULT 0x00000000
406 #define TBIF_APPEND 0x00000000
407 #define TBIF_PREPEND 0x00000001
408 #define TBIF_REPLACE 0x00000002
409 #define TBIF_INTERNETBAR 0x00010000
410 #define TBIF_STANDARDTOOLBAR 0x00020000
411 #define TBIF_NOTOOLBAR 0x00030000
413 typedef struct _TBINFO
421 /****************************************************************************
422 * SHShellFolderView_Message API
425 LRESULT WINAPI
SHShellFolderView_Message(
430 /* SHShellFolderView_Message messages */
431 #define SFVM_REARRANGE 0x0001
432 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
433 #define SFVM_ADDOBJECT 0x0003
434 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
435 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
436 #define SFVM_REMOVEOBJECT 0x0006
437 #define SFVM_UPDATEOBJECT 0x0007
438 #define SFVM_SETREDRAW 0x0008 /* undocumented */
439 #define SFVM_GETSELECTEDOBJECTS 0x0009
440 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
441 #define SFVM_MOVEICONS 0x000B /* undocumented */
442 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
443 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
444 #define SFVM_SETITEMPOS 0x000E
445 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
446 #define SFVM_SETCLIPBOARD 0x0010
447 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
448 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
449 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
450 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
451 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
452 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
453 #define SFVM_SETPOINTS 0x0017
455 /****************************************************************************
456 * SHGetDataFromIDList API
458 #define SHGDFIL_FINDDATA 1
459 #define SHGDFIL_NETRESOURCE 2
460 #define SHGDFIL_DESCRIPTIONID 3
462 #define SHDID_ROOT_REGITEM 1
463 #define SHDID_FS_FILE 2
464 #define SHDID_FS_DIRECTORY 3
465 #define SHDID_FS_OTHER 4
466 #define SHDID_COMPUTER_DRIVE35 5
467 #define SHDID_COMPUTER_DRIVE525 6
468 #define SHDID_COMPUTER_REMOVABLE 7
469 #define SHDID_COMPUTER_FIXED 8
470 #define SHDID_COMPUTER_NETDRIVE 9
471 #define SHDID_COMPUTER_CDROM 10
472 #define SHDID_COMPUTER_RAMDISK 11
473 #define SHDID_COMPUTER_OTHER 12
474 #define SHDID_NET_DOMAIN 13
475 #define SHDID_NET_SERVER 14
476 #define SHDID_NET_SHARE 15
477 #define SHDID_NET_RESTOFNET 16
478 #define SHDID_NET_OTHER 17
479 #define SHDID_COMPUTER_IMAGING 18
480 #define SHDID_COMPUTER_AUDIO 19
481 #define SHDID_COMPUTER_SHAREDDOCS 20
483 #include <pshpack8.h>
485 typedef struct _SHDESCRIPTIONID
486 { DWORD dwDescriptionId
;
488 } SHDESCRIPTIONID
, *LPSHDESCRIPTIONID
;
492 HRESULT WINAPI
SHGetDataFromIDListA(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
493 HRESULT WINAPI
SHGetDataFromIDListW(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
494 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
496 BOOL WINAPI
SHGetSpecialFolderPathA (HWND hwndOwner
, LPSTR szPath
, int nFolder
, BOOL bCreate
);
497 BOOL WINAPI
SHGetSpecialFolderPathW (HWND hwndOwner
, LPWSTR szPath
, int nFolder
, BOOL bCreate
);
498 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
500 HRESULT WINAPI
SHGetMalloc(LPMALLOC
*lpmal
) ;
502 /**********************************************************************
503 * SHGetSetSettings ()
508 BOOL fShowAllObjects
: 1;
509 BOOL fShowExtensions
: 1;
510 BOOL fNoConfirmRecycle
: 1;
512 BOOL fShowSysFiles
: 1;
513 BOOL fShowCompColor
: 1;
514 BOOL fDoubleClickInWebView
: 1;
515 BOOL fDesktopHTML
: 1;
516 BOOL fWin95Classic
: 1;
517 BOOL fDontPrettyPath
: 1;
518 BOOL fShowAttribCol
: 1;
519 BOOL fMapNetDrvBtn
: 1;
520 BOOL fShowInfoTip
: 1;
524 BOOL fShowSuperHidden
: 1;
525 BOOL fNoNetCrawling
: 1;
527 DWORD
:0; /* Required for proper binary layout with gcc */
535 BOOL fStartPanelOn
: 1;
536 BOOL fShowStartPage
: 1;
537 UINT fSpareFlags
: 13;
538 UINT
:0; /* Required for proper binary layout with gcc */
539 } SHELLSTATE
, *LPSHELLSTATE
;
541 /**********************************************************************
545 { BOOL fShowAllObjects
: 1;
546 BOOL fShowExtensions
: 1;
547 BOOL fNoConfirmRecycle
: 1;
548 BOOL fShowSysFiles
: 1;
550 BOOL fShowCompColor
: 1;
551 BOOL fDoubleClickInWebView
: 1;
552 BOOL fDesktopHTML
: 1;
553 BOOL fWin95Classic
: 1;
555 BOOL fDontPrettyPath
: 1;
556 BOOL fShowAttribCol
: 1;
557 BOOL fMapNetDrvBtn
: 1;
558 BOOL fShowInfoTip
: 1;
562 UINT
:0; /* Required for proper binary layout with gcc */
563 } SHELLFLAGSTATE
, * LPSHELLFLAGSTATE
;
565 VOID WINAPI
SHGetSettings(LPSHELLFLAGSTATE lpsfs
, DWORD dwMask
);
567 #define SSF_SHOWALLOBJECTS 0x0001
568 #define SSF_SHOWEXTENSIONS 0x0002
569 #define SSF_SHOWCOMPCOLOR 0x0008
570 #define SSF_SHOWSYSFILES 0x0020
571 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
572 #define SSF_SHOWATTRIBCOL 0x0100
573 #define SSF_DESKTOPHTML 0x0200
574 #define SSF_WIN95CLASSIC 0x0400
575 #define SSF_DONTPRETTYPATH 0x0800
576 #define SSF_SHOWINFOTIP 0x2000
577 #define SSF_MAPNETDRVBUTTON 0x1000
578 #define SSF_NOCONFIRMRECYCLE 0x8000
579 #define SSF_HIDEICONS 0x4000
581 /****************************************************************************
584 typedef enum RESTRICTIONS
586 REST_NONE
= 0x00000000,
587 REST_NORUN
= 0x00000001,
588 REST_NOCLOSE
= 0x00000002,
589 REST_NOSAVESET
= 0x00000004,
590 REST_NOFILEMENU
= 0x00000008,
591 REST_NOSETFOLDERS
= 0x00000010,
592 REST_NOSETTASKBAR
= 0x00000020,
593 REST_NODESKTOP
= 0x00000040,
594 REST_NOFIND
= 0x00000080,
595 REST_NODRIVES
= 0x00000100,
596 REST_NODRIVEAUTORUN
= 0x00000200,
597 REST_NODRIVETYPEAUTORUN
= 0x00000400,
598 REST_NONETHOOD
= 0x00000800,
599 REST_STARTBANNER
= 0x00001000,
600 REST_RESTRICTRUN
= 0x00002000,
601 REST_NOPRINTERTABS
= 0x00004000,
602 REST_NOPRINTERDELETE
= 0x00008000,
603 REST_NOPRINTERADD
= 0x00010000,
604 REST_NOSTARTMENUSUBFOLDERS
= 0x00020000,
605 REST_MYDOCSONNET
= 0x00040000,
606 REST_NOEXITTODOS
= 0x00080000,
607 REST_ENFORCESHELLEXTSECURITY
= 0x00100000,
608 REST_LINKRESOLVEIGNORELINKINFO
= 0x00200000,
609 REST_NOCOMMONGROUPS
= 0x00400000,
610 REST_SEPARATEDESKTOPPROCESS
= 0x00800000,
611 REST_NOWEB
= 0x01000000,
612 REST_NOTRAYCONTEXTMENU
= 0x02000000,
613 REST_NOVIEWCONTEXTMENU
= 0x04000000,
614 REST_NONETCONNECTDISCONNECT
= 0x08000000,
615 REST_STARTMENULOGOFF
= 0x10000000,
616 REST_NOSETTINGSASSIST
= 0x20000000,
617 REST_NOINTERNETICON
= 0x40000001,
618 REST_NORECENTDOCSHISTORY
,
619 REST_NORECENTDOCSMENU
,
620 REST_NOACTIVEDESKTOP
,
621 REST_NOACTIVEDESKTOPCHANGES
,
622 REST_NOFAVORITESMENU
,
623 REST_CLEARRECENTDOCSONEXIT
,
625 REST_NOCUSTOMIZEWEBVIEW
,
627 REST_NOHTMLWALLPAPER
= 0x40000010,
628 REST_NOCHANGINGWALLPAPER
,
632 REST_NOCLOSEDESKCOMP
,
633 REST_NOCLOSE_DRAGDROPBAND
,
636 REST_NORESOLVESEARCH
,
638 REST_FORCECOPYACLWITHFILE
,
639 REST_NOLOGO3CHANNELNOTIFY
,
640 REST_NOFORGETSOFTWAREUPDATE
,
641 REST_NOSETACTIVEDESKTOP
,
642 REST_NOUPDATEWINDOWS
,
643 REST_NOCHANGESTARMENU
, /* 0x40000020 */
644 REST_NOFOLDEROPTIONS
,
645 REST_HASFINDCOMPUTERS
,
647 REST_RUNDLGMEMCHECKBOX
,
648 REST_ARP_ShowPostSetup
,
653 REST_ARP_NOREMOVEPAGE
,
655 REST_ARP_NOWINSETUPPAGE
,
657 REST_NOCHANGEMAPPEDDRIVELABEL
,
658 REST_NOCHANGEMAPPEDDRIVECOMMENT
,
659 REST_MaxRecentDocs
, /* 0x40000030 */
660 REST_NONETWORKCONNECTIONS
,
661 REST_FORCESTARTMENULOGOFF
,
663 REST_NOCUSTOMIZETHISFOLDER
,
666 REST_ALLOWFRENCHENCRYPTION
, /* not documented */
668 REST_DONTSHOWSUPERHIDDEN
,
669 REST_NOSHELLSEARCHBUTTON
,
671 REST_NORUNASINSTALLPROMPT
,
672 REST_PROMPTRUNASINSTALLNETPATH
,
673 REST_NOMANAGEMYCOMPUTERVERB
,
674 REST_NORECENTDOCSNETHOOD
,
676 REST_NOWELCOMESCREEN
,
677 REST_RESTRICTCPL
, /* 0x40000040 */
682 REST_NOENCRYPTONMOVE
,
683 REST_NOLOCALMACHINERUN
,
684 REST_NOCURRENTUSERRUN
,
685 REST_NOLOCALMACHINERUNONCE
,
686 REST_NOCURRENTUSERRUNONCE
,
687 REST_FORCEACTIVEDESKTOPON
,
688 REST_NOCOMPUTERSNEARME
,
691 REST_NOSHAREDDOCUMENTS
,
693 REST_NOSMMYPICS
, /* 0x40000050 */
694 REST_ALLOWBITBUCKDRIVES
,
695 REST_NONLEGACYSHELLMODE
,
696 REST_NOCONTROLPANELBARRICADE
,
698 REST_NOAUTOTRAYNOTIFY
,
704 REST_NODISPLAYAPPEARANCEPAGE
,
706 REST_NOVISUALSTYLECHOICE
,
709 REST_SETVISUALSTYLE
, /* 0x40000060 */
710 REST_STARTRUNNOHOMEPATH
,
711 REST_NOUSERNAMEINSTARTPANEL
,
712 REST_NOMYCOMPUTERICON
,
713 REST_NOSMNETWORKPLACES
,
717 REST_NOSMMOREPROGRAMS
,
718 REST_NOSMMFUPROGRAMS
,
719 REST_NOTRAYITEMSDISPLAY
,
720 REST_NOTOOLBARSONTASKBAR
,
724 REST_NOSMCONFIGUREPROGRAMS
= 0x4000006F,
725 REST_HIDECLOCK
, /* 0x40000070 */
726 REST_NOLOWDISKSPACECHECKS
,
727 REST_NOENTIRENETWORK
,
728 REST_NODESKTOPCLEANUP
,
729 REST_BITBUCKNUKEONDELETE
,
730 REST_BITBUCKCONFIRMDELETE
,
732 REST_NODISPBACKGROUND
,
733 REST_NODISPSCREENSAVEPG
,
734 REST_NODISPSETTINGSPG
,
735 REST_NODISPSCREENSAVEPREVIEW
,
738 REST_NOTHUMBNAILCACHE
,
739 REST_NOSTRCMPLOGICAL
,
740 REST_NOPUBLISHWIZARD
,
741 REST_NOONLINEPRINTSWIZARD
, /* 0x40000080 */
743 REST_ALLOWUNHASHEDWEBVIEW
,
744 REST_ALLOWLEGACYWEBVIEW
,
745 REST_REVERTWEBVIEWSECURITY
,
747 REST_INHERITCONSOLEHANDLES
= 0x40000086,
749 REST_NODISCONNECT
= 0x41000001,
751 REST_NOFILEASSOCIATE
, /* 0x41000003 */
754 DWORD WINAPI
SHRestricted(RESTRICTIONS rest
);
756 /****************************************************************************
759 typedef struct _SHChangeNotifyEntry
763 } SHChangeNotifyEntry
;
765 #define SHCNE_RENAMEITEM 0x00000001
766 #define SHCNE_CREATE 0x00000002
767 #define SHCNE_DELETE 0x00000004
768 #define SHCNE_MKDIR 0x00000008
769 #define SHCNE_RMDIR 0x00000010
770 #define SHCNE_MEDIAINSERTED 0x00000020
771 #define SHCNE_MEDIAREMOVED 0x00000040
772 #define SHCNE_DRIVEREMOVED 0x00000080
773 #define SHCNE_DRIVEADD 0x00000100
774 #define SHCNE_NETSHARE 0x00000200
775 #define SHCNE_NETUNSHARE 0x00000400
776 #define SHCNE_ATTRIBUTES 0x00000800
777 #define SHCNE_UPDATEDIR 0x00001000
778 #define SHCNE_UPDATEITEM 0x00002000
779 #define SHCNE_SERVERDISCONNECT 0x00004000
780 #define SHCNE_UPDATEIMAGE 0x00008000
781 #define SHCNE_DRIVEADDGUI 0x00010000
782 #define SHCNE_RENAMEFOLDER 0x00020000
783 #define SHCNE_FREESPACE 0x00040000
785 #define SHCNE_EXTENDED_EVENT 0x04000000
786 #define SHCNE_ASSOCCHANGED 0x08000000
787 #define SHCNE_DISKEVENTS 0x0002381F
788 #define SHCNE_GLOBALEVENTS 0x0C0581E0
789 #define SHCNE_ALLEVENTS 0x7FFFFFFF
790 #define SHCNE_INTERRUPT 0x80000000
792 #define SHCNEE_ORDERCHANGED 0x0002L
793 #define SHCNEE_MSI_CHANGE 0x0004L
794 #define SHCNEE_MSI_UNINSTALL 0x0005L
796 #define SHCNF_IDLIST 0x0000
797 #define SHCNF_PATHA 0x0001
798 #define SHCNF_PRINTERA 0x0002
799 #define SHCNF_DWORD 0x0003
800 #define SHCNF_PATHW 0x0005
801 #define SHCNF_PRINTERW 0x0006
802 #define SHCNF_TYPE 0x00FF
803 #define SHCNF_FLUSH 0x1000
804 #define SHCNF_FLUSHNOWAIT 0x2000
806 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
807 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
809 void WINAPI
SHChangeNotify(LONG wEventId
, UINT uFlags
, LPCVOID dwItem1
, LPCVOID dwItem2
);
814 typedef struct IShellChangeNotify IShellChangeNotify
, *LPSHELLCHANGENOTIFY
;
816 #define INTERFACE IShellChangeNotify
817 DECLARE_INTERFACE_(IShellChangeNotify
,IUnknown
)
819 /*** IUnknown methods ***/
820 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
821 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
822 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
823 /*** IShellChangeNotify methods ***/
824 STDMETHOD(OnChange
)(THIS_ LONG lEvent
, LPCITEMIDLIST pidl1
, LPCITEMIDLIST pidl2
) PURE
;
828 #if !defined(__cplusplus) || defined(CINTERFACE)
829 /*** IUnknown methods ***/
830 #define IShellChangeNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
831 #define IShellChangeNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
832 #define IShellChangeNotify_Release(p) (p)->lpVtbl->Release(p)
833 /*** IShellChangeNotify methods ***/
834 #define IShellChangeNotify_OnChange(p,a,b,c) (p)->lpVtbl->OnChange(p,a,b,c)
837 typedef struct _SHChangeDWORDAsIDList
{
842 } SHChangeDWORDAsIDList
, *LPSHChangeDWORDAsIDList
;
844 typedef struct _SHChangeProductKeyAsIDList
{
846 WCHAR wszProductKey
[39];
848 } SHChangeProductKeyAsIDList
, *LPSHChangeProductKeyAsIDList
;
850 ULONG WINAPI
SHChangeNotifyRegister(HWND hwnd
, int fSources
, LONG fEvents
, UINT wMsg
,
851 int cEntries
, SHChangeNotifyEntry
*pshcne
);
852 BOOL WINAPI
SHChangeNotifyDeregister(ULONG ulID
);
853 HANDLE WINAPI
SHChangeNotification_Lock(HANDLE hChangeNotification
, DWORD dwProcessId
,
854 LPITEMIDLIST
**pppidl
, LONG
*plEvent
);
855 BOOL WINAPI
SHChangeNotification_Unlock(HANDLE hLock
);
857 HRESULT WINAPI
SHGetRealIDL(IShellFolder
*psf
, LPCITEMIDLIST pidlSimple
, LPITEMIDLIST
* ppidlReal
);
859 /****************************************************************************
860 * SHCreateDirectory API
862 DWORD WINAPI
SHCreateDirectory(HWND
, LPCVOID
);
863 int WINAPI
SHCreateDirectoryExA(HWND
, LPCSTR
, LPSECURITY_ATTRIBUTES
);
864 int WINAPI
SHCreateDirectoryExW(HWND
, LPCWSTR
, LPSECURITY_ATTRIBUTES
);
866 /****************************************************************************
867 * SHGetSpecialFolderLocation API
869 HRESULT WINAPI
SHGetSpecialFolderLocation(HWND hwndOwner
, int nFolder
, LPITEMIDLIST
* ppidl
);
870 HRESULT WINAPI
SHGetFolderLocation(HWND hwndOwner
, int nFolder
, HANDLE hToken
, DWORD dwReserved
, LPITEMIDLIST
*ppidl
);
872 /****************************************************************************
873 * SHGetFolderPath API
876 SHGFP_TYPE_CURRENT
= 0,
877 SHGFP_TYPE_DEFAULT
= 1
880 HRESULT WINAPI
SHGetFolderPathA(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPSTR pszPath
);
881 HRESULT WINAPI
SHGetFolderPathW(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPWSTR pszPath
);
882 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
884 #define CSIDL_DESKTOP 0x0000
885 #define CSIDL_INTERNET 0x0001
886 #define CSIDL_PROGRAMS 0x0002
887 #define CSIDL_CONTROLS 0x0003
888 #define CSIDL_PRINTERS 0x0004
889 #define CSIDL_PERSONAL 0x0005
890 #define CSIDL_FAVORITES 0x0006
891 #define CSIDL_STARTUP 0x0007
892 #define CSIDL_RECENT 0x0008
893 #define CSIDL_SENDTO 0x0009
894 #define CSIDL_BITBUCKET 0x000a
895 #define CSIDL_STARTMENU 0x000b
896 #define CSIDL_MYDOCUMENTS 0x000c
897 #define CSIDL_MYMUSIC 0x000d
898 #define CSIDL_MYVIDEO 0x000e
899 #define CSIDL_DESKTOPDIRECTORY 0x0010
900 #define CSIDL_DRIVES 0x0011
901 #define CSIDL_NETWORK 0x0012
902 #define CSIDL_NETHOOD 0x0013
903 #define CSIDL_FONTS 0x0014
904 #define CSIDL_TEMPLATES 0x0015
905 #define CSIDL_COMMON_STARTMENU 0x0016
906 #define CSIDL_COMMON_PROGRAMS 0X0017
907 #define CSIDL_COMMON_STARTUP 0x0018
908 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
909 #define CSIDL_APPDATA 0x001a
910 #define CSIDL_PRINTHOOD 0x001b
911 #define CSIDL_LOCAL_APPDATA 0x001c
912 #define CSIDL_ALTSTARTUP 0x001d
913 #define CSIDL_COMMON_ALTSTARTUP 0x001e
914 #define CSIDL_COMMON_FAVORITES 0x001f
915 #define CSIDL_INTERNET_CACHE 0x0020
916 #define CSIDL_COOKIES 0x0021
917 #define CSIDL_HISTORY 0x0022
918 #define CSIDL_COMMON_APPDATA 0x0023
919 #define CSIDL_WINDOWS 0x0024
920 #define CSIDL_SYSTEM 0x0025
921 #define CSIDL_PROGRAM_FILES 0x0026
922 #define CSIDL_MYPICTURES 0x0027
923 #define CSIDL_PROFILE 0x0028
924 #define CSIDL_SYSTEMX86 0x0029
925 #define CSIDL_PROGRAM_FILESX86 0x002a
926 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
927 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
928 #define CSIDL_COMMON_TEMPLATES 0x002d
929 #define CSIDL_COMMON_DOCUMENTS 0x002e
930 #define CSIDL_COMMON_ADMINTOOLS 0x002f
931 #define CSIDL_ADMINTOOLS 0x0030
932 #define CSIDL_CONNECTIONS 0x0031
933 #define CSIDL_COMMON_MUSIC 0x0035
934 #define CSIDL_COMMON_PICTURES 0x0036
935 #define CSIDL_COMMON_VIDEO 0x0037
936 #define CSIDL_RESOURCES 0x0038
937 #define CSIDL_RESOURCES_LOCALIZED 0x0039
938 #define CSIDL_COMMON_OEM_LINKS 0x003a
939 #define CSIDL_CDBURN_AREA 0x003b
940 #define CSIDL_COMPUTERSNEARME 0x003d
941 #define CSIDL_PROFILES 0x003e
942 #define CSIDL_FOLDER_MASK 0x00ff
943 #define CSIDL_FLAG_PER_USER_INIT 0x0800
944 #define CSIDL_FLAG_NO_ALIAS 0x1000
945 #define CSIDL_FLAG_DONT_VERIFY 0x4000
946 #define CSIDL_FLAG_CREATE 0x8000
948 #define CSIDL_FLAG_MASK 0xff00
950 /****************************************************************************
951 * SHGetDesktopFolder API
953 HRESULT WINAPI
SHGetDesktopFolder(IShellFolder
* *);
955 /****************************************************************************
958 HRESULT WINAPI
SHBindToParent(LPCITEMIDLIST pidl
, REFIID riid
, LPVOID
*ppv
, LPCITEMIDLIST
*ppidlLast
);
960 /****************************************************************************
961 * SHDefExtractIcon API
963 HRESULT WINAPI
SHDefExtractIconA(LPCSTR pszIconFile
, int iIndex
, UINT uFlags
,
964 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
965 HRESULT WINAPI
SHDefExtractIconW(LPCWSTR pszIconFile
, int iIndex
, UINT uFlags
,
966 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
967 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
970 * DROPFILES for CF_HDROP and CF_PRINTERS
972 typedef struct _DROPFILES
978 } DROPFILES
, *LPDROPFILES
;
981 * Properties of a file in the clipboard
983 typedef struct _FILEDESCRIPTORA
{
988 DWORD dwFileAttributes
;
989 FILETIME ftCreationTime
;
990 FILETIME ftLastAccessTime
;
991 FILETIME ftLastWriteTime
;
994 CHAR cFileName
[MAX_PATH
];
995 } FILEDESCRIPTORA
, *LPFILEDESCRIPTORA
;
997 typedef struct _FILEDESCRIPTORW
{
1002 DWORD dwFileAttributes
;
1003 FILETIME ftCreationTime
;
1004 FILETIME ftLastAccessTime
;
1005 FILETIME ftLastWriteTime
;
1006 DWORD nFileSizeHigh
;
1008 WCHAR cFileName
[MAX_PATH
];
1009 } FILEDESCRIPTORW
, *LPFILEDESCRIPTORW
;
1011 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR
)
1012 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR
)
1015 * CF_FILEGROUPDESCRIPTOR clipboard format
1017 typedef struct _FILEGROUPDESCRIPTORA
{
1019 FILEDESCRIPTORA fgd
[1];
1020 } FILEGROUPDESCRIPTORA
, *LPFILEGROUPDESCRIPTORA
;
1022 typedef struct _FILEGROUPDESCRIPTORW
{
1024 FILEDESCRIPTORW fgd
[1];
1025 } FILEGROUPDESCRIPTORW
, *LPFILEGROUPDESCRIPTORW
;
1027 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR
)
1028 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR
)
1030 /****************************************************************************
1037 BOOL fFullPathTitle
:1;
1038 BOOL fSaveLocalView
:1;
1040 BOOL fSimpleDefault
:1;
1041 BOOL fDontShowDescBar
:1;
1042 BOOL fNewWindowMode
:1;
1043 BOOL fShowCompColor
:1;
1044 BOOL fDontPrettyNames
:1;
1045 BOOL fAdminsCreateCommonGroups
:1;
1046 UINT fUnusedFlags
:7;
1047 UINT
:0; /* Required for proper binary layout with gcc */
1048 UINT fMenuEnumFilter
;
1049 } CABINETSTATE
, *LPCABINETSTATE
;
1051 #define CABINETSTATE_VERSION 2
1053 BOOL WINAPI
ReadCabinetState(CABINETSTATE
*, int);
1054 BOOL WINAPI
WriteCabinetState(CABINETSTATE
*);
1056 /****************************************************************************
1057 * Path Manipulation Routines
1059 VOID WINAPI
PathGetShortPath(LPWSTR pszPath
);
1061 /****************************************************************************
1062 * Drag And Drop Routines
1065 /* DAD_AutoScroll sample structure */
1066 #define NUM_POINTS 3
1072 POINT pts
[NUM_POINTS
];
1073 DWORD dwTimes
[NUM_POINTS
];
1076 BOOL WINAPI
DAD_SetDragImage(HIMAGELIST
,LPPOINT
);
1077 BOOL WINAPI
DAD_DragEnterEx(HWND
,POINT
);
1078 BOOL WINAPI
DAD_DragEnterEx2(HWND
,POINT
,IDataObject
*);
1079 BOOL WINAPI
DAD_DragMove(POINT
);
1080 BOOL WINAPI
DAD_DragLeave(void);
1081 BOOL WINAPI
DAD_AutoScroll(HWND
,AUTO_SCROLL_DATA
*,LPPOINT
);
1082 HRESULT WINAPI
SHDoDragDrop(HWND
,IDataObject
*,IDropSource
*,DWORD
,LPDWORD
);
1084 /*****************************************************************************
1085 * IFileSystemBindData interface
1087 #ifndef __IFileSystemBindData_FWD_DEFINED__
1088 #define __IFileSystemBindData_FWD_DEFINED__
1089 typedef struct IFileSystemBindData IFileSystemBindData
;
1092 #ifndef __IFileSystemBindData_INTERFACE_DEFINED__
1093 #define __IFileSystemBindData_INTERFACE_DEFINED__
1095 DEFINE_GUID(IID_IFileSystemBindData
, 0x01e18d10, 0x4d8b, 0x11d2, 0x85,0x5d, 0x00,0x60,0x08,0x05,0x93,0x67);
1096 #if defined(__cplusplus) && !defined(CINTERFACE)
1097 struct IFileSystemBindData
: public IUnknown
1099 virtual HRESULT STDMETHODCALLTYPE
SetFindData(
1100 const WIN32_FIND_DATAW
* pfd
) = 0;
1102 virtual HRESULT STDMETHODCALLTYPE
GetFindData(
1103 WIN32_FIND_DATAW
* pfd
) = 0;
1107 typedef struct IFileSystemBindDataVtbl IFileSystemBindDataVtbl
;
1108 struct IFileSystemBindData
{
1109 const IFileSystemBindDataVtbl
* lpVtbl
;
1111 struct IFileSystemBindDataVtbl
{
1113 /*** IUnknown methods ***/
1114 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
1115 IFileSystemBindData
* This
,
1119 ULONG (STDMETHODCALLTYPE
*AddRef
)(
1120 IFileSystemBindData
* This
);
1122 ULONG (STDMETHODCALLTYPE
*Release
)(
1123 IFileSystemBindData
* This
);
1125 /*** IFileSystemBindData methods ***/
1126 HRESULT (STDMETHODCALLTYPE
*SetFindData
)(
1127 IFileSystemBindData
* This
,
1128 const WIN32_FIND_DATAW
* pfd
);
1130 HRESULT (STDMETHODCALLTYPE
*GetFindData
)(
1131 IFileSystemBindData
* This
,
1132 WIN32_FIND_DATAW
* pfd
);
1136 /*** IUnknown methods ***/
1137 #define IFileSystemBindData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1138 #define IFileSystemBindData_AddRef(p) (p)->lpVtbl->AddRef(p)
1139 #define IFileSystemBindData_Release(p) (p)->lpVtbl->Release(p)
1140 /*** IFileSystemBindData methods ***/
1141 #define IFileSystemBindData_GetFindData(p,a) (p)->lpVtbl->GetFindData(p,a)
1142 #define IFileSystemBindData_SetFindData(p,a) (p)->lpVtbl->SetFindData(p,a)
1146 #endif /* __IFileSystemBindData_INTERFACE_DEFINED__ */
1148 LPITEMIDLIST WINAPI
ILAppendID(LPITEMIDLIST
,LPCSHITEMID
,BOOL
);
1149 LPITEMIDLIST WINAPI
ILClone(LPCITEMIDLIST
);
1150 LPITEMIDLIST WINAPI
ILCloneFirst(LPCITEMIDLIST
);
1151 LPITEMIDLIST WINAPI
ILCreateFromPathA(LPCSTR
);
1152 LPITEMIDLIST WINAPI
ILCreateFromPathW(LPCWSTR
);
1153 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1154 LPITEMIDLIST WINAPI
ILCombine(LPCITEMIDLIST
,LPCITEMIDLIST
);
1155 LPITEMIDLIST WINAPI
ILFindChild(LPCITEMIDLIST
,LPCITEMIDLIST
);
1156 LPITEMIDLIST WINAPI
ILFindLastID(LPCITEMIDLIST
);
1157 void WINAPI
ILFree(LPITEMIDLIST
);
1158 LPITEMIDLIST WINAPI
ILGetNext(LPCITEMIDLIST
);
1159 UINT WINAPI
ILGetSize(LPCITEMIDLIST
);
1160 BOOL WINAPI
ILIsEqual(LPCITEMIDLIST
,LPCITEMIDLIST
);
1161 BOOL WINAPI
ILIsParent(LPCITEMIDLIST
,LPCITEMIDLIST
,BOOL
);
1162 HRESULT WINAPI
ILLoadFromStream(LPSTREAM
,LPITEMIDLIST
*);
1163 BOOL WINAPI
ILRemoveLastID(LPITEMIDLIST
);
1164 HRESULT WINAPI
ILSaveToStream(LPSTREAM
,LPCITEMIDLIST
);
1167 #include <poppack.h>
1171 #endif /* defined(__cplusplus) */
1173 #endif /* __WINE_SHLOBJ_H */