Fix incorrect usage of COBJMACROS.
[wine/dibdrv.git] / include / shlobj.h
blob5d4295fa397a73cc43bb8f641fc3f1ed1f2f4c0d
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_SHLOBJ_H
20 #define __WINE_SHLOBJ_H
22 #include <ole2.h>
23 #include <commctrl.h>
24 #include <prsht.h>
25 #include <shlguid.h>
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* defined(__cplusplus) */
31 /* Except for specific structs, this header is byte packed */
32 #include <pshpack1.h>
34 #include <shtypes.h>
35 #include <shobjidl.h>
37 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);
66 /*****************************************************************************
67 * Predeclare interfaces
69 typedef struct IShellIcon IShellIcon, *LPSHELLICON;
72 /*****************************************************************************
73 * IContextMenu interface
77 /* DATAOBJECT_InitShellIDList*/
78 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
80 extern UINT cfShellIDList;
82 typedef struct
83 { UINT cidl;
84 UINT aoffset[1];
85 } CIDA, *LPIDA;
87 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
88 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
90 /* DATAOBJECT_InitFileGroupDesc */
91 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
92 extern UINT cfFileGroupDesc;
94 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
96 /* DATAOBJECT_InitFileContents*/
97 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
98 extern UINT cfFileContents;
100 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
101 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
102 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
103 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
104 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
105 #define CFSTR_SHELLURL "UniformResourceLocator"
106 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
107 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
108 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
109 #define CFSTR_INDRAGLOOP "InShellDragLoop"
111 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
114 /************************************************************************
115 * IShellView interface
118 typedef GUID SHELLVIEWID;
119 #define SV_CLASS_NAME ("SHELLDLL_DefView")
121 #define FCIDM_SHVIEWFIRST 0x0000
122 /* undocumented */
123 #define FCIDM_SHVIEW_ARRANGE 0x7001
124 #define FCIDM_SHVIEW_DELETE 0x7011
125 #define FCIDM_SHVIEW_PROPERTIES 0x7013
126 #define FCIDM_SHVIEW_CUT 0x7018
127 #define FCIDM_SHVIEW_COPY 0x7019
128 #define FCIDM_SHVIEW_INSERT 0x701A
129 #define FCIDM_SHVIEW_UNDO 0x701B
130 #define FCIDM_SHVIEW_INSERTLINK 0x701C
131 #define FCIDM_SHVIEW_SELECTALL 0x7021
132 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
134 #define FCIDM_SHVIEW_BIGICON 0x7029
135 #define FCIDM_SHVIEW_SMALLICON 0x702A
136 #define FCIDM_SHVIEW_LISTVIEW 0x702B
137 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
138 /* 0x7030-0x703f are used by the shellbrowser */
139 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
140 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
142 #define FCIDM_SHVIEW_HELP 0x7041
143 #define FCIDM_SHVIEW_RENAME 0x7050
144 #define FCIDM_SHVIEW_CREATELINK 0x7051
145 #define FCIDM_SHVIEW_NEWLINK 0x7052
146 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
148 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
149 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
150 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
152 #define FCIDM_SHVIEWLAST 0x7fff
153 #define FCIDM_BROWSERFIRST 0xA000
154 /* undocumented toolbar items from stddlg's*/
155 #define FCIDM_TB_UPFOLDER 0xA001
156 #define FCIDM_TB_NEWFOLDER 0xA002
157 #define FCIDM_TB_SMALLICON 0xA003
158 #define FCIDM_TB_REPORTVIEW 0xA004
159 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
161 #define FCIDM_BROWSERLAST 0xbf00
162 #define FCIDM_GLOBALFIRST 0x8000
163 #define FCIDM_GLOBALLAST 0x9fff
166 * Global submenu IDs and separator IDs
168 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
169 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
170 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
171 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
172 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
173 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
174 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
175 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
176 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
177 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
179 /* control IDs known to the view */
180 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
181 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
184 /****************************************************************************
185 * IShellIcon interface
188 #define INTERFACE IShellIcon
189 #define IShellIcon_METHODS \
190 IUnknown_METHODS \
191 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
192 DECLARE_INTERFACE_(IShellIcon, IUnknown) { IShellIcon_METHODS };
193 #undef INTERFACE
195 #if !defined(__cplusplus) || defined(CINTERFACE)
196 /*** IUnknown methods ***/
197 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
198 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
199 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
200 /*** IShellIcon methods ***/
201 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
202 #endif
204 /****************************************************************************
205 * SHAddToRecentDocs API
207 #define SHARD_PIDL 0x00000001L
208 #define SHARD_PATHA 0x00000002L
209 #define SHARD_PATHW 0x00000003L
210 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
212 void WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv);
214 /****************************************************************************
215 * SHBrowseForFolder API
217 typedef INT (CALLBACK *BFFCALLBACK)(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
219 #include <pshpack8.h>
221 typedef struct tagBROWSEINFOA {
222 HWND hwndOwner;
223 LPCITEMIDLIST pidlRoot;
224 LPSTR pszDisplayName;
225 LPCSTR lpszTitle;
226 UINT ulFlags;
227 BFFCALLBACK lpfn;
228 LPARAM lParam;
229 INT iImage;
230 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
232 typedef struct tagBROWSEINFOW {
233 HWND hwndOwner;
234 LPCITEMIDLIST pidlRoot;
235 LPWSTR pszDisplayName;
236 LPCWSTR lpszTitle;
237 UINT ulFlags;
238 BFFCALLBACK lpfn;
239 LPARAM lParam;
240 INT iImage;
241 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
243 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
244 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
245 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
247 #include <poppack.h>
249 /* Browsing for directory. */
250 #define BIF_RETURNONLYFSDIRS 0x0001
251 #define BIF_DONTGOBELOWDOMAIN 0x0002
252 #define BIF_STATUSTEXT 0x0004
253 #define BIF_RETURNFSANCESTORS 0x0008
254 #define BIF_EDITBOX 0x0010
255 #define BIF_VALIDATE 0x0020
256 #define BIF_NEWDIALOGSTYLE 0x0040
258 #define BIF_BROWSEFORCOMPUTER 0x1000
259 #define BIF_BROWSEFORPRINTER 0x2000
260 #define BIF_BROWSEINCLUDEFILES 0x4000
262 /* message from browser */
263 #define BFFM_INITIALIZED 1
264 #define BFFM_SELCHANGED 2
265 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
266 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
268 /* messages to browser */
269 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
270 #define BFFM_ENABLEOK (WM_USER+101)
271 #define BFFM_SETSELECTIONA (WM_USER+102)
272 #define BFFM_SETSELECTIONW (WM_USER+103)
273 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
274 #define BFFM_SETOKTEXT (WM_USER+105)
275 #define BFFM_SETEXPANDED (WM_USER+106)
277 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
278 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
279 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
280 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
281 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
282 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
284 /**********************************************************************
285 * SHCreateShellFolderViewEx API
288 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
289 IShellView* dwUser,
290 IShellFolder* pshf,
291 HWND hWnd,
292 UINT uMsg,
293 WPARAM wParam,
294 LPARAM lParam);
296 typedef struct _CSFV
298 UINT cbSize;
299 IShellFolder* pshf;
300 IShellView* psvOuter;
301 LPCITEMIDLIST pidl;
302 LONG lEvents;
303 LPFNVIEWCALLBACK pfnCallback;
304 FOLDERVIEWMODE fvm;
305 } CSFV, *LPCSFV;
307 HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
309 /* SHCreateShellFolderViewEx callback messages */
310 #define SFVM_MERGEMENU 1
311 #define SFVM_INVOKECOMMAND 2
312 #define SFVM_GETHELPTEXT 3
313 #define SFVM_GETTOOLTIPTEXT 4
314 #define SFVM_GETBUTTONINFO 5
315 #define SFVM_GETBUTTONS 6
316 #define SFVM_INITMENUPOPUP 7
317 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
318 #define SFVM_DRAWMENUITEM 9 /* undocumented */
319 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
320 #define SFVM_EXITMENULOOP 11 /* undocumented */
321 #define SFVM_VIEWRELEASE 12 /* undocumented */
322 #define SFVM_GETNAMELENGTH 13 /* undocumented */
323 #define SFVM_FSNOTIFY 14
324 #define SFVM_WINDOWCREATED 15
325 #define SFVM_WINDOWCLOSING 16 /* undocumented */
326 #define SFVM_LISTREFRESHED 17 /* undocumented */
327 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
328 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
329 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
330 #define SFVM_GETDETAILSOF 23
331 #define SFVM_COLUMNCLICK 24
332 #define SFVM_QUERYFSNOTIFY 25
333 #define SFVM_DEFITEMCOUNT 26
334 #define SFVM_DEFVIEWMODE 27
335 #define SFVM_UNMERGEFROMMENU 28
336 #define SFVM_ADDINGOBJECT 29 /* undocumented */
337 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
338 #define SFVM_UPDATESTATUSBAR 31
339 #define SFVM_BACKGROUNDENUM 32
340 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
341 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
342 #define SFVM_CANSELECTALL 35 /* undocumented */
343 #define SFVM_DIDDRAGDROP 36
344 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
345 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
346 #define SFVM_SETISFV 39
347 #define SFVM_GETEXTVIEWS 40 /* undocumented */
348 #define SFVM_THISIDLIST 41
349 #define SFVM_ADDPROPERTYPAGES 47
350 #define SFVM_BACKGROUNDENUMDONE 48
351 #define SFVM_GETNOTIFY 49
352 #define SFVM_GETSORTDEFAULTS 53
353 #define SFVM_SIZE 57
354 #define SFVM_GETZONE 58
355 #define SFVM_GETPANE 59
356 #define SFVM_GETHELPTOPIC 63
357 #define SFVM_GETANIMATION 68
358 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
359 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
360 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
361 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
362 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
363 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
364 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
365 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
367 /* Types and definitions for the SFM_* parameters */
368 #include <pshpack8.h>
370 #define QCMINFO_PLACE_BEFORE 0
371 #define QCMINFO_PLACE_AFTER 1
372 typedef struct _QCMINFO_IDMAP_PLACEMENT
374 UINT id;
375 UINT fFlags;
376 } QCMINFO_IDMAP_PLACEMENT;
378 typedef struct _QCMINFO_IDMAP
380 UINT nMaxIds;
381 QCMINFO_IDMAP_PLACEMENT pIdList[1];
382 } QCMINFO_IDMAP;
384 typedef struct _QCMINFO
386 HMENU hmenu;
387 UINT indexMenu;
388 UINT idCmdFirst;
389 UINT idCmdLast;
390 QCMINFO_IDMAP const* pIdMap;
391 } QCMINFO, *LPQCMINFO;
393 #define TBIF_DEFAULT 0x00000000
394 #define TBIF_APPEND 0x00000000
395 #define TBIF_PREPEND 0x00000001
396 #define TBIF_REPLACE 0x00000002
397 #define TBIF_INTERNETBAR 0x00010000
398 #define TBIF_STANDARDTOOLBAR 0x00020000
399 #define TBIF_NOTOOLBAR 0x00030000
401 typedef struct _TBINFO
403 UINT cbuttons;
404 UINT uFlags;
405 } TBINFO, *LPTBINFO;
407 #include <poppack.h>
409 /****************************************************************************
410 * SHShellFolderView_Message API
413 LRESULT WINAPI SHShellFolderView_Message(
414 HWND hwndCabinet,
415 UINT uMessage,
416 LPARAM lParam);
418 /* SHShellFolderView_Message messages */
419 #define SFVM_REARRANGE 0x0001
420 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
421 #define SFVM_ADDOBJECT 0x0003
422 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
423 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
424 #define SFVM_REMOVEOBJECT 0x0006
425 #define SFVM_UPDATEOBJECT 0x0007
426 #define SFVM_SETREDRAW 0x0008 /* undocumented */
427 #define SFVM_GETSELECTEDOBJECTS 0x0009
428 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
429 #define SFVM_MOVEICONS 0x000B /* undocumented */
430 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
431 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
432 #define SFVM_SETITEMPOS 0x000E
433 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
434 #define SFVM_SETCLIPBOARD 0x0010
435 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
436 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
437 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
438 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
439 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
440 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
441 #define SFVM_SETPOINTS 0x0017
443 /****************************************************************************
444 * SHGetDataFromIDList API
446 #define SHGDFIL_FINDDATA 1
447 #define SHGDFIL_NETRESOURCE 2
448 #define SHGDFIL_DESCRIPTIONID 3
450 #define SHDID_ROOT_REGITEM 1
451 #define SHDID_FS_FILE 2
452 #define SHDID_FS_DIRECTORY 3
453 #define SHDID_FS_OTHER 4
454 #define SHDID_COMPUTER_DRIVE35 5
455 #define SHDID_COMPUTER_DRIVE525 6
456 #define SHDID_COMPUTER_REMOVABLE 7
457 #define SHDID_COMPUTER_FIXED 8
458 #define SHDID_COMPUTER_NETDRIVE 9
459 #define SHDID_COMPUTER_CDROM 10
460 #define SHDID_COMPUTER_RAMDISK 11
461 #define SHDID_COMPUTER_OTHER 12
462 #define SHDID_NET_DOMAIN 13
463 #define SHDID_NET_SERVER 14
464 #define SHDID_NET_SHARE 15
465 #define SHDID_NET_RESTOFNET 16
466 #define SHDID_NET_OTHER 17
467 #define SHDID_COMPUTER_IMAGING 18
468 #define SHDID_COMPUTER_AUDIO 19
469 #define SHDID_COMPUTER_SHAREDDOCS 20
471 #include <pshpack8.h>
473 typedef struct _SHDESCRIPTIONID
474 { DWORD dwDescriptionId;
475 CLSID clsid;
476 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
478 #include <poppack.h>
480 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
481 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
482 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
484 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
485 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
486 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
488 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
490 /**********************************************************************
491 * SHGetSetSettings ()
494 typedef struct
496 BOOL fShowAllObjects : 1;
497 BOOL fShowExtensions : 1;
498 BOOL fNoConfirmRecycle : 1;
500 BOOL fShowSysFiles : 1;
501 BOOL fShowCompColor : 1;
502 BOOL fDoubleClickInWebView : 1;
503 BOOL fDesktopHTML : 1;
504 BOOL fWin95Classic : 1;
505 BOOL fDontPrettyPath : 1;
506 BOOL fShowAttribCol : 1;
507 BOOL fMapNetDrvBtn : 1;
508 BOOL fShowInfoTip : 1;
509 BOOL fHideIcons : 1;
510 BOOL fWebView : 1;
511 BOOL fFilter : 1;
512 BOOL fShowSuperHidden : 1;
513 BOOL fNoNetCrawling : 1;
515 DWORD :0; /* Required for proper binary layout with gcc */
516 DWORD dwWin95Unused;
517 UINT uWin95Unused;
518 LONG lParamSort;
519 int iSortDirection;
520 UINT version;
521 UINT uNotUsed;
522 BOOL fSepProcess: 1;
523 BOOL fStartPanelOn: 1;
524 BOOL fShowStartPage: 1;
525 UINT fSpareFlags : 13;
526 UINT :0; /* Required for proper binary layout with gcc */
527 } SHELLSTATE, *LPSHELLSTATE;
529 /**********************************************************************
530 * SHGetSettings ()
532 typedef struct
533 { BOOL fShowAllObjects : 1;
534 BOOL fShowExtensions : 1;
535 BOOL fNoConfirmRecycle : 1;
536 BOOL fShowSysFiles : 1;
538 BOOL fShowCompColor : 1;
539 BOOL fDoubleClickInWebView : 1;
540 BOOL fDesktopHTML : 1;
541 BOOL fWin95Classic : 1;
543 BOOL fDontPrettyPath : 1;
544 BOOL fShowAttribCol : 1;
545 BOOL fMapNetDrvBtn : 1;
546 BOOL fShowInfoTip : 1;
548 BOOL fHideIcons : 1;
549 UINT fRestFlags : 3;
550 UINT :0; /* Required for proper binary layout with gcc */
551 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
553 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
555 #define SSF_SHOWALLOBJECTS 0x0001
556 #define SSF_SHOWEXTENSIONS 0x0002
557 #define SSF_SHOWCOMPCOLOR 0x0008
558 #define SSF_SHOWSYSFILES 0x0020
559 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
560 #define SSF_SHOWATTRIBCOL 0x0100
561 #define SSF_DESKTOPHTML 0x0200
562 #define SSF_WIN95CLASSIC 0x0400
563 #define SSF_DONTPRETTYPATH 0x0800
564 #define SSF_SHOWINFOTIP 0x2000
565 #define SSF_MAPNETDRVBUTTON 0x1000
566 #define SSF_NOCONFIRMRECYCLE 0x8000
567 #define SSF_HIDEICONS 0x4000
569 /****************************************************************************
570 * SHRestricted API
572 typedef enum RESTRICTIONS
574 REST_NONE = 0x00000000,
575 REST_NORUN = 0x00000001,
576 REST_NOCLOSE = 0x00000002,
577 REST_NOSAVESET = 0x00000004,
578 REST_NOFILEMENU = 0x00000008,
579 REST_NOSETFOLDERS = 0x00000010,
580 REST_NOSETTASKBAR = 0x00000020,
581 REST_NODESKTOP = 0x00000040,
582 REST_NOFIND = 0x00000080,
583 REST_NODRIVES = 0x00000100,
584 REST_NODRIVEAUTORUN = 0x00000200,
585 REST_NODRIVETYPEAUTORUN = 0x00000400,
586 REST_NONETHOOD = 0x00000800,
587 REST_STARTBANNER = 0x00001000,
588 REST_RESTRICTRUN = 0x00002000,
589 REST_NOPRINTERTABS = 0x00004000,
590 REST_NOPRINTERDELETE = 0x00008000,
591 REST_NOPRINTERADD = 0x00010000,
592 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
593 REST_MYDOCSONNET = 0x00040000,
594 REST_NOEXITTODOS = 0x00080000,
595 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
596 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
597 REST_NOCOMMONGROUPS = 0x00400000,
598 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
599 REST_NOWEB = 0x01000000,
600 REST_NOTRAYCONTEXTMENU = 0x02000000,
601 REST_NOVIEWCONTEXTMENU = 0x04000000,
602 REST_NONETCONNECTDISCONNECT = 0x08000000,
603 REST_STARTMENULOGOFF = 0x10000000,
604 REST_NOSETTINGSASSIST = 0x20000000,
605 REST_NOINTERNETICON = 0x40000001,
606 REST_NORECENTDOCSHISTORY,
607 REST_NORECENTDOCSMENU,
608 REST_NOACTIVEDESKTOP,
609 REST_NOACTIVEDESKTOPCHANGES,
610 REST_NOFAVORITESMENU,
611 REST_CLEARRECENTDOCSONEXIT,
612 REST_CLASSICSHELL,
613 REST_NOCUSTOMIZEWEBVIEW,
615 REST_NOHTMLWALLPAPER = 0x40000010,
616 REST_NOCHANGINGWALLPAPER,
617 REST_NODESKCOMP,
618 REST_NOADDDESKCOMP,
619 REST_NODELDESKCOMP,
620 REST_NOCLOSEDESKCOMP,
621 REST_NOCLOSE_DRAGDROPBAND,
622 REST_NOMOVINGBAND,
623 REST_NOEDITDESKCOMP,
624 REST_NORESOLVESEARCH,
625 REST_NORESOLVETRACK,
626 REST_FORCECOPYACLWITHFILE,
627 REST_NOLOGO3CHANNELNOTIFY,
628 REST_NOFORGETSOFTWAREUPDATE,
629 REST_NOSETACTIVEDESKTOP,
630 REST_NOUPDATEWINDOWS,
631 REST_NOCHANGESTARMENU, /* 0x40000020 */
632 REST_NOFOLDEROPTIONS,
633 REST_HASFINDCOMPUTERS,
634 REST_INTELLIMENUS,
635 REST_RUNDLGMEMCHECKBOX,
636 REST_ARP_ShowPostSetup,
637 REST_NOCSC,
638 REST_NOCONTROLPANEL,
639 REST_ENUMWORKGROUP,
640 REST_ARP_NOARP,
641 REST_ARP_NOREMOVEPAGE,
642 REST_ARP_NOADDPAGE,
643 REST_ARP_NOWINSETUPPAGE,
644 REST_GREYMSIADS,
645 REST_NOCHANGEMAPPEDDRIVELABEL,
646 REST_NOCHANGEMAPPEDDRIVECOMMENT,
647 REST_MaxRecentDocs, /* 0x40000030 */
648 REST_NONETWORKCONNECTIONS,
649 REST_FORCESTARTMENULOGOFF,
650 REST_NOWEBVIEW,
651 REST_NOCUSTOMIZETHISFOLDER,
652 REST_NOENCRYPTION,
654 REST_ALLOWFRENCHENCRYPTION, /* not documented */
656 REST_DONTSHOWSUPERHIDDEN,
657 REST_NOSHELLSEARCHBUTTON,
658 REST_NOHARDWARETAB,
659 REST_NORUNASINSTALLPROMPT,
660 REST_PROMPTRUNASINSTALLNETPATH,
661 REST_NOMANAGEMYCOMPUTERVERB,
662 REST_NORECENTDOCSNETHOOD,
663 REST_DISALLOWRUN,
664 REST_NOWELCOMESCREEN,
665 REST_RESTRICTCPL, /* 0x40000040 */
666 REST_DISALLOWCPL,
667 REST_NOSMBALLOONTIP,
668 REST_NOSMHELP,
669 REST_NOWINKEYS,
670 REST_NOENCRYPTONMOVE,
671 REST_NOLOCALMACHINERUN,
672 REST_NOCURRENTUSERRUN,
673 REST_NOLOCALMACHINERUNONCE,
674 REST_NOCURRENTUSERRUNONCE,
675 REST_FORCEACTIVEDESKTOPON,
676 REST_NOCOMPUTERSNEARME,
677 REST_NOVIEWONDRIVE,
678 REST_NONETCRAWL,
679 REST_NOSHAREDDOCUMENTS,
680 REST_NOSMMYDOCS,
681 REST_NOSMMYPICS, /* 0x40000050 */
682 REST_ALLOWBITBUCKDRIVES,
683 REST_NONLEGACYSHELLMODE,
684 REST_NOCONTROLPANELBARRICADE,
685 REST_NOSTARTPAGE,
686 REST_NOAUTOTRAYNOTIFY,
687 REST_NOTASKGROUPING,
688 REST_NOCDBURNING,
689 REST_MYCOMPNOPROP,
690 REST_MYDOCSNOPROP,
691 REST_NOSTARTPANEL,
692 REST_NODISPLAYAPPEARANCEPAGE,
693 REST_NOTHEMESTAB,
694 REST_NOVISUALSTYLECHOICE,
695 REST_NOSIZECHOICE,
696 REST_NOCOLORCHOICE,
697 REST_SETVISUALSTYLE, /* 0x40000060 */
698 REST_STARTRUNNOHOMEPATH,
699 REST_NOUSERNAMEINSTARTPANEL,
700 REST_NOMYCOMPUTERICON,
701 REST_NOSMNETWORKPLACES,
702 REST_NOSMPINNEDLIST,
703 REST_NOSMMYMUSIC,
704 REST_NOSMEJECTPC,
705 REST_NOSMMOREPROGRAMS,
706 REST_NOSMMFUPROGRAMS,
707 REST_NOTRAYITEMSDISPLAY,
708 REST_NOTOOLBARSONTASKBAR,
709 /* 0x4000006C
710 0x4000006D
711 0x4000006E */
712 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
713 REST_HIDECLOCK, /* 0x40000070 */
714 REST_NOLOWDISKSPACECHECKS,
715 REST_NOENTIRENETWORK,
716 REST_NODESKTOPCLEANUP,
717 REST_BITBUCKNUKEONDELETE,
718 REST_BITBUCKCONFIRMDELETE,
719 REST_BITBUCKNOPROP,
720 REST_NODISPBACKGROUND,
721 REST_NODISPSCREENSAVEPG,
722 REST_NODISPSETTINGSPG,
723 REST_NODISPSCREENSAVEPREVIEW,
724 REST_NODISPLAYCPL,
725 REST_HIDERUNASVERB,
726 REST_NOTHUMBNAILCACHE,
727 REST_NOSTRCMPLOGICAL,
728 REST_NOPUBLISHWIZARD,
729 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
730 REST_NOWEBSERVICES,
731 REST_ALLOWUNHASHEDWEBVIEW,
732 REST_ALLOWLEGACYWEBVIEW,
733 REST_REVERTWEBVIEWSECURITY,
735 REST_INHERITCONSOLEHANDLES = 0x40000086,
737 REST_NODISCONNECT = 0x41000001,
738 REST_NOSECURITY,
739 REST_NOFILEASSOCIATE, /* 0x41000003 */
740 } RESTRICTIONS;
742 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
744 /****************************************************************************
745 * SHChangeNotify API
747 typedef struct _SHChangeNotifyEntry
749 LPCITEMIDLIST pidl;
750 BOOL fRecursive;
751 } SHChangeNotifyEntry;
753 #define SHCNE_RENAMEITEM 0x00000001
754 #define SHCNE_CREATE 0x00000002
755 #define SHCNE_DELETE 0x00000004
756 #define SHCNE_MKDIR 0x00000008
757 #define SHCNE_RMDIR 0x00000010
758 #define SHCNE_MEDIAINSERTED 0x00000020
759 #define SHCNE_MEDIAREMOVED 0x00000040
760 #define SHCNE_DRIVEREMOVED 0x00000080
761 #define SHCNE_DRIVEADD 0x00000100
762 #define SHCNE_NETSHARE 0x00000200
763 #define SHCNE_NETUNSHARE 0x00000400
764 #define SHCNE_ATTRIBUTES 0x00000800
765 #define SHCNE_UPDATEDIR 0x00001000
766 #define SHCNE_UPDATEITEM 0x00002000
767 #define SHCNE_SERVERDISCONNECT 0x00004000
768 #define SHCNE_UPDATEIMAGE 0x00008000
769 #define SHCNE_DRIVEADDGUI 0x00010000
770 #define SHCNE_RENAMEFOLDER 0x00020000
771 #define SHCNE_FREESPACE 0x00040000
773 #define SHCNE_EXTENDED_EVENT 0x04000000
774 #define SHCNE_ASSOCCHANGED 0x08000000
775 #define SHCNE_DISKEVENTS 0x0002381F
776 #define SHCNE_GLOBALEVENTS 0x0C0581E0
777 #define SHCNE_ALLEVENTS 0x7FFFFFFF
778 #define SHCNE_INTERRUPT 0x80000000
780 #define SHCNEE_ORDERCHANGED 0x0002L
781 #define SHCNEE_MSI_CHANGE 0x0004L
782 #define SHCNEE_MSI_UNINSTALL 0x0005L
784 #define SHCNF_IDLIST 0x0000
785 #define SHCNF_PATHA 0x0001
786 #define SHCNF_PRINTERA 0x0002
787 #define SHCNF_DWORD 0x0003
788 #define SHCNF_PATHW 0x0005
789 #define SHCNF_PRINTERW 0x0006
790 #define SHCNF_TYPE 0x00FF
791 #define SHCNF_FLUSH 0x1000
792 #define SHCNF_FLUSHNOWAIT 0x2000
794 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
795 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
797 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
800 * IShellChangeNotify
802 typedef struct IShellChangeNotify IShellChangeNotify, *LPSHELLCHANGENOTIFY;
804 #define INTERFACE IShellChangeNotify
805 #define IShellChangeNotify_METHODS \
806 IUnknown_METHODS \
807 STDMETHOD(OnChange)(THIS_ LONG lEvent, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2) PURE;
809 DECLARE_INTERFACE_(IShellChangeNotify, IUnknown) { IShellChangeNotify_METHODS };
810 #undef INTERFACE
812 #if !defined(__cplusplus) || defined(CINTERFACE)
813 /*** IUnknown methods ***/
814 #define IShellChangeNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
815 #define IShellChangeNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
816 #define IShellChangeNotify_Release(p) (p)->lpVtbl->Release(p)
817 /*** IShellChangeNotify methods ***/
818 #define IShellChangeNotify_OnChange(p,a,b,c) (p)->lpVtbl->OnChange(p,a,b,c)
819 #endif
821 typedef struct _SHChangeDWORDAsIDList {
822 USHORT cb;
823 DWORD dwItem1;
824 DWORD dwItem2;
825 USHORT cbZero;
826 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
828 typedef struct _SHChangeProductKeyAsIDList {
829 USHORT cb;
830 WCHAR wszProductKey[39];
831 USHORT cbZero;
832 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
834 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
835 int cEntries, SHChangeNotifyEntry *pshcne);
836 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
837 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
838 LPITEMIDLIST **pppidl, LONG *plEvent);
839 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
841 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
843 /****************************************************************************
844 * SHCreateDirectory API
846 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
847 int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
848 int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
850 /****************************************************************************
851 * SHGetSpecialFolderLocation API
853 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
854 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
856 /****************************************************************************
857 * SHGetFolderPath API
859 typedef enum {
860 SHGFP_TYPE_CURRENT = 0,
861 SHGFP_TYPE_DEFAULT = 1
862 } SHGFP_TYPE;
864 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
865 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
866 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
868 #define CSIDL_DESKTOP 0x0000
869 #define CSIDL_INTERNET 0x0001
870 #define CSIDL_PROGRAMS 0x0002
871 #define CSIDL_CONTROLS 0x0003
872 #define CSIDL_PRINTERS 0x0004
873 #define CSIDL_PERSONAL 0x0005
874 #define CSIDL_FAVORITES 0x0006
875 #define CSIDL_STARTUP 0x0007
876 #define CSIDL_RECENT 0x0008
877 #define CSIDL_SENDTO 0x0009
878 #define CSIDL_BITBUCKET 0x000a
879 #define CSIDL_STARTMENU 0x000b
880 #define CSIDL_MYDOCUMENTS 0x000c
881 #define CSIDL_MYMUSIC 0x000d
882 #define CSIDL_MYVIDEO 0x000e
883 #define CSIDL_DESKTOPDIRECTORY 0x0010
884 #define CSIDL_DRIVES 0x0011
885 #define CSIDL_NETWORK 0x0012
886 #define CSIDL_NETHOOD 0x0013
887 #define CSIDL_FONTS 0x0014
888 #define CSIDL_TEMPLATES 0x0015
889 #define CSIDL_COMMON_STARTMENU 0x0016
890 #define CSIDL_COMMON_PROGRAMS 0X0017
891 #define CSIDL_COMMON_STARTUP 0x0018
892 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
893 #define CSIDL_APPDATA 0x001a
894 #define CSIDL_PRINTHOOD 0x001b
895 #define CSIDL_LOCAL_APPDATA 0x001c
896 #define CSIDL_ALTSTARTUP 0x001d
897 #define CSIDL_COMMON_ALTSTARTUP 0x001e
898 #define CSIDL_COMMON_FAVORITES 0x001f
899 #define CSIDL_INTERNET_CACHE 0x0020
900 #define CSIDL_COOKIES 0x0021
901 #define CSIDL_HISTORY 0x0022
902 #define CSIDL_COMMON_APPDATA 0x0023
903 #define CSIDL_WINDOWS 0x0024
904 #define CSIDL_SYSTEM 0x0025
905 #define CSIDL_PROGRAM_FILES 0x0026
906 #define CSIDL_MYPICTURES 0x0027
907 #define CSIDL_PROFILE 0x0028
908 #define CSIDL_SYSTEMX86 0x0029
909 #define CSIDL_PROGRAM_FILESX86 0x002a
910 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
911 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
912 #define CSIDL_COMMON_TEMPLATES 0x002d
913 #define CSIDL_COMMON_DOCUMENTS 0x002e
914 #define CSIDL_COMMON_ADMINTOOLS 0x002f
915 #define CSIDL_ADMINTOOLS 0x0030
916 #define CSIDL_CONNECTIONS 0x0031
917 #define CSIDL_COMMON_MUSIC 0x0035
918 #define CSIDL_COMMON_PICTURES 0x0036
919 #define CSIDL_COMMON_VIDEO 0x0037
920 #define CSIDL_RESOURCES 0x0038
921 #define CSIDL_RESOURCES_LOCALIZED 0x0039
922 #define CSIDL_COMMON_OEM_LINKS 0x003a
923 #define CSIDL_CDBURN_AREA 0x003b
924 #define CSIDL_COMPUTERSNEARME 0x003d
925 #define CSIDL_PROFILES 0x003e
926 #define CSIDL_FOLDER_MASK 0x00ff
927 #define CSIDL_FLAG_PER_USER_INIT 0x0800
928 #define CSIDL_FLAG_NO_ALIAS 0x1000
929 #define CSIDL_FLAG_DONT_VERIFY 0x4000
930 #define CSIDL_FLAG_CREATE 0x8000
932 #define CSIDL_FLAG_MASK 0xff00
934 /****************************************************************************
935 * SHGetDesktopFolder API
937 HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
939 /****************************************************************************
940 * SHBindToParent API
942 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
944 /****************************************************************************
945 * SHDefExtractIcon API
947 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
948 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
949 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
950 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
951 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
954 * DROPFILES for CF_HDROP and CF_PRINTERS
956 typedef struct _DROPFILES
958 DWORD pFiles;
959 POINT pt;
960 BOOL fNC;
961 BOOL fWide;
962 } DROPFILES, *LPDROPFILES;
965 * Properties of a file in the clipboard
967 typedef struct _FILEDESCRIPTORA {
968 DWORD dwFlags;
969 CLSID clsid;
970 SIZEL sizel;
971 POINTL pointl;
972 DWORD dwFileAttributes;
973 FILETIME ftCreationTime;
974 FILETIME ftLastAccessTime;
975 FILETIME ftLastWriteTime;
976 DWORD nFileSizeHigh;
977 DWORD nFileSizeLow;
978 CHAR cFileName[MAX_PATH];
979 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
981 typedef struct _FILEDESCRIPTORW {
982 DWORD dwFlags;
983 CLSID clsid;
984 SIZEL sizel;
985 POINTL pointl;
986 DWORD dwFileAttributes;
987 FILETIME ftCreationTime;
988 FILETIME ftLastAccessTime;
989 FILETIME ftLastWriteTime;
990 DWORD nFileSizeHigh;
991 DWORD nFileSizeLow;
992 WCHAR cFileName[MAX_PATH];
993 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
995 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
996 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
999 * CF_FILEGROUPDESCRIPTOR clipboard format
1001 typedef struct _FILEGROUPDESCRIPTORA {
1002 UINT cItems;
1003 FILEDESCRIPTORA fgd[1];
1004 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1006 typedef struct _FILEGROUPDESCRIPTORW {
1007 UINT cItems;
1008 FILEDESCRIPTORW fgd[1];
1009 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1011 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1012 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1014 /****************************************************************************
1015 * Cabinet functions
1018 typedef struct {
1019 WORD cLength;
1020 WORD nVersion;
1021 BOOL fFullPathTitle:1;
1022 BOOL fSaveLocalView:1;
1023 BOOL fNotShell:1;
1024 BOOL fSimpleDefault:1;
1025 BOOL fDontShowDescBar:1;
1026 BOOL fNewWindowMode:1;
1027 BOOL fShowCompColor:1;
1028 BOOL fDontPrettyNames:1;
1029 BOOL fAdminsCreateCommonGroups:1;
1030 UINT fUnusedFlags:7;
1031 UINT :0; /* Required for proper binary layout with gcc */
1032 UINT fMenuEnumFilter;
1033 } CABINETSTATE, *LPCABINETSTATE;
1035 #define CABINETSTATE_VERSION 2
1037 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1038 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1040 /****************************************************************************
1041 * Path Manipulation Routines
1043 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1045 /****************************************************************************
1046 * Drag And Drop Routines
1049 /* DAD_AutoScroll sample structure */
1050 #define NUM_POINTS 3
1051 typedef struct
1053 int iNextSample;
1054 DWORD dwLastScroll;
1055 BOOL bFull;
1056 POINT pts[NUM_POINTS];
1057 DWORD dwTimes[NUM_POINTS];
1058 } AUTO_SCROLL_DATA;
1060 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1061 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1062 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1063 BOOL WINAPI DAD_DragMove(POINT);
1064 BOOL WINAPI DAD_DragLeave(void);
1065 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1066 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1068 /*****************************************************************************
1069 * IFileSystemBindData interface
1071 #ifndef __IFileSystemBindData_FWD_DEFINED__
1072 #define __IFileSystemBindData_FWD_DEFINED__
1073 typedef struct IFileSystemBindData IFileSystemBindData;
1074 #endif
1076 #ifndef __IFileSystemBindData_INTERFACE_DEFINED__
1077 #define __IFileSystemBindData_INTERFACE_DEFINED__
1079 DEFINE_GUID(IID_IFileSystemBindData, 0x01e18d10, 0x4d8b, 0x11d2, 0x85,0x5d, 0x00,0x60,0x08,0x05,0x93,0x67);
1080 #if defined(__cplusplus) && !defined(CINTERFACE)
1081 struct IFileSystemBindData : public IUnknown
1083 virtual HRESULT STDMETHODCALLTYPE SetFindData(
1084 const WIN32_FIND_DATAW* pfd) = 0;
1086 virtual HRESULT STDMETHODCALLTYPE GetFindData(
1087 WIN32_FIND_DATAW* pfd) = 0;
1090 #else
1091 typedef struct IFileSystemBindDataVtbl IFileSystemBindDataVtbl;
1092 struct IFileSystemBindData {
1093 const IFileSystemBindDataVtbl* lpVtbl;
1095 struct IFileSystemBindDataVtbl {
1097 /*** IUnknown methods ***/
1098 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1099 IFileSystemBindData* This,
1100 REFIID riid,
1101 void** ppvObject);
1103 ULONG (STDMETHODCALLTYPE *AddRef)(
1104 IFileSystemBindData* This);
1106 ULONG (STDMETHODCALLTYPE *Release)(
1107 IFileSystemBindData* This);
1109 /*** IFileSystemBindData methods ***/
1110 HRESULT (STDMETHODCALLTYPE *SetFindData)(
1111 IFileSystemBindData* This,
1112 const WIN32_FIND_DATAW* pfd);
1114 HRESULT (STDMETHODCALLTYPE *GetFindData)(
1115 IFileSystemBindData* This,
1116 WIN32_FIND_DATAW* pfd);
1120 /*** IUnknown methods ***/
1121 #define IFileSystemBindData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1122 #define IFileSystemBindData_AddRef(p) (p)->lpVtbl->AddRef(p)
1123 #define IFileSystemBindData_Release(p) (p)->lpVtbl->Release(p)
1124 /*** IFileSystemBindData methods ***/
1125 #define IFileSystemBindData_GetFindData(p,a) (p)->lpVtbl->GetFindData(p,a)
1126 #define IFileSystemBindData_SetFindData(p,a) (p)->lpVtbl->SetFindData(p,a)
1128 #endif
1130 #define IFileSystemBindData_METHODS \
1131 /*** IUnknown methods ***/ \
1132 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
1133 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
1134 STDMETHOD_(ULONG,Release)(THIS) PURE; \
1135 /*** IFileSystemBindData methods ***/ \
1136 STDMETHOD_(HRESULT,GetFindData)(THIS_ WIN32_FIND_DATAW* pfd) PURE; \
1137 STDMETHOD_(HRESULT,SetFindData)(THIS_ const WIN32_FIND_DATAW* pfd) PURE;
1139 #endif /* __IFileSystemBindData_INTERFACE_DEFINED__ */
1141 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1142 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1143 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1144 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1145 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1146 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1147 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1148 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1149 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1150 void WINAPI ILFree(LPITEMIDLIST);
1151 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1152 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1153 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1154 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1155 HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1156 BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1157 HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1160 #include <poppack.h>
1162 #ifdef __cplusplus
1163 } /* extern "C" */
1164 #endif /* defined(__cplusplus) */
1166 #endif /* __WINE_SHLOBJ_H */