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 DWORD WINAPI
SHFormatDrive(HWND
,UINT
,UINT
,UINT
);
45 void WINAPI
SHFree(LPVOID
);
46 BOOL WINAPI
GetFileNameFromBrowse(HWND
,LPSTR
,DWORD
,LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
);
47 BOOL WINAPI
SHGetPathFromIDListA(LPCITEMIDLIST
,LPSTR
);
48 BOOL WINAPI
SHGetPathFromIDListW(LPCITEMIDLIST
,LPWSTR
);
49 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
50 INT WINAPI
SHHandleUpdateImage(LPCITEMIDLIST
);
51 HRESULT WINAPI
SHILCreateFromPath(LPCWSTR
,LPITEMIDLIST
*,DWORD
*);
52 HRESULT WINAPI
SHLoadOLE(LPARAM
);
53 LPITEMIDLIST WINAPI
SHSimpleIDListFromPath(LPCWSTR
);
54 int WINAPI
SHMapPIDLToSystemImageListIndex(IShellFolder
*,LPCITEMIDLIST
,int*);
55 HRESULT WINAPI
SHStartNetConnectionDialog(HWND
,LPCSTR
,DWORD
);
56 VOID WINAPI
SHUpdateImageA(LPCSTR
,INT
,UINT
,INT
);
57 VOID WINAPI
SHUpdateImageW(LPCWSTR
,INT
,UINT
,INT
);
58 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
59 int WINAPI
RestartDialog(HWND
,LPCWSTR
,DWORD
);
60 int WINAPI
RestartDialogEx(HWND
,LPCWSTR
,DWORD
,DWORD
);
62 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formatable */
63 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was canceled */
64 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formatable */
66 /* SHObjectProperties flags */
67 #define SHOP_PRINTERNAME 0x01
68 #define SHOP_FILEPATH 0x02
69 #define SHOP_VOLUMEGUID 0x04
71 BOOL WINAPI
SHObjectProperties(HWND
,DWORD
,LPCWSTR
,LPCWSTR
);
73 #define PCS_FATAL 0x80000000
74 #define PCS_REPLACEDCHAR 0x00000001
75 #define PCS_REMOVEDCHAR 0x00000002
76 #define PCS_TRUNCATED 0x00000004
77 #define PCS_PATHTOOLONG 0x00000008
79 int WINAPI
PathCleanupSpec(LPCWSTR pszDir
, LPWSTR pszSpec
);
81 /*****************************************************************************
82 * Predeclare interfaces
84 typedef struct IShellIcon IShellIcon
, *LPSHELLICON
;
87 /*****************************************************************************
88 * IContextMenu interface
92 /* DATAOBJECT_InitShellIDList*/
93 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
95 extern UINT cfShellIDList
;
102 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
103 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
105 /* DATAOBJECT_InitFileGroupDesc */
106 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
107 extern UINT cfFileGroupDesc
;
109 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
111 /* DATAOBJECT_InitFileContents*/
112 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
113 extern UINT cfFileContents
;
115 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
116 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
117 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
118 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
119 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
120 #define CFSTR_SHELLURL "UniformResourceLocator"
121 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
122 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
123 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
124 #define CFSTR_INDRAGLOOP "InShellDragLoop"
126 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
129 /************************************************************************
130 * IShellView interface
133 typedef GUID SHELLVIEWID
;
134 #define SV_CLASS_NAME ("SHELLDLL_DefView")
136 #define FCIDM_SHVIEWFIRST 0x0000
138 #define FCIDM_SHVIEW_ARRANGE 0x7001
139 #define FCIDM_SHVIEW_DELETE 0x7011
140 #define FCIDM_SHVIEW_PROPERTIES 0x7013
141 #define FCIDM_SHVIEW_CUT 0x7018
142 #define FCIDM_SHVIEW_COPY 0x7019
143 #define FCIDM_SHVIEW_INSERT 0x701A
144 #define FCIDM_SHVIEW_UNDO 0x701B
145 #define FCIDM_SHVIEW_INSERTLINK 0x701C
146 #define FCIDM_SHVIEW_SELECTALL 0x7021
147 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
149 #define FCIDM_SHVIEW_BIGICON 0x7029
150 #define FCIDM_SHVIEW_SMALLICON 0x702A
151 #define FCIDM_SHVIEW_LISTVIEW 0x702B
152 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
153 /* 0x7030-0x703f are used by the shellbrowser */
154 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
155 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
157 #define FCIDM_SHVIEW_HELP 0x7041
158 #define FCIDM_SHVIEW_RENAME 0x7050
159 #define FCIDM_SHVIEW_CREATELINK 0x7051
160 #define FCIDM_SHVIEW_NEWLINK 0x7052
161 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
163 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
164 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
165 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
167 #define FCIDM_SHVIEWLAST 0x7fff
168 #define FCIDM_BROWSERFIRST 0xA000
169 /* undocumented toolbar items from stddlg's*/
170 #define FCIDM_TB_UPFOLDER 0xA001
171 #define FCIDM_TB_NEWFOLDER 0xA002
172 #define FCIDM_TB_SMALLICON 0xA003
173 #define FCIDM_TB_REPORTVIEW 0xA004
174 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
176 #define FCIDM_BROWSERLAST 0xbf00
177 #define FCIDM_GLOBALFIRST 0x8000
178 #define FCIDM_GLOBALLAST 0x9fff
181 * Global submenu IDs and separator IDs
183 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
184 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
185 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
186 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
187 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
188 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
189 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
190 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
191 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
192 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
194 /* control IDs known to the view */
195 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
196 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
199 /****************************************************************************
200 * IShellIcon interface
203 #define INTERFACE IShellIcon
204 DECLARE_INTERFACE_(IShellIcon
,IUnknown
)
206 /*** IUnknown methods ***/
207 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
208 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
209 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
210 /*** IShellIcon methods ***/
211 STDMETHOD(GetIconOf
)(THIS_ LPCITEMIDLIST pidl
, UINT flags
, LPINT lpIconIndex
) PURE
;
215 #if !defined(__cplusplus) || defined(CINTERFACE)
216 /*** IUnknown methods ***/
217 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
218 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
219 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
220 /*** IShellIcon methods ***/
221 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
224 /****************************************************************************
225 * SHAddToRecentDocs API
227 #define SHARD_PIDL 0x00000001L
228 #define SHARD_PATHA 0x00000002L
229 #define SHARD_PATHW 0x00000003L
230 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
232 void WINAPI
SHAddToRecentDocs(UINT uFlags
, LPCVOID pv
);
234 /****************************************************************************
235 * SHBrowseForFolder API
237 typedef INT (CALLBACK
*BFFCALLBACK
)(HWND hwnd
, UINT uMsg
, LPARAM lParam
, LPARAM lpData
);
239 #include <pshpack8.h>
241 typedef struct tagBROWSEINFOA
{
243 LPCITEMIDLIST pidlRoot
;
244 LPSTR pszDisplayName
;
250 } BROWSEINFOA
, *PBROWSEINFOA
, *LPBROWSEINFOA
;
252 typedef struct tagBROWSEINFOW
{
254 LPCITEMIDLIST pidlRoot
;
255 LPWSTR pszDisplayName
;
261 } BROWSEINFOW
, *PBROWSEINFOW
, *LPBROWSEINFOW
;
263 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
264 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
265 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
269 /* Browsing for directory. */
270 #define BIF_RETURNONLYFSDIRS 0x0001
271 #define BIF_DONTGOBELOWDOMAIN 0x0002
272 #define BIF_STATUSTEXT 0x0004
273 #define BIF_RETURNFSANCESTORS 0x0008
274 #define BIF_EDITBOX 0x0010
275 #define BIF_VALIDATE 0x0020
276 #define BIF_NEWDIALOGSTYLE 0x0040
278 #define BIF_BROWSEFORCOMPUTER 0x1000
279 #define BIF_BROWSEFORPRINTER 0x2000
280 #define BIF_BROWSEINCLUDEFILES 0x4000
282 /* message from browser */
283 #define BFFM_INITIALIZED 1
284 #define BFFM_SELCHANGED 2
285 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
286 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
288 /* messages to browser */
289 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
290 #define BFFM_ENABLEOK (WM_USER+101)
291 #define BFFM_SETSELECTIONA (WM_USER+102)
292 #define BFFM_SETSELECTIONW (WM_USER+103)
293 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
294 #define BFFM_SETOKTEXT (WM_USER+105)
295 #define BFFM_SETEXPANDED (WM_USER+106)
297 LPITEMIDLIST WINAPI
SHBrowseForFolderA(LPBROWSEINFOA lpbi
);
298 LPITEMIDLIST WINAPI
SHBrowseForFolderW(LPBROWSEINFOW lpbi
);
299 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
300 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
301 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
302 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
304 /**********************************************************************
305 * SHCreateShellFolderViewEx API
308 typedef HRESULT (CALLBACK
*LPFNVIEWCALLBACK
)(
320 IShellView
* psvOuter
;
323 LPFNVIEWCALLBACK pfnCallback
;
327 HRESULT WINAPI
SHCreateShellFolderViewEx(LPCSFV pshfvi
, IShellView
**ppshv
);
329 /* SHCreateShellFolderViewEx callback messages */
330 #define SFVM_MERGEMENU 1
331 #define SFVM_INVOKECOMMAND 2
332 #define SFVM_GETHELPTEXT 3
333 #define SFVM_GETTOOLTIPTEXT 4
334 #define SFVM_GETBUTTONINFO 5
335 #define SFVM_GETBUTTONS 6
336 #define SFVM_INITMENUPOPUP 7
337 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
338 #define SFVM_DRAWMENUITEM 9 /* undocumented */
339 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
340 #define SFVM_EXITMENULOOP 11 /* undocumented */
341 #define SFVM_VIEWRELEASE 12 /* undocumented */
342 #define SFVM_GETNAMELENGTH 13 /* undocumented */
343 #define SFVM_FSNOTIFY 14
344 #define SFVM_WINDOWCREATED 15
345 #define SFVM_WINDOWCLOSING 16 /* undocumented */
346 #define SFVM_LISTREFRESHED 17 /* undocumented */
347 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
348 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
349 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
350 #define SFVM_GETDETAILSOF 23
351 #define SFVM_COLUMNCLICK 24
352 #define SFVM_QUERYFSNOTIFY 25
353 #define SFVM_DEFITEMCOUNT 26
354 #define SFVM_DEFVIEWMODE 27
355 #define SFVM_UNMERGEFROMMENU 28
356 #define SFVM_ADDINGOBJECT 29 /* undocumented */
357 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
358 #define SFVM_UPDATESTATUSBAR 31
359 #define SFVM_BACKGROUNDENUM 32
360 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
361 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
362 #define SFVM_CANSELECTALL 35 /* undocumented */
363 #define SFVM_DIDDRAGDROP 36
364 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
365 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
366 #define SFVM_SETISFV 39
367 #define SFVM_GETEXTVIEWS 40 /* undocumented */
368 #define SFVM_THISIDLIST 41
369 #define SFVM_ADDPROPERTYPAGES 47
370 #define SFVM_BACKGROUNDENUMDONE 48
371 #define SFVM_GETNOTIFY 49
372 #define SFVM_GETSORTDEFAULTS 53
374 #define SFVM_GETZONE 58
375 #define SFVM_GETPANE 59
376 #define SFVM_GETHELPTOPIC 63
377 #define SFVM_GETANIMATION 68
378 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
379 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
380 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
381 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
382 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
383 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
384 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
385 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
387 /* Types and definitions for the SFM_* parameters */
388 #include <pshpack8.h>
390 #define QCMINFO_PLACE_BEFORE 0
391 #define QCMINFO_PLACE_AFTER 1
392 typedef struct _QCMINFO_IDMAP_PLACEMENT
396 } QCMINFO_IDMAP_PLACEMENT
;
398 typedef struct _QCMINFO_IDMAP
401 QCMINFO_IDMAP_PLACEMENT pIdList
[1];
404 typedef struct _QCMINFO
410 QCMINFO_IDMAP
const* pIdMap
;
411 } QCMINFO
, *LPQCMINFO
;
413 #define TBIF_DEFAULT 0x00000000
414 #define TBIF_APPEND 0x00000000
415 #define TBIF_PREPEND 0x00000001
416 #define TBIF_REPLACE 0x00000002
417 #define TBIF_INTERNETBAR 0x00010000
418 #define TBIF_STANDARDTOOLBAR 0x00020000
419 #define TBIF_NOTOOLBAR 0x00030000
421 typedef struct _TBINFO
429 /****************************************************************************
430 * SHShellFolderView_Message API
433 LRESULT WINAPI
SHShellFolderView_Message(
438 /* SHShellFolderView_Message messages */
439 #define SFVM_REARRANGE 0x0001
440 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
441 #define SFVM_ADDOBJECT 0x0003
442 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
443 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
444 #define SFVM_REMOVEOBJECT 0x0006
445 #define SFVM_UPDATEOBJECT 0x0007
446 #define SFVM_SETREDRAW 0x0008 /* undocumented */
447 #define SFVM_GETSELECTEDOBJECTS 0x0009
448 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
449 #define SFVM_MOVEICONS 0x000B /* undocumented */
450 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
451 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
452 #define SFVM_SETITEMPOS 0x000E
453 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
454 #define SFVM_SETCLIPBOARD 0x0010
455 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
456 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
457 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
458 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
459 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
460 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
461 #define SFVM_SETPOINTS 0x0017
463 /****************************************************************************
464 * SHGetDataFromIDList API
466 #define SHGDFIL_FINDDATA 1
467 #define SHGDFIL_NETRESOURCE 2
468 #define SHGDFIL_DESCRIPTIONID 3
470 #define SHDID_ROOT_REGITEM 1
471 #define SHDID_FS_FILE 2
472 #define SHDID_FS_DIRECTORY 3
473 #define SHDID_FS_OTHER 4
474 #define SHDID_COMPUTER_DRIVE35 5
475 #define SHDID_COMPUTER_DRIVE525 6
476 #define SHDID_COMPUTER_REMOVABLE 7
477 #define SHDID_COMPUTER_FIXED 8
478 #define SHDID_COMPUTER_NETDRIVE 9
479 #define SHDID_COMPUTER_CDROM 10
480 #define SHDID_COMPUTER_RAMDISK 11
481 #define SHDID_COMPUTER_OTHER 12
482 #define SHDID_NET_DOMAIN 13
483 #define SHDID_NET_SERVER 14
484 #define SHDID_NET_SHARE 15
485 #define SHDID_NET_RESTOFNET 16
486 #define SHDID_NET_OTHER 17
487 #define SHDID_COMPUTER_IMAGING 18
488 #define SHDID_COMPUTER_AUDIO 19
489 #define SHDID_COMPUTER_SHAREDDOCS 20
491 #include <pshpack8.h>
493 typedef struct _SHDESCRIPTIONID
494 { DWORD dwDescriptionId
;
496 } SHDESCRIPTIONID
, *LPSHDESCRIPTIONID
;
500 HRESULT WINAPI
SHGetDataFromIDListA(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
501 HRESULT WINAPI
SHGetDataFromIDListW(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
502 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
504 BOOL WINAPI
SHGetSpecialFolderPathA (HWND hwndOwner
, LPSTR szPath
, int nFolder
, BOOL bCreate
);
505 BOOL WINAPI
SHGetSpecialFolderPathW (HWND hwndOwner
, LPWSTR szPath
, int nFolder
, BOOL bCreate
);
506 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
508 HRESULT WINAPI
SHGetMalloc(LPMALLOC
*lpmal
) ;
510 /**********************************************************************
511 * SHGetSetSettings ()
516 BOOL fShowAllObjects
: 1;
517 BOOL fShowExtensions
: 1;
518 BOOL fNoConfirmRecycle
: 1;
520 BOOL fShowSysFiles
: 1;
521 BOOL fShowCompColor
: 1;
522 BOOL fDoubleClickInWebView
: 1;
523 BOOL fDesktopHTML
: 1;
524 BOOL fWin95Classic
: 1;
525 BOOL fDontPrettyPath
: 1;
526 BOOL fShowAttribCol
: 1;
527 BOOL fMapNetDrvBtn
: 1;
528 BOOL fShowInfoTip
: 1;
532 BOOL fShowSuperHidden
: 1;
533 BOOL fNoNetCrawling
: 1;
535 DWORD
:0; /* Required for proper binary layout with gcc */
543 BOOL fStartPanelOn
: 1;
544 BOOL fShowStartPage
: 1;
545 UINT fSpareFlags
: 13;
546 UINT
:0; /* Required for proper binary layout with gcc */
547 } SHELLSTATE
, *LPSHELLSTATE
;
549 /**********************************************************************
553 { BOOL fShowAllObjects
: 1;
554 BOOL fShowExtensions
: 1;
555 BOOL fNoConfirmRecycle
: 1;
556 BOOL fShowSysFiles
: 1;
558 BOOL fShowCompColor
: 1;
559 BOOL fDoubleClickInWebView
: 1;
560 BOOL fDesktopHTML
: 1;
561 BOOL fWin95Classic
: 1;
563 BOOL fDontPrettyPath
: 1;
564 BOOL fShowAttribCol
: 1;
565 BOOL fMapNetDrvBtn
: 1;
566 BOOL fShowInfoTip
: 1;
570 UINT
:0; /* Required for proper binary layout with gcc */
571 } SHELLFLAGSTATE
, * LPSHELLFLAGSTATE
;
573 VOID WINAPI
SHGetSettings(LPSHELLFLAGSTATE lpsfs
, DWORD dwMask
);
575 #define SSF_SHOWALLOBJECTS 0x0001
576 #define SSF_SHOWEXTENSIONS 0x0002
577 #define SSF_SHOWCOMPCOLOR 0x0008
578 #define SSF_SHOWSYSFILES 0x0020
579 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
580 #define SSF_SHOWATTRIBCOL 0x0100
581 #define SSF_DESKTOPHTML 0x0200
582 #define SSF_WIN95CLASSIC 0x0400
583 #define SSF_DONTPRETTYPATH 0x0800
584 #define SSF_SHOWINFOTIP 0x2000
585 #define SSF_MAPNETDRVBUTTON 0x1000
586 #define SSF_NOCONFIRMRECYCLE 0x8000
587 #define SSF_HIDEICONS 0x4000
589 /****************************************************************************
592 typedef enum RESTRICTIONS
594 REST_NONE
= 0x00000000,
595 REST_NORUN
= 0x00000001,
596 REST_NOCLOSE
= 0x00000002,
597 REST_NOSAVESET
= 0x00000004,
598 REST_NOFILEMENU
= 0x00000008,
599 REST_NOSETFOLDERS
= 0x00000010,
600 REST_NOSETTASKBAR
= 0x00000020,
601 REST_NODESKTOP
= 0x00000040,
602 REST_NOFIND
= 0x00000080,
603 REST_NODRIVES
= 0x00000100,
604 REST_NODRIVEAUTORUN
= 0x00000200,
605 REST_NODRIVETYPEAUTORUN
= 0x00000400,
606 REST_NONETHOOD
= 0x00000800,
607 REST_STARTBANNER
= 0x00001000,
608 REST_RESTRICTRUN
= 0x00002000,
609 REST_NOPRINTERTABS
= 0x00004000,
610 REST_NOPRINTERDELETE
= 0x00008000,
611 REST_NOPRINTERADD
= 0x00010000,
612 REST_NOSTARTMENUSUBFOLDERS
= 0x00020000,
613 REST_MYDOCSONNET
= 0x00040000,
614 REST_NOEXITTODOS
= 0x00080000,
615 REST_ENFORCESHELLEXTSECURITY
= 0x00100000,
616 REST_LINKRESOLVEIGNORELINKINFO
= 0x00200000,
617 REST_NOCOMMONGROUPS
= 0x00400000,
618 REST_SEPARATEDESKTOPPROCESS
= 0x00800000,
619 REST_NOWEB
= 0x01000000,
620 REST_NOTRAYCONTEXTMENU
= 0x02000000,
621 REST_NOVIEWCONTEXTMENU
= 0x04000000,
622 REST_NONETCONNECTDISCONNECT
= 0x08000000,
623 REST_STARTMENULOGOFF
= 0x10000000,
624 REST_NOSETTINGSASSIST
= 0x20000000,
625 REST_NOINTERNETICON
= 0x40000001,
626 REST_NORECENTDOCSHISTORY
,
627 REST_NORECENTDOCSMENU
,
628 REST_NOACTIVEDESKTOP
,
629 REST_NOACTIVEDESKTOPCHANGES
,
630 REST_NOFAVORITESMENU
,
631 REST_CLEARRECENTDOCSONEXIT
,
633 REST_NOCUSTOMIZEWEBVIEW
,
635 REST_NOHTMLWALLPAPER
= 0x40000010,
636 REST_NOCHANGINGWALLPAPER
,
640 REST_NOCLOSEDESKCOMP
,
641 REST_NOCLOSE_DRAGDROPBAND
,
644 REST_NORESOLVESEARCH
,
646 REST_FORCECOPYACLWITHFILE
,
647 REST_NOLOGO3CHANNELNOTIFY
,
648 REST_NOFORGETSOFTWAREUPDATE
,
649 REST_NOSETACTIVEDESKTOP
,
650 REST_NOUPDATEWINDOWS
,
651 REST_NOCHANGESTARMENU
, /* 0x40000020 */
652 REST_NOFOLDEROPTIONS
,
653 REST_HASFINDCOMPUTERS
,
655 REST_RUNDLGMEMCHECKBOX
,
656 REST_ARP_ShowPostSetup
,
661 REST_ARP_NOREMOVEPAGE
,
663 REST_ARP_NOWINSETUPPAGE
,
665 REST_NOCHANGEMAPPEDDRIVELABEL
,
666 REST_NOCHANGEMAPPEDDRIVECOMMENT
,
667 REST_MaxRecentDocs
, /* 0x40000030 */
668 REST_NONETWORKCONNECTIONS
,
669 REST_FORCESTARTMENULOGOFF
,
671 REST_NOCUSTOMIZETHISFOLDER
,
674 REST_ALLOWFRENCHENCRYPTION
, /* not documented */
676 REST_DONTSHOWSUPERHIDDEN
,
677 REST_NOSHELLSEARCHBUTTON
,
679 REST_NORUNASINSTALLPROMPT
,
680 REST_PROMPTRUNASINSTALLNETPATH
,
681 REST_NOMANAGEMYCOMPUTERVERB
,
682 REST_NORECENTDOCSNETHOOD
,
684 REST_NOWELCOMESCREEN
,
685 REST_RESTRICTCPL
, /* 0x40000040 */
690 REST_NOENCRYPTONMOVE
,
691 REST_NOLOCALMACHINERUN
,
692 REST_NOCURRENTUSERRUN
,
693 REST_NOLOCALMACHINERUNONCE
,
694 REST_NOCURRENTUSERRUNONCE
,
695 REST_FORCEACTIVEDESKTOPON
,
696 REST_NOCOMPUTERSNEARME
,
699 REST_NOSHAREDDOCUMENTS
,
701 REST_NOSMMYPICS
, /* 0x40000050 */
702 REST_ALLOWBITBUCKDRIVES
,
703 REST_NONLEGACYSHELLMODE
,
704 REST_NOCONTROLPANELBARRICADE
,
706 REST_NOAUTOTRAYNOTIFY
,
712 REST_NODISPLAYAPPEARANCEPAGE
,
714 REST_NOVISUALSTYLECHOICE
,
717 REST_SETVISUALSTYLE
, /* 0x40000060 */
718 REST_STARTRUNNOHOMEPATH
,
719 REST_NOUSERNAMEINSTARTPANEL
,
720 REST_NOMYCOMPUTERICON
,
721 REST_NOSMNETWORKPLACES
,
725 REST_NOSMMOREPROGRAMS
,
726 REST_NOSMMFUPROGRAMS
,
727 REST_NOTRAYITEMSDISPLAY
,
728 REST_NOTOOLBARSONTASKBAR
,
732 REST_NOSMCONFIGUREPROGRAMS
= 0x4000006F,
733 REST_HIDECLOCK
, /* 0x40000070 */
734 REST_NOLOWDISKSPACECHECKS
,
735 REST_NOENTIRENETWORK
,
736 REST_NODESKTOPCLEANUP
,
737 REST_BITBUCKNUKEONDELETE
,
738 REST_BITBUCKCONFIRMDELETE
,
740 REST_NODISPBACKGROUND
,
741 REST_NODISPSCREENSAVEPG
,
742 REST_NODISPSETTINGSPG
,
743 REST_NODISPSCREENSAVEPREVIEW
,
746 REST_NOTHUMBNAILCACHE
,
747 REST_NOSTRCMPLOGICAL
,
748 REST_NOPUBLISHWIZARD
,
749 REST_NOONLINEPRINTSWIZARD
, /* 0x40000080 */
751 REST_ALLOWUNHASHEDWEBVIEW
,
752 REST_ALLOWLEGACYWEBVIEW
,
753 REST_REVERTWEBVIEWSECURITY
,
755 REST_INHERITCONSOLEHANDLES
= 0x40000086,
757 REST_NODISCONNECT
= 0x41000001,
759 REST_NOFILEASSOCIATE
, /* 0x41000003 */
762 DWORD WINAPI
SHRestricted(RESTRICTIONS rest
);
764 /****************************************************************************
767 typedef struct _SHChangeNotifyEntry
771 } SHChangeNotifyEntry
;
773 #define SHCNE_RENAMEITEM 0x00000001
774 #define SHCNE_CREATE 0x00000002
775 #define SHCNE_DELETE 0x00000004
776 #define SHCNE_MKDIR 0x00000008
777 #define SHCNE_RMDIR 0x00000010
778 #define SHCNE_MEDIAINSERTED 0x00000020
779 #define SHCNE_MEDIAREMOVED 0x00000040
780 #define SHCNE_DRIVEREMOVED 0x00000080
781 #define SHCNE_DRIVEADD 0x00000100
782 #define SHCNE_NETSHARE 0x00000200
783 #define SHCNE_NETUNSHARE 0x00000400
784 #define SHCNE_ATTRIBUTES 0x00000800
785 #define SHCNE_UPDATEDIR 0x00001000
786 #define SHCNE_UPDATEITEM 0x00002000
787 #define SHCNE_SERVERDISCONNECT 0x00004000
788 #define SHCNE_UPDATEIMAGE 0x00008000
789 #define SHCNE_DRIVEADDGUI 0x00010000
790 #define SHCNE_RENAMEFOLDER 0x00020000
791 #define SHCNE_FREESPACE 0x00040000
793 #define SHCNE_EXTENDED_EVENT 0x04000000
794 #define SHCNE_ASSOCCHANGED 0x08000000
795 #define SHCNE_DISKEVENTS 0x0002381F
796 #define SHCNE_GLOBALEVENTS 0x0C0581E0
797 #define SHCNE_ALLEVENTS 0x7FFFFFFF
798 #define SHCNE_INTERRUPT 0x80000000
800 #define SHCNEE_ORDERCHANGED 0x0002L
801 #define SHCNEE_MSI_CHANGE 0x0004L
802 #define SHCNEE_MSI_UNINSTALL 0x0005L
804 #define SHCNF_IDLIST 0x0000
805 #define SHCNF_PATHA 0x0001
806 #define SHCNF_PRINTERA 0x0002
807 #define SHCNF_DWORD 0x0003
808 #define SHCNF_PATHW 0x0005
809 #define SHCNF_PRINTERW 0x0006
810 #define SHCNF_TYPE 0x00FF
811 #define SHCNF_FLUSH 0x1000
812 #define SHCNF_FLUSHNOWAIT 0x2000
814 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
815 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
817 void WINAPI
SHChangeNotify(LONG wEventId
, UINT uFlags
, LPCVOID dwItem1
, LPCVOID dwItem2
);
822 typedef struct IShellChangeNotify IShellChangeNotify
, *LPSHELLCHANGENOTIFY
;
824 #define INTERFACE IShellChangeNotify
825 DECLARE_INTERFACE_(IShellChangeNotify
,IUnknown
)
827 /*** IUnknown methods ***/
828 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
829 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
830 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
831 /*** IShellChangeNotify methods ***/
832 STDMETHOD(OnChange
)(THIS_ LONG lEvent
, LPCITEMIDLIST pidl1
, LPCITEMIDLIST pidl2
) PURE
;
836 #if !defined(__cplusplus) || defined(CINTERFACE)
837 /*** IUnknown methods ***/
838 #define IShellChangeNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
839 #define IShellChangeNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
840 #define IShellChangeNotify_Release(p) (p)->lpVtbl->Release(p)
841 /*** IShellChangeNotify methods ***/
842 #define IShellChangeNotify_OnChange(p,a,b,c) (p)->lpVtbl->OnChange(p,a,b,c)
845 typedef struct _SHChangeDWORDAsIDList
{
850 } SHChangeDWORDAsIDList
, *LPSHChangeDWORDAsIDList
;
852 typedef struct _SHChangeProductKeyAsIDList
{
854 WCHAR wszProductKey
[39];
856 } SHChangeProductKeyAsIDList
, *LPSHChangeProductKeyAsIDList
;
858 ULONG WINAPI
SHChangeNotifyRegister(HWND hwnd
, int fSources
, LONG fEvents
, UINT wMsg
,
859 int cEntries
, SHChangeNotifyEntry
*pshcne
);
860 BOOL WINAPI
SHChangeNotifyDeregister(ULONG ulID
);
861 HANDLE WINAPI
SHChangeNotification_Lock(HANDLE hChangeNotification
, DWORD dwProcessId
,
862 LPITEMIDLIST
**pppidl
, LONG
*plEvent
);
863 BOOL WINAPI
SHChangeNotification_Unlock(HANDLE hLock
);
865 HRESULT WINAPI
SHGetRealIDL(IShellFolder
*psf
, LPCITEMIDLIST pidlSimple
, LPITEMIDLIST
* ppidlReal
);
867 /****************************************************************************
868 * SHCreateDirectory API
870 DWORD WINAPI
SHCreateDirectory(HWND
, LPCVOID
);
871 int WINAPI
SHCreateDirectoryExA(HWND
, LPCSTR
, LPSECURITY_ATTRIBUTES
);
872 int WINAPI
SHCreateDirectoryExW(HWND
, LPCWSTR
, LPSECURITY_ATTRIBUTES
);
874 /****************************************************************************
875 * SHGetSpecialFolderLocation API
877 HRESULT WINAPI
SHGetSpecialFolderLocation(HWND hwndOwner
, int nFolder
, LPITEMIDLIST
* ppidl
);
878 HRESULT WINAPI
SHGetFolderLocation(HWND hwndOwner
, int nFolder
, HANDLE hToken
, DWORD dwReserved
, LPITEMIDLIST
*ppidl
);
880 /****************************************************************************
881 * SHGetFolderPath API
884 SHGFP_TYPE_CURRENT
= 0,
885 SHGFP_TYPE_DEFAULT
= 1
888 HRESULT WINAPI
SHGetFolderPathA(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPSTR pszPath
);
889 HRESULT WINAPI
SHGetFolderPathW(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPWSTR pszPath
);
890 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
892 #define CSIDL_DESKTOP 0x0000
893 #define CSIDL_INTERNET 0x0001
894 #define CSIDL_PROGRAMS 0x0002
895 #define CSIDL_CONTROLS 0x0003
896 #define CSIDL_PRINTERS 0x0004
897 #define CSIDL_PERSONAL 0x0005
898 #define CSIDL_FAVORITES 0x0006
899 #define CSIDL_STARTUP 0x0007
900 #define CSIDL_RECENT 0x0008
901 #define CSIDL_SENDTO 0x0009
902 #define CSIDL_BITBUCKET 0x000a
903 #define CSIDL_STARTMENU 0x000b
904 #define CSIDL_MYDOCUMENTS 0x000c
905 #define CSIDL_MYMUSIC 0x000d
906 #define CSIDL_MYVIDEO 0x000e
907 #define CSIDL_DESKTOPDIRECTORY 0x0010
908 #define CSIDL_DRIVES 0x0011
909 #define CSIDL_NETWORK 0x0012
910 #define CSIDL_NETHOOD 0x0013
911 #define CSIDL_FONTS 0x0014
912 #define CSIDL_TEMPLATES 0x0015
913 #define CSIDL_COMMON_STARTMENU 0x0016
914 #define CSIDL_COMMON_PROGRAMS 0X0017
915 #define CSIDL_COMMON_STARTUP 0x0018
916 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
917 #define CSIDL_APPDATA 0x001a
918 #define CSIDL_PRINTHOOD 0x001b
919 #define CSIDL_LOCAL_APPDATA 0x001c
920 #define CSIDL_ALTSTARTUP 0x001d
921 #define CSIDL_COMMON_ALTSTARTUP 0x001e
922 #define CSIDL_COMMON_FAVORITES 0x001f
923 #define CSIDL_INTERNET_CACHE 0x0020
924 #define CSIDL_COOKIES 0x0021
925 #define CSIDL_HISTORY 0x0022
926 #define CSIDL_COMMON_APPDATA 0x0023
927 #define CSIDL_WINDOWS 0x0024
928 #define CSIDL_SYSTEM 0x0025
929 #define CSIDL_PROGRAM_FILES 0x0026
930 #define CSIDL_MYPICTURES 0x0027
931 #define CSIDL_PROFILE 0x0028
932 #define CSIDL_SYSTEMX86 0x0029
933 #define CSIDL_PROGRAM_FILESX86 0x002a
934 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
935 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
936 #define CSIDL_COMMON_TEMPLATES 0x002d
937 #define CSIDL_COMMON_DOCUMENTS 0x002e
938 #define CSIDL_COMMON_ADMINTOOLS 0x002f
939 #define CSIDL_ADMINTOOLS 0x0030
940 #define CSIDL_CONNECTIONS 0x0031
941 #define CSIDL_COMMON_MUSIC 0x0035
942 #define CSIDL_COMMON_PICTURES 0x0036
943 #define CSIDL_COMMON_VIDEO 0x0037
944 #define CSIDL_RESOURCES 0x0038
945 #define CSIDL_RESOURCES_LOCALIZED 0x0039
946 #define CSIDL_COMMON_OEM_LINKS 0x003a
947 #define CSIDL_CDBURN_AREA 0x003b
948 #define CSIDL_COMPUTERSNEARME 0x003d
949 #define CSIDL_PROFILES 0x003e
950 #define CSIDL_FOLDER_MASK 0x00ff
951 #define CSIDL_FLAG_PER_USER_INIT 0x0800
952 #define CSIDL_FLAG_NO_ALIAS 0x1000
953 #define CSIDL_FLAG_DONT_VERIFY 0x4000
954 #define CSIDL_FLAG_CREATE 0x8000
956 #define CSIDL_FLAG_MASK 0xff00
958 /****************************************************************************
959 * SHGetDesktopFolder API
961 HRESULT WINAPI
SHGetDesktopFolder(IShellFolder
* *);
963 /****************************************************************************
966 HRESULT WINAPI
SHBindToParent(LPCITEMIDLIST pidl
, REFIID riid
, LPVOID
*ppv
, LPCITEMIDLIST
*ppidlLast
);
968 /****************************************************************************
969 * SHDefExtractIcon API
971 HRESULT WINAPI
SHDefExtractIconA(LPCSTR pszIconFile
, int iIndex
, UINT uFlags
,
972 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
973 HRESULT WINAPI
SHDefExtractIconW(LPCWSTR pszIconFile
, int iIndex
, UINT uFlags
,
974 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
975 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
978 * DROPFILES for CF_HDROP and CF_PRINTERS
980 typedef struct _DROPFILES
986 } DROPFILES
, *LPDROPFILES
;
989 * Properties of a file in the clipboard
991 typedef struct _FILEDESCRIPTORA
{
996 DWORD dwFileAttributes
;
997 FILETIME ftCreationTime
;
998 FILETIME ftLastAccessTime
;
999 FILETIME ftLastWriteTime
;
1000 DWORD nFileSizeHigh
;
1002 CHAR cFileName
[MAX_PATH
];
1003 } FILEDESCRIPTORA
, *LPFILEDESCRIPTORA
;
1005 typedef struct _FILEDESCRIPTORW
{
1010 DWORD dwFileAttributes
;
1011 FILETIME ftCreationTime
;
1012 FILETIME ftLastAccessTime
;
1013 FILETIME ftLastWriteTime
;
1014 DWORD nFileSizeHigh
;
1016 WCHAR cFileName
[MAX_PATH
];
1017 } FILEDESCRIPTORW
, *LPFILEDESCRIPTORW
;
1019 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR
)
1020 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR
)
1023 * CF_FILEGROUPDESCRIPTOR clipboard format
1025 typedef struct _FILEGROUPDESCRIPTORA
{
1027 FILEDESCRIPTORA fgd
[1];
1028 } FILEGROUPDESCRIPTORA
, *LPFILEGROUPDESCRIPTORA
;
1030 typedef struct _FILEGROUPDESCRIPTORW
{
1032 FILEDESCRIPTORW fgd
[1];
1033 } FILEGROUPDESCRIPTORW
, *LPFILEGROUPDESCRIPTORW
;
1035 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR
)
1036 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR
)
1038 /****************************************************************************
1045 BOOL fFullPathTitle
:1;
1046 BOOL fSaveLocalView
:1;
1048 BOOL fSimpleDefault
:1;
1049 BOOL fDontShowDescBar
:1;
1050 BOOL fNewWindowMode
:1;
1051 BOOL fShowCompColor
:1;
1052 BOOL fDontPrettyNames
:1;
1053 BOOL fAdminsCreateCommonGroups
:1;
1054 UINT fUnusedFlags
:7;
1055 UINT
:0; /* Required for proper binary layout with gcc */
1056 UINT fMenuEnumFilter
;
1057 } CABINETSTATE
, *LPCABINETSTATE
;
1059 #define CABINETSTATE_VERSION 2
1061 BOOL WINAPI
ReadCabinetState(CABINETSTATE
*, int);
1062 BOOL WINAPI
WriteCabinetState(CABINETSTATE
*);
1064 /****************************************************************************
1065 * Path Manipulation Routines
1067 VOID WINAPI
PathGetShortPath(LPWSTR pszPath
);
1069 /****************************************************************************
1070 * Drag And Drop Routines
1073 /* DAD_AutoScroll sample structure */
1074 #define NUM_POINTS 3
1080 POINT pts
[NUM_POINTS
];
1081 DWORD dwTimes
[NUM_POINTS
];
1084 BOOL WINAPI
DAD_SetDragImage(HIMAGELIST
,LPPOINT
);
1085 BOOL WINAPI
DAD_DragEnterEx(HWND
,POINT
);
1086 BOOL WINAPI
DAD_DragEnterEx2(HWND
,POINT
,IDataObject
*);
1087 BOOL WINAPI
DAD_DragMove(POINT
);
1088 BOOL WINAPI
DAD_DragLeave(void);
1089 BOOL WINAPI
DAD_AutoScroll(HWND
,AUTO_SCROLL_DATA
*,LPPOINT
);
1090 HRESULT WINAPI
SHDoDragDrop(HWND
,IDataObject
*,IDropSource
*,DWORD
,LPDWORD
);
1092 /*****************************************************************************
1093 * IFileSystemBindData interface
1095 #ifndef __IFileSystemBindData_FWD_DEFINED__
1096 #define __IFileSystemBindData_FWD_DEFINED__
1097 typedef struct IFileSystemBindData IFileSystemBindData
;
1100 #ifndef __IFileSystemBindData_INTERFACE_DEFINED__
1101 #define __IFileSystemBindData_INTERFACE_DEFINED__
1103 DEFINE_GUID(IID_IFileSystemBindData
, 0x01e18d10, 0x4d8b, 0x11d2, 0x85,0x5d, 0x00,0x60,0x08,0x05,0x93,0x67);
1104 #if defined(__cplusplus) && !defined(CINTERFACE)
1105 struct IFileSystemBindData
: public IUnknown
1107 virtual HRESULT STDMETHODCALLTYPE
SetFindData(
1108 const WIN32_FIND_DATAW
* pfd
) = 0;
1110 virtual HRESULT STDMETHODCALLTYPE
GetFindData(
1111 WIN32_FIND_DATAW
* pfd
) = 0;
1115 typedef struct IFileSystemBindDataVtbl IFileSystemBindDataVtbl
;
1116 struct IFileSystemBindData
{
1117 const IFileSystemBindDataVtbl
* lpVtbl
;
1119 struct IFileSystemBindDataVtbl
{
1121 /*** IUnknown methods ***/
1122 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
1123 IFileSystemBindData
* This
,
1127 ULONG (STDMETHODCALLTYPE
*AddRef
)(
1128 IFileSystemBindData
* This
);
1130 ULONG (STDMETHODCALLTYPE
*Release
)(
1131 IFileSystemBindData
* This
);
1133 /*** IFileSystemBindData methods ***/
1134 HRESULT (STDMETHODCALLTYPE
*SetFindData
)(
1135 IFileSystemBindData
* This
,
1136 const WIN32_FIND_DATAW
* pfd
);
1138 HRESULT (STDMETHODCALLTYPE
*GetFindData
)(
1139 IFileSystemBindData
* This
,
1140 WIN32_FIND_DATAW
* pfd
);
1144 /*** IUnknown methods ***/
1145 #define IFileSystemBindData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1146 #define IFileSystemBindData_AddRef(p) (p)->lpVtbl->AddRef(p)
1147 #define IFileSystemBindData_Release(p) (p)->lpVtbl->Release(p)
1148 /*** IFileSystemBindData methods ***/
1149 #define IFileSystemBindData_GetFindData(p,a) (p)->lpVtbl->GetFindData(p,a)
1150 #define IFileSystemBindData_SetFindData(p,a) (p)->lpVtbl->SetFindData(p,a)
1154 #endif /* __IFileSystemBindData_INTERFACE_DEFINED__ */
1156 LPITEMIDLIST WINAPI
ILAppendID(LPITEMIDLIST
,LPCSHITEMID
,BOOL
);
1157 LPITEMIDLIST WINAPI
ILClone(LPCITEMIDLIST
);
1158 LPITEMIDLIST WINAPI
ILCloneFirst(LPCITEMIDLIST
);
1159 LPITEMIDLIST WINAPI
ILCreateFromPathA(LPCSTR
);
1160 LPITEMIDLIST WINAPI
ILCreateFromPathW(LPCWSTR
);
1161 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1162 LPITEMIDLIST WINAPI
ILCombine(LPCITEMIDLIST
,LPCITEMIDLIST
);
1163 LPITEMIDLIST WINAPI
ILFindChild(LPCITEMIDLIST
,LPCITEMIDLIST
);
1164 LPITEMIDLIST WINAPI
ILFindLastID(LPCITEMIDLIST
);
1165 void WINAPI
ILFree(LPITEMIDLIST
);
1166 LPITEMIDLIST WINAPI
ILGetNext(LPCITEMIDLIST
);
1167 UINT WINAPI
ILGetSize(LPCITEMIDLIST
);
1168 BOOL WINAPI
ILIsEqual(LPCITEMIDLIST
,LPCITEMIDLIST
);
1169 BOOL WINAPI
ILIsParent(LPCITEMIDLIST
,LPCITEMIDLIST
,BOOL
);
1170 HRESULT WINAPI
ILLoadFromStream(LPSTREAM
,LPITEMIDLIST
*);
1171 BOOL WINAPI
ILRemoveLastID(LPITEMIDLIST
);
1172 HRESULT WINAPI
ILSaveToStream(LPSTREAM
,LPCITEMIDLIST
);
1175 #include <poppack.h>
1179 #endif /* defined(__cplusplus) */
1181 #endif /* __WINE_SHLOBJ_H */