Moved ADVAPI32 files to dlls/advapi32.
[wine/multimedia.git] / include / shlobj.h
blob8f823099c5a68a5e76a2582b4d30e61ff677f594
1 #ifndef _WINE_SHLOBJ_H
2 #define _WINE_SHLOBJ_H
4 #include "shell.h"
5 #include "ole.h"
6 #include "ole2.h"
7 #include "compobj.h"
8 #include "oleobj.h"
9 #include "storage.h"
10 #include "commctrl.h"
11 #include "wintypes.h"
12 #include "interfaces.h"
14 #define STDMETHOD(xfn) HRESULT (CALLBACK *fn##xfn)
15 #define STDMETHOD_(type,xfn) type (CALLBACK *fn##xfn)
16 #define PURE
17 #define FAR
18 #define THIS_ THIS,
20 /****************************************************************************
21 * DllGetClassObject
23 DWORD WINAPI SHELL32_DllGetClassObject(LPCLSID,REFIID,LPVOID*);
26 typedef LPVOID LPBC; /* *IBindCtx really */
28 /* foreward declaration of the objects*/
29 typedef struct tagPERSISTFILE *LPPERSISTFILE, IPersistFile;
30 typedef struct tagCONTEXTMENU *LPCONTEXTMENU, IContextMenu;
31 typedef struct tagSHELLEXTINIT *LPSHELLEXTINIT,IShellExtInit;
32 typedef struct tagENUMIDLIST *LPENUMIDLIST, IEnumIDList;
33 typedef struct tagSHELLFOLDER *LPSHELLFOLDER, IShellFolder;
34 typedef struct tagSHELLVIEW *LPSHELLVIEW, IShellView;
35 typedef struct tagSHELLBROWSER *LPSHELLBROWSER,IShellBrowser;
36 typedef struct tagDATAOBJECT *LPDATAOBJECT, IDataObject;
37 typedef struct tagSHELLICON *LPSHELLICON, IShellIcon;
38 typedef struct tagDOCKINGWINDOWFRAME *LPDOCKINGWINDOWFRAME, IDockingWindowFrame;
39 typedef struct tagSERVICEPROVIDER *LPSERVICEPROVIDER, IServiceProvider;
40 typedef struct tagCOMMDLGBROWSER *LPCOMMDLGBROWSER, ICommDlgBrowser;
41 typedef struct tagENUMFORMATETC *LPENUMFORMATETC, IEnumFORMATETC;
43 /****************************************************************************
44 * SHELL ID
46 /* desktop elements */
47 DEFINE_GUID (IID_MyComputer, 0x20D04FE0L, 0x3AEA, 0x1069, 0xA2, 0xD8, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
49 /* strange Objects */
50 DEFINE_SHLGUID(IID_IEnumUnknown, 0x00000100L, 0, 0);
51 DEFINE_SHLGUID(IID_IEnumString, 0x00000101L, 0, 0);
52 DEFINE_SHLGUID(IID_IEnumMoniker, 0x00000102L, 0, 0);
53 DEFINE_SHLGUID(IID_IEnumFORMATETC, 0x00000103L, 0, 0);
54 DEFINE_SHLGUID(IID_IEnumOLEVERB, 0x00000104L, 0, 0);
55 DEFINE_SHLGUID(IID_IEnumSTATDATA, 0x00000105L, 0, 0);
57 DEFINE_SHLGUID(IID_IPersistStream, 0x00000109L, 0, 0);
58 DEFINE_SHLGUID(IID_IPersistStorage, 0x0000010AL, 0, 0);
59 DEFINE_SHLGUID(IID_IPersistFile, 0x0000010BL, 0, 0);
60 DEFINE_SHLGUID(IID_IPersist, 0x0000010CL, 0, 0);
61 DEFINE_SHLGUID(IID_IViewObject, 0x0000010DL, 0, 0);
62 DEFINE_SHLGUID(IID_IDataObject, 0x0000010EL, 0, 0);
64 DEFINE_SHLGUID(IID_IDropSource, 0x00000121L, 0, 0);
65 DEFINE_SHLGUID(IID_IDropTarget, 0x00000122L, 0, 0);
67 DEFINE_GUID (IID_IServiceProvider, 0x6D5140C1L, 0x7436, 0x11CE, 0x80, 0x34, 0x00, 0xAA, 0x00, 0x60, 0x09, 0xFA);
68 DEFINE_GUID (IID_IDockingWindow, 0x012dd920L, 0x7B26, 0x11D0, 0x8C, 0xA9, 0x00, 0xA0, 0xC9, 0x2D, 0xBF, 0xE8);
69 DEFINE_GUID (IID_IDockingWindowSite, 0x2A342FC2L, 0x7B26, 0x11D0, 0x8C, 0xA9, 0x00, 0xA0, 0xC9, 0x2D, 0xBF, 0xE8);
70 DEFINE_GUID (IID_IDockingWindowFrame, 0x47D2657AL, 0x7B27, 0x11D0, 0x8C, 0xA9, 0x00, 0xA0, 0xC9, 0x2D, 0xBF, 0xE8);
72 DEFINE_SHLGUID(CLSID_ShellDesktop, 0x00021400L, 0, 0);
73 DEFINE_SHLGUID(CLSID_ShellLink, 0x00021401L, 0, 0);
75 /* shell32 formatids */
76 DEFINE_SHLGUID(FMTID_Intshcut, 0x000214A0L, 0, 0);
77 DEFINE_SHLGUID(FMTID_InternetSite, 0x000214A1L, 0, 0);
78 /* command group ids */
79 DEFINE_SHLGUID(CGID_Explorer, 0x000214D0L, 0, 0);
80 DEFINE_SHLGUID(CGID_ShellDocView, 0x000214D1L, 0, 0);
82 /* shell32interface ids */
83 DEFINE_SHLGUID(IID_INewShortcutHookA, 0x000214E1L, 0, 0);
84 DEFINE_SHLGUID(IID_IShellBrowser, 0x000214E2L, 0, 0);
85 #define SID_SShellBrowser IID_IShellBrowser
86 DEFINE_SHLGUID(IID_IShellView, 0x000214E3L, 0, 0);
87 DEFINE_SHLGUID(IID_IContextMenu, 0x000214E4L, 0, 0);
88 DEFINE_SHLGUID(IID_IShellIcon, 0x000214E5L, 0, 0);
89 DEFINE_SHLGUID(IID_IShellFolder, 0x000214E6L, 0, 0);
90 DEFINE_SHLGUID(IID_IShellExtInit, 0x000214E8L, 0, 0);
91 DEFINE_SHLGUID(IID_IShellPropSheetExt, 0x000214E9L, 0, 0);
92 DEFINE_SHLGUID(IID_IExtractIcon, 0x000214EBL, 0, 0);
93 DEFINE_SHLGUID(IID_IShellLink, 0x000214EEL, 0, 0);
94 DEFINE_SHLGUID(IID_IShellCopyHook, 0x000214EFL, 0, 0);
95 DEFINE_SHLGUID(IID_IFileViewer, 0x000214F0L, 0, 0);
96 DEFINE_SHLGUID(IID_ICommDlgBrowser, 0x000214F1L, 0, 0);
97 DEFINE_SHLGUID(IID_IEnumIDList, 0x000214F2L, 0, 0);
98 DEFINE_SHLGUID(IID_IFileViewerSite, 0x000214F3L, 0, 0);
99 DEFINE_SHLGUID(IID_IContextMenu2, 0x000214F4L, 0, 0);
100 DEFINE_SHLGUID(IID_IShellExecuteHookA, 0x000214F5L, 0, 0);
101 DEFINE_SHLGUID(IID_IPropSheetPage, 0x000214F6L, 0, 0);
102 DEFINE_SHLGUID(IID_INewShortcutHookW, 0x000214F7L, 0, 0);
103 DEFINE_SHLGUID(IID_IFileViewerW, 0x000214F8L, 0, 0);
104 DEFINE_SHLGUID(IID_IShellLinkW, 0x000214F9L, 0, 0);
105 DEFINE_SHLGUID(IID_IExtractIconW, 0x000214FAL, 0, 0);
106 DEFINE_SHLGUID(IID_IShellExecuteHookW, 0x000214FBL, 0, 0);
107 DEFINE_SHLGUID(IID_IShellCopyHookW, 0x000214FCL, 0, 0);
109 /****************************************************************************
110 * STRRET
112 #define STRRET_WSTR 0x0000
113 #define STRRET_OFFSETA 0x0001
114 #define STRRET_CSTRA 0x0002
115 #define STRRET_ASTR 0X0003
116 #define STRRET_OFFSETW 0X0004
117 #define STRRET_CSTRW 0X0005
120 typedef struct _STRRET
121 { UINT32 uType; /* STRRET_xxx */
122 union
123 { LPWSTR pOleStr; /* OLESTR that will be freed */
124 LPSTR pStr;
125 UINT32 uOffset; /* OffsetINT32o SHITEMID (ANSI) */
126 char cStr[MAX_PATH]; /* Buffer to fill in */
127 WCHAR cStrW[MAX_PATH];
129 } STRRET,*LPSTRRET;
130 /*****************************************************************************
131 * IPersistFile interface
133 #define THIS LPPERSISTFILE this
134 typedef struct IPersistFile_VTable
135 { /* *** IUnknown methods *** */
136 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
137 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
138 STDMETHOD_(ULONG,Release) (THIS) PURE;
140 STDMETHOD(GetClassID )(THIS_ CLSID *pClassID) PURE;
141 STDMETHOD(IsDirty )(THIS) PURE;
142 STDMETHOD(Load )(THIS_ LPCOLESTR32 pszFileName, DWORD dwMode) PURE;
143 STDMETHOD(Save )(THIS_ LPCOLESTR32 pszFileName, BOOL32 fRemember) PURE;
144 STDMETHOD(SaveCompleted )(THIS_ LPCOLESTR32 pszFileName) PURE;
145 STDMETHOD(GetCurFile )(THIS_ LPOLESTR32 *ppszFileName) PURE;
147 } IPersistFile_VTable,*LPPERSISTFILE_VTABLE;
149 struct tagPERSISTFILE
150 { LPPERSISTFILE_VTABLE lpvtbl;
151 DWORD ref;
154 #undef THIS
155 /*****************************************************************************
156 * IContextMenu interface
158 #define THIS LPCONTEXTMENU this
160 /* default menu items*/
161 #define IDM_EXPLORE 0
162 #define IDM_OPEN 1
163 #define IDM_RENAME 2
164 #define IDM_LAST IDM_RENAME
166 /* QueryContextMenu uFlags */
167 #define CMF_NORMAL 0x00000000
168 #define CMF_DEFAULTONLY 0x00000001
169 #define CMF_VERBSONLY 0x00000002
170 #define CMF_EXPLORE 0x00000004
171 #define CMF_NOVERBS 0x00000008
172 #define CMF_CANRENAME 0x00000010
173 #define CMF_NODEFAULT 0x00000020
174 #define CMF_INCLUDESTATIC 0x00000040
175 #define CMF_RESERVED 0xffff0000 /* View specific */
177 /* GetCommandString uFlags */
178 #define GCS_VERBA 0x00000000 /* canonical verb */
179 #define GCS_HELPTEXTA 0x00000001 /* help text (for status bar) */
180 #define GCS_VALIDATEA 0x00000002 /* validate command exists */
181 #define GCS_VERBW 0x00000004 /* canonical verb (unicode) */
182 #define GCS_HELPTEXTW 0x00000005 /* help text (unicode version) */
183 #define GCS_VALIDATEW 0x00000006 /* validate command exists (unicode) */
184 #define GCS_UNICODE 0x00000004 /* for bit testing - Unicode string */
186 #define GCS_VERB GCS_VERBA
187 #define GCS_HELPTEXT GCS_HELPTEXTA
188 #define GCS_VALIDATE GCS_VALIDATEA
190 #define CMDSTR_NEWFOLDERA "NewFolder"
191 #define CMDSTR_VIEWLISTA "ViewList"
192 #define CMDSTR_VIEWDETAILSA "ViewDetails"
193 #define CMDSTR_NEWFOLDERW L"NewFolder"
194 #define CMDSTR_VIEWLISTW L"ViewList"
195 #define CMDSTR_VIEWDETAILSW L"ViewDetails"
197 #define CMDSTR_NEWFOLDER CMDSTR_NEWFOLDERA
198 #define CMDSTR_VIEWLIST CMDSTR_VIEWLISTA
199 #define CMDSTR_VIEWDETAILS CMDSTR_VIEWDETAILSA
201 #define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY
202 #define CMIC_MASK_ICON SEE_MASK_ICON
203 #define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI
204 #define CMIC_MASK_UNICODE SEE_MASK_UNICODE
205 #define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE
206 #define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME
207 #define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM
208 #define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE
209 #define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK
211 #define CMIC_MASK_PTINVOKE 0x20000000
213 /*NOTE: When SEE_MASK_HMONITOR is set, hIcon is treated as hMonitor */
214 typedef struct tagCMINVOKECOMMANDINFO
215 { DWORD cbSize; /* sizeof(CMINVOKECOMMANDINFO) */
216 DWORD fMask; /* any combination of CMIC_MASK_* */
217 HWND32 hwnd; /* might be NULL (indicating no owner window) */
218 LPCSTR lpVerb; /* either a string or MAKEINTRESOURCE(idOffset) */
219 LPCSTR lpParameters; /* might be NULL (indicating no parameter) */
220 LPCSTR lpDirectory; /* might be NULL (indicating no specific directory) */
221 INT32 nShow; /* one of SW_ values for ShowWindow() API */
223 DWORD dwHotKey;
224 HANDLE32 hIcon;
225 } CMINVOKECOMMANDINFO32, *LPCMINVOKECOMMANDINFO32;
227 typedef struct tagCMInvokeCommandInfoEx
228 { DWORD cbSize; /* must be sizeof(CMINVOKECOMMANDINFOEX) */
229 DWORD fMask; /* any combination of CMIC_MASK_* */
230 HWND32 hwnd; /* might be NULL (indicating no owner window) */
231 LPCSTR lpVerb; /* either a string or MAKEINTRESOURCE(idOffset) */
232 LPCSTR lpParameters; /* might be NULL (indicating no parameter) */
233 LPCSTR lpDirectory; /* might be NULL (indicating no specific directory) */
234 INT32 nShow; /* one of SW_ values for ShowWindow() API */
236 DWORD dwHotKey;
238 HANDLE32 hIcon;
239 LPCSTR lpTitle; /* For CreateProcess-StartupInfo.lpTitle */
240 LPCWSTR lpVerbW; /* Unicode verb (for those who can use it) */
241 LPCWSTR lpParametersW; /* Unicode parameters (for those who can use it) */
242 LPCWSTR lpDirectoryW; /* Unicode directory (for those who can use it) */
243 LPCWSTR lpTitleW; /* Unicode title (for those who can use it) */
244 POINT32 ptInvoke; /* Point where it's invoked */
246 } CMINVOKECOMMANDINFOEX32, *LPCMINVOKECOMMANDINFOEX32;
249 typedef struct IContextMenu_VTable
250 { /* *** IUnknown methods *** */
251 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
252 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
253 STDMETHOD_(ULONG,Release) (THIS) PURE;
255 STDMETHOD(QueryContextMenu)(THIS_ HMENU32 hmenu,UINT32 indexMenu,UINT32 idCmdFirst, UINT32 idCmdLast,UINT32 uFlags) PURE;
256 STDMETHOD(InvokeCommand)(THIS_ LPCMINVOKECOMMANDINFO32 lpici) PURE;
257 STDMETHOD(GetCommandString)(THIS_ UINT32 idCmd,UINT32 uType,UINT32 * pwReserved,LPSTR pszName,UINT32 cchMax) PURE;
259 /* undocumented not only in ContextMenu2 */
260 STDMETHOD(HandleMenuMsg)(THIS_ UINT32 uMsg,WPARAM32 wParam,LPARAM lParam) PURE;
262 /* possibly another nasty entry from ContextMenu3 ?*/
263 void * guard;
264 } IContextMenu_VTable,*LPCONTEXTMENU_VTABLE;
266 struct tagCONTEXTMENU
267 { LPCONTEXTMENU_VTABLE lpvtbl;
268 DWORD ref;
269 LPSHELLFOLDER pSFParent;
270 LPITEMIDLIST *aPidls;
271 BOOL32 bAllValues;
274 #undef THIS
275 /*****************************************************************************
276 * structures for shell clipboard formats
278 typedef enum tagDVASPECT
279 { DVASPECT_CONTENT = 1,
280 DVASPECT_THUMBNAIL = 2,
281 DVASPECT_ICON = 4,
282 DVASPECT_DOCPRINT = 8
283 } DVASPECT;
285 typedef enum tagTYMED
286 { TYMED_HGLOBAL = 1,
287 TYMED_FILE = 2,
288 TYMED_ISTREAM = 4,
289 TYMED_ISTORAGE = 8,
290 TYMED_GDI = 16,
291 TYMED_MFPICT = 32,
292 TYMED_ENHMF = 64,
293 TYMED_NULL = 0
294 } TYMED;
296 typedef struct
297 { DWORD tdSize;
298 WORD tdDriverNameOffset;
299 WORD tdDeviceNameOffset;
300 WORD tdPortNameOffset;
301 WORD tdExtDevmodeOffset;
302 BYTE tdData[ 1 ];
303 } DVTARGETDEVICE32;
305 typedef WORD CLIPFORMAT32, *LPCLIPFORMAT32;
307 /* dataobject as answer to a request */
308 typedef struct
309 { DWORD tymed;
310 union
311 { HBITMAP32 hBitmap;
312 /*HMETAFILEPICT32 hMetaFilePict;*/
313 /*HENHMETAFILE32 hEnhMetaFile;*/
314 HGLOBAL32 hGlobal;
315 LPOLESTR32 lpszFileName;
316 IStream32 *pstm;
317 IStorage32 *pstg;
318 } u;
319 IUnknown *pUnkForRelease;
320 } STGMEDIUM32;
322 /* wished data format */
323 typedef struct
324 { CLIPFORMAT32 cfFormat;
325 DVTARGETDEVICE32 *ptd;
326 DWORD dwAspect;
327 LONG lindex;
328 DWORD tymed;
329 } FORMATETC32, *LPFORMATETC32;
331 /* shell specific clipboard formats */
333 /* DATAOBJECT_InitShellIDList*/
334 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
336 extern UINT32 cfShellIDList;
338 typedef struct
339 { UINT32 cidl;
340 UINT32 aoffset[1];
341 } CIDA, *LPCIDA;
343 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
344 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
346 /* DATAOBJECT_InitFileGroupDesc */
347 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
348 extern UINT32 cfFileGroupDesc;
350 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
352 /* DATAOBJECT_InitFileContents*/
353 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
354 extern UINT32 cfFileContents;
356 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
357 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
358 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
359 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
360 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
361 #define CFSTR_SHELLURL "UniformResourceLocator"
362 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
363 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
364 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
365 #define CFSTR_INDRAGLOOP "InShellDragLoop"
367 /**************************************************************************
368 * IDLList "Item ID List List"
370 * NOTES
371 * interal data holder for IDataObject
373 typedef struct tagLPIDLLIST *LPIDLLIST, IDLList;
375 #define THIS LPIDLLIST this
377 typedef enum
378 { State_UnInit=1,
379 State_Init=2,
380 State_OutOfMem=3
381 } IDLListState;
383 typedef struct IDLList_VTable
384 { STDMETHOD_(UINT32, GetState)(THIS);
385 STDMETHOD_(LPITEMIDLIST, GetElement)(THIS_ UINT32 nIndex);
386 STDMETHOD_(UINT32, GetCount)(THIS);
387 STDMETHOD_(BOOL32, StoreItem)(THIS_ LPITEMIDLIST pidl);
388 STDMETHOD_(BOOL32, AddItems)(THIS_ LPITEMIDLIST *apidl, UINT32 cidl);
389 STDMETHOD_(BOOL32, InitList)(THIS);
390 STDMETHOD_(void, CleanList)(THIS);
391 } IDLList_VTable,*LPIDLLIST_VTABLE;
393 struct tagLPIDLLIST
394 { LPIDLLIST_VTABLE lpvtbl;
395 HDPA dpa;
396 UINT32 uStep;
399 extern LPIDLLIST IDLList_Constructor (UINT32 uStep);
400 extern void IDLList_Destructor(LPIDLLIST this);
401 #undef THIS
402 /*****************************************************************************
403 * IEnumFORMATETC interface
405 #define THIS LPENUMFORMATETC this
407 typedef struct IEnumFORMATETC_VTable
408 { /* IUnknown methods */
409 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
410 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
411 STDMETHOD_(ULONG,Release) (THIS) PURE;
413 /* IEnumFORMATETC methods */
414 STDMETHOD (Next)(THIS_ ULONG celt, FORMATETC32 *rgelt, ULONG *pceltFethed) PURE;
415 STDMETHOD (Skip)(THIS_ ULONG celt) PURE;
416 STDMETHOD (Reset)(THIS) PURE;
417 STDMETHOD (Clone)(THIS_ IEnumFORMATETC ** ppenum) PURE;
418 } IEnumFORMATETC_VTable,*LPENUMFORMATETC_VTABLE;
420 struct tagENUMFORMATETC
421 { LPENUMFORMATETC_VTABLE lpvtbl;
422 DWORD ref;
423 UINT32 posFmt;
424 UINT32 countFmt;
425 LPFORMATETC32 pFmt;
428 #undef THIS
430 /*****************************************************************************
431 * IDataObject interface
433 #define THIS LPDATAOBJECT this
435 typedef struct IDataObject_VTable
436 { /*** IUnknown methods ***/
437 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
438 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
439 STDMETHOD_(ULONG,Release) (THIS) PURE;
441 STDMETHOD (GetData )(THIS_ LPFORMATETC32 pformatetcIn, STGMEDIUM32 *pmedium) PURE;
442 STDMETHOD (GetDataHere)(THIS_ LPFORMATETC32 pformatetc, STGMEDIUM32 *pmedium) PURE;
443 STDMETHOD (QueryGetData)(THIS_ LPFORMATETC32 pformatetc) PURE;
444 STDMETHOD (GetCanonicalFormatEtc)(THIS_ LPFORMATETC32 pformatectIn, LPFORMATETC32 pformatetcOut) PURE;
445 STDMETHOD (SetData)(THIS_ LPFORMATETC32 pformatetc, STGMEDIUM32 *pmedium, BOOL32 fRelease) PURE;
446 STDMETHOD (EnumFormatEtc)(THIS_ DWORD dwDirection, IEnumFORMATETC **ppenumFormatEtc) PURE;
447 STDMETHOD (DAdvise )(THIS_ LPFORMATETC32 *pformatetc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection) PURE;
448 STDMETHOD (DUnadvise)(THIS_ DWORD dwConnection) PURE;
449 STDMETHOD (EnumDAdvise)(THIS_ IEnumSTATDATA **ppenumAdvise) PURE;
450 } IDataObject_VTable,*LPDATAOBJECT_VTABLE;
452 struct tagDATAOBJECT
453 { LPDATAOBJECT_VTABLE lpvtbl;
454 DWORD ref;
455 LPSHELLFOLDER psf;
456 LPIDLLIST lpill; /* the data of the dataobject */
457 LPITEMIDLIST pidl;
460 #undef THIS
463 /*****************************************************************************
464 * IShellExtInit interface
466 #define THIS LPSHELLEXTINIT this
468 typedef struct IShellExtInit_VTable
469 { /* *** IUnknown methods *** */
470 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
471 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
472 STDMETHOD_(ULONG,Release) (THIS) PURE;
474 /* *** IShellExtInit methods *** */
475 STDMETHOD(Initialize)(THIS_ LPCITEMIDLIST pidlFolder, LPDATAOBJECT lpdobj, HKEY hkeyProgID) PURE;
476 } IShellExtInit_VTable,*LPSHELLEXTINIT_VTABLE;
478 struct tagSHELLEXTINIT
479 { LPSHELLEXTINIT_VTABLE lpvtbl;
480 DWORD ref;
483 #undef THIS
485 /*****************************************************************************
486 * IEnumIDList interface
488 #define THIS LPENUMIDLIST this
490 typedef struct tagENUMLIST
491 { struct tagENUMLIST *pNext;
492 LPITEMIDLIST pidl;
493 } ENUMLIST, *LPENUMLIST;
495 typedef struct IEnumIDList_VTable
496 { /* *** IUnknown methods *** */
497 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
498 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
499 STDMETHOD_(ULONG,Release) (THIS) PURE;
501 /* *** IEnumIDList methods *** */
502 STDMETHOD(Next) (THIS_ ULONG celt,
503 LPITEMIDLIST *rgelt,
504 ULONG *pceltFetched) PURE;
505 STDMETHOD(Skip) (THIS_ ULONG celt) PURE;
506 STDMETHOD(Reset) (THIS) PURE;
507 STDMETHOD(Clone) (THIS_ IEnumIDList **ppenum) PURE;
508 /* *** private methods *** */
509 STDMETHOD_(BOOL32,CreateEnumList)(THIS_ LPCSTR, DWORD) PURE;
510 STDMETHOD_(BOOL32,AddToEnumList)(THIS_ LPITEMIDLIST) PURE;
511 STDMETHOD_(BOOL32,DeleteList)(THIS) PURE;
514 } IEnumIDList_VTable,*LPENUMIDLIST_VTABLE;
516 struct tagENUMIDLIST
517 { LPENUMIDLIST_VTABLE lpvtbl;
518 DWORD ref;
519 LPENUMLIST mpFirst;
520 LPENUMLIST mpLast;
521 LPENUMLIST mpCurrent;
524 #undef THIS
525 /*-------------------------------------------------------------------------- */
526 /* */
527 /* FOLDERSETTINGS */
528 /* */
529 /* FOLDERSETTINGS is a data structure that explorer passes from one folder */
530 /* view to another, when the user is browsing. It calls ISV::GetCurrentInfo */
531 /* member to get the current settings and pass it to ISV::CreateViewWindow */
532 /* to allow the next folder view "inherit" it. These settings assumes a */
533 /* particular UI (which the shell's folder view has), and shell extensions */
534 /* may or may not use those settings. */
535 /* */
536 /*-------------------------------------------------------------------------- */
538 typedef LPBYTE LPVIEWSETTINGS;
540 /* NB Bitfields. */
541 /* FWF_DESKTOP implies FWF_TRANSPARENT/NOCLIENTEDGE/NOSCROLL */
542 typedef enum
543 { FWF_AUTOARRANGE = 0x0001,
544 FWF_ABBREVIATEDNAMES = 0x0002,
545 FWF_SNAPTOGRID = 0x0004,
546 FWF_OWNERDATA = 0x0008,
547 FWF_BESTFITWINDOW = 0x0010,
548 FWF_DESKTOP = 0x0020,
549 FWF_SINGLESEL = 0x0040,
550 FWF_NOSUBFOLDERS = 0x0080,
551 FWF_TRANSPARENT = 0x0100,
552 FWF_NOCLIENTEDGE = 0x0200,
553 FWF_NOSCROLL = 0x0400,
554 FWF_ALIGNLEFT = 0x0800,
555 FWF_SINGLECLICKACTIVATE=0x8000 /* TEMPORARY -- NO UI FOR THIS */
556 } FOLDERFLAGS;
558 typedef enum
559 { FVM_ICON = 1,
560 FVM_SMALLICON = 2,
561 FVM_LIST = 3,
562 FVM_DETAILS = 4
563 } FOLDERVIEWMODE;
565 typedef struct
566 { UINT32 ViewMode; /* View mode (FOLDERVIEWMODE values) */
567 UINT32 fFlags; /* View options (FOLDERFLAGS bits) */
568 } FOLDERSETTINGS, *LPFOLDERSETTINGS;
570 typedef const FOLDERSETTINGS * LPCFOLDERSETTINGS;
572 /************************************************************************
573 * IShellFolder interface
576 #define THIS LPSHELLFOLDER this
578 /* IShellFolder::GetDisplayNameOf/SetNameOf uFlags */
579 typedef enum
580 { SHGDN_NORMAL = 0, /* default (display purpose) */
581 SHGDN_INFOLDER = 1, /* displayed under a folder (relative)*/
582 SHGDN_FORPARSING = 0x8000 /* for ParseDisplayName or path */
583 } SHGNO;
585 /* IShellFolder::EnumObjects */
586 typedef enum tagSHCONTF
587 { SHCONTF_FOLDERS = 32, /* for shell browser */
588 SHCONTF_NONFOLDERS = 64, /* for default view */
589 SHCONTF_INCLUDEHIDDEN = 128 /* for hidden/system objects */
590 } SHCONTF;
592 /* from oleidl.h */
593 #define DROPEFFECT_NONE 0
594 #define DROPEFFECT_COPY 1
595 #define DROPEFFECT_MOVE 2
596 #define DROPEFFECT_LINK 4
597 #define DROPEFFECT_SCROLL 0x80000000
599 /* IShellFolder::GetAttributesOf flags */
600 #define SFGAO_CANCOPY DROPEFFECT_COPY /* Objects can be copied */
601 #define SFGAO_CANMOVE DROPEFFECT_MOVE /* Objects can be moved */
602 #define SFGAO_CANLINK DROPEFFECT_LINK /* Objects can be linked */
603 #define SFGAO_CANRENAME 0x00000010L /* Objects can be renamed */
604 #define SFGAO_CANDELETE 0x00000020L /* Objects can be deleted */
605 #define SFGAO_HASPROPSHEET 0x00000040L /* Objects have property sheets */
606 #define SFGAO_DROPTARGET 0x00000100L /* Objects are drop target */
607 #define SFGAO_CAPABILITYMASK 0x00000177L
608 #define SFGAO_LINK 0x00010000L /* Shortcut (link) */
609 #define SFGAO_SHARE 0x00020000L /* shared */
610 #define SFGAO_READONLY 0x00040000L /* read-only */
611 #define SFGAO_GHOSTED 0x00080000L /* ghosted icon */
612 #define SFGAO_DISPLAYATTRMASK 0x000F0000L
613 #define SFGAO_FILESYSANCESTOR 0x10000000L /* It contains file system folder */
614 #define SFGAO_FOLDER 0x20000000L /* It's a folder. */
615 #define SFGAO_FILESYSTEM 0x40000000L /* is a file system thing (file/folder/root) */
616 #define SFGAO_HASSUBFOLDER 0x80000000L /* Expandable in the map pane */
617 #define SFGAO_CONTENTSMASK 0x80000000L
618 #define SFGAO_VALIDATE 0x01000000L /* invalidate cached information */
619 #define SFGAO_REMOVABLE 0x02000000L /* is this removeable media? */
621 typedef struct IShellFolder_VTable {
622 /* *** IUnknown methods *** */
623 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
624 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
625 STDMETHOD_(ULONG,Release) (THIS) PURE;
627 /* *** IShellFolder methods *** */
628 STDMETHOD(ParseDisplayName) (THIS_ HWND32 hwndOwner,LPBC pbcReserved, LPOLESTR32 lpszDisplayName,ULONG * pchEaten, LPITEMIDLIST * ppidl, ULONG *pdwAttributes) PURE;
629 STDMETHOD(EnumObjects)( THIS_ HWND32 hwndOwner, DWORD grfFlags, LPENUMIDLIST * ppenumIDList) PURE;
630 STDMETHOD(BindToObject)(THIS_ LPCITEMIDLIST pidl, LPBC pbcReserved,REFIID riid, LPVOID * ppvOut) PURE;
631 STDMETHOD(BindToStorage)(THIS_ LPCITEMIDLIST pidl, LPBC pbcReserved,REFIID riid, LPVOID * ppvObj) PURE;
632 STDMETHOD(CompareIDs)(THIS_ LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2) PURE;
633 STDMETHOD(CreateViewObject)(THIS_ HWND32 hwndOwner, REFIID riid, LPVOID * ppvOut) PURE;
634 STDMETHOD(GetAttributesOf)(THIS_ UINT32 cidl, LPCITEMIDLIST * apidl,ULONG * rgfInOut) PURE;
635 STDMETHOD(GetUIObjectOf)(THIS_ HWND32 hwndOwner, UINT32 cidl, LPCITEMIDLIST * apidl,REFIID riid, UINT32 * prgfInOut, LPVOID * ppvOut) PURE;
636 STDMETHOD(GetDisplayNameOf)(THIS_ LPCITEMIDLIST pidl, DWORD uFlags, LPSTRRET lpName) PURE;
637 STDMETHOD(SetNameOf)(THIS_ HWND32 hwndOwner, LPCITEMIDLIST pidl,LPCOLESTR32 lpszName, DWORD uFlags,LPITEMIDLIST * ppidlOut) PURE;
639 /* utility functions */
640 STDMETHOD_(BOOL32,GetFolderPath)(THIS_ LPSTR, DWORD);
642 } *LPSHELLFOLDER_VTABLE,IShellFolder_VTable;
644 struct tagSHELLFOLDER {
645 LPSHELLFOLDER_VTABLE lpvtbl;
646 DWORD ref;
647 LPSTR sMyPath;
648 LPITEMIDLIST pMyPidl;
649 LPITEMIDLIST mpidl;
650 LPSHELLFOLDER mpSFParent;
653 extern LPSHELLFOLDER pdesktopfolder;
655 /************************
656 * Shellfolder API
658 DWORD WINAPI SHGetDesktopFolder(LPSHELLFOLDER *);
659 #undef THIS
661 /************************************************************************
662 * IShellBrowser interface
664 #define THIS LPSHELLBROWSER this
665 /* targets for GetWindow/SendControlMsg */
666 #define FCW_STATUS 0x0001
667 #define FCW_TOOLBAR 0x0002
668 #define FCW_TREE 0x0003
669 #define FCW_INTERNETBAR 0x0006
670 #define FCW_PROGRESS 0x0008
672 /* wFlags for BrowseObject*/
673 #define SBSP_DEFBROWSER 0x0000
674 #define SBSP_SAMEBROWSER 0x0001
675 #define SBSP_NEWBROWSER 0x0002
677 #define SBSP_DEFMODE 0x0000
678 #define SBSP_OPENMODE 0x0010
679 #define SBSP_EXPLOREMODE 0x0020
681 #define SBSP_ABSOLUTE 0x0000
682 #define SBSP_RELATIVE 0x1000
683 #define SBSP_PARENT 0x2000
684 #define SBSP_NAVIGATEBACK 0x4000
685 #define SBSP_NAVIGATEFORWARD 0x8000
687 #define SBSP_ALLOW_AUTONAVIGATE 0x10000
689 #define SBSP_INITIATEDBYHLINKFRAME 0x80000000
690 #define SBSP_REDIRECT 0x40000000
691 #define SBSP_WRITENOHISTORY 0x08000000
693 /* uFlage for SetToolbarItems */
694 #define FCT_MERGE 0x0001
695 #define FCT_CONFIGABLE 0x0002
696 #define FCT_ADDTOEND 0x0004
698 /* undocumented, found in the web posted by Chris Becke */
699 #define CWM_SETPATH (WM_USER+2)
700 #define CWM_WANTIDLE (WM_USER+3)
701 #define CWM_GETSETCURRENTINFO (WM_USER+4)
702 #define CWM_SELECTITEM (WM_USER+5)
703 #define CWM_STOPWAITING (WM_USER+6)
704 #define CWM_GETISHELLBROWSER (WM_USER+7)
706 typedef struct IShellBrowser_VTable
707 { /* *** IUnknown methods *** */
708 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
709 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
710 STDMETHOD_(ULONG,Release) (THIS) PURE;
712 /* *** IOleWindow methods *** */
713 STDMETHOD(GetWindow) (THIS_ HWND32 * lphwnd) PURE;
714 STDMETHOD(ContextSensitiveHelp) (THIS_ BOOL32 fEnterMode) PURE;
716 /* *** IShellBrowser methods *** (same as IOleInPlaceFrame) */
717 STDMETHOD(InsertMenusSB) (THIS_ HMENU32 hmenuShared, LPOLEMENUGROUPWIDTHS32 lpMenuWidths) PURE;
718 STDMETHOD(SetMenuSB) (THIS_ HMENU32 hmenuShared, HOLEMENU32 holemenuReserved, HWND32 hwndActiveObject) PURE;
719 STDMETHOD(RemoveMenusSB) (THIS_ HMENU32 hmenuShared) PURE;
720 STDMETHOD(SetStatusTextSB) (THIS_ LPCOLESTR32 lpszStatusText) PURE;
721 STDMETHOD(EnableModelessSB) (THIS_ BOOL32 fEnable) PURE;
722 STDMETHOD(TranslateAcceleratorSB) (THIS_ LPMSG32 lpmsg, WORD wID) PURE;
724 /* *** IShellBrowser methods *** */
725 STDMETHOD(BrowseObject)(THIS_ LPCITEMIDLIST pidl, UINT32 wFlags) PURE;
726 STDMETHOD(GetViewStateStream)(THIS_ DWORD grfMode, LPSTREAM32 *ppStrm) PURE;
727 STDMETHOD(GetControlWindow)(THIS_ UINT32 id, HWND32 * lphwnd) PURE;
728 STDMETHOD(SendControlMsg)(THIS_ UINT32 id, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam, LRESULT * pret) PURE;
729 STDMETHOD(QueryActiveShellView)(THIS_ IShellView ** ppshv) PURE;
730 STDMETHOD(OnViewWindowActive)(THIS_ IShellView * ppshv) PURE;
731 STDMETHOD(SetToolbarItems)(THIS_ LPTBBUTTON lpButtons, UINT32 nButtons, UINT32 uFlags) PURE;
732 } *LPSHELLBROWSER_VTABLE,IShellBrowser_VTable;
734 struct tagSHELLBROWSER
735 { LPSHELLBROWSER_VTABLE lpvtbl;
736 DWORD ref;
739 #undef THIS
741 /************************************************************************
742 * IShellView interface
744 #define THIS LPSHELLVIEW this
746 /* shellview select item flags*/
747 #define SVSI_DESELECT 0x0000
748 #define SVSI_SELECT 0x0001
749 #define SVSI_EDIT 0x0003 /* includes select */
750 #define SVSI_DESELECTOTHERS 0x0004
751 #define SVSI_ENSUREVISIBLE 0x0008
752 #define SVSI_FOCUSED 0x0010
754 /* shellview get item object flags */
755 #define SVGIO_BACKGROUND 0x00000000
756 #define SVGIO_SELECTION 0x00000001
757 #define SVGIO_ALLVIEW 0x00000002
759 /* The explorer dispatches WM_COMMAND messages based on the range of
760 command/menuitem IDs. All the IDs of menuitems that the view (right
761 pane) inserts must be in FCIDM_SHVIEWFIRST/LAST (otherwise, the explorer
762 won't dispatch them). The view should not deal with any menuitems
763 in FCIDM_BROWSERFIRST/LAST (otherwise, it won't work with the future
764 version of the shell).
766 FCIDM_SHVIEWFIRST/LAST for the right pane (IShellView)
767 FCIDM_BROWSERFIRST/LAST for the explorer frame (IShellBrowser)
768 FCIDM_GLOBAL/LAST for the explorer's submenu IDs
770 #define FCIDM_SHVIEWFIRST 0x0000
771 /* undocumented */
772 #define FCIDM_SHVIEW_ARRANGE 0x7001
773 #define FCIDM_SHVIEW_DELETE 0x7011
774 #define FCIDM_SHVIEW_PROPERTIES 0x7013
775 #define FCIDM_SHVIEW_CUT 0x7018
776 #define FCIDM_SHVIEW_COPY 0x7019
777 #define FCIDM_SHVIEW_INSERT 0x701A
778 #define FCIDM_SHVIEW_UNDO 0x701B
779 #define FCIDM_SHVIEW_INSERTLINK 0x701C
780 #define FCIDM_SHVIEW_SELECTALL 0x7021
781 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
782 #define FCIDM_SHVIEW_BIGICON 0x7029
783 #define FCIDM_SHVIEW_SMALLICON 0x702A
784 #define FCIDM_SHVIEW_LISTVIEW 0x702B
785 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
786 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
787 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
788 #define FCIDM_SHVIEW_HELP 0x7041
790 #define FCIDM_SHVIEWLAST 0x7fff
791 #define FCIDM_BROWSERFIRST 0xA000
792 /* undocumented toolbar items from stddlg's*/
793 #define FCIDM_TB_SMALLICON 0xA003
794 #define FCIDM_TB_REPORTVIEW 0xA004
796 #define FCIDM_BROWSERLAST 0xbf00
797 #define FCIDM_GLOBALFIRST 0x8000
798 #define FCIDM_GLOBALLAST 0x9fff
801 * Global submenu IDs and separator IDs
803 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
804 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
805 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
806 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
807 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
808 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
809 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
810 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
811 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
812 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
814 /* control IDs known to the view */
815 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
816 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
818 /* uState values for IShellView::UIActivate */
819 typedef enum
820 { SVUIA_DEACTIVATE = 0,
821 SVUIA_ACTIVATE_NOFOCUS = 1,
822 SVUIA_ACTIVATE_FOCUS = 2,
823 SVUIA_INPLACEACTIVATE = 3 /* new flag for IShellView2 */
824 } SVUIA_STATUS;
828 typedef struct IShellView_VTable
829 { /* *** IUnknown methods *** */
830 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
831 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
832 STDMETHOD_(ULONG,Release) (THIS) PURE;
834 /* *** IOleWindow methods *** */
835 STDMETHOD(GetWindow) (THIS_ HWND32 * lphwnd) PURE;
836 STDMETHOD(ContextSensitiveHelp) (THIS_ BOOL32 fEnterMode) PURE;
838 /* *** IShellView methods *** */
839 STDMETHOD(TranslateAccelerator) (THIS_ LPMSG32 lpmsg) PURE;
840 STDMETHOD(EnableModeless) (THIS_ BOOL32 fEnable) PURE;
841 STDMETHOD(UIActivate) (THIS_ UINT32 uState) PURE;
842 STDMETHOD(Refresh) (THIS) PURE;
843 STDMETHOD(CreateViewWindow)(THIS_ IShellView *lpPrevView,LPCFOLDERSETTINGS lpfs, IShellBrowser * psb,RECT32 * prcView, HWND32 *phWnd) PURE;
844 STDMETHOD(DestroyViewWindow)(THIS) PURE;
845 STDMETHOD(GetCurrentInfo)(THIS_ LPFOLDERSETTINGS lpfs) PURE;
846 STDMETHOD(AddPropertySheetPages)(THIS_ DWORD dwReserved,LPFNADDPROPSHEETPAGE lpfn, LPARAM lparam) PURE;
847 STDMETHOD(SaveViewState)(THIS) PURE;
848 STDMETHOD(SelectItem)(THIS_ LPCITEMIDLIST pidlItem, UINT32 uFlags) PURE;
849 STDMETHOD(GetItemObject)(THIS_ UINT32 uItem, REFIID riid,LPVOID *ppv) PURE;
850 } IShellView_VTable,*LPSHELLVIEW_VTABLE;
852 struct tagSHELLVIEW
853 { LPSHELLVIEW_VTABLE lpvtbl;
854 DWORD ref;
855 LPITEMIDLIST mpidl;
856 LPSHELLFOLDER pSFParent;
857 LPSHELLBROWSER pShellBrowser;
858 LPCOMMDLGBROWSER pCommDlgBrowser;
859 HWND32 hWnd;
860 HWND32 hWndList;
861 HWND32 hWndParent;
862 FOLDERSETTINGS FolderSettings;
863 HMENU32 hMenu;
864 UINT32 uState;
865 UINT32 uSelected;
866 LPITEMIDLIST *aSelectedItems;
869 typedef GUID SHELLVIEWID;
870 #define SV_CLASS_NAME ("SHELLDLL_DefView")
872 #undef THIS
873 /****************************************************************************
874 * ICommDlgBrowser interface
876 #define THIS LPCOMMDLGBROWSER this
878 /* for OnStateChange*/
879 #define CDBOSC_SETFOCUS 0x00000000
880 #define CDBOSC_KILLFOCUS 0x00000001
881 #define CDBOSC_SELCHANGE 0x00000002
882 #define CDBOSC_RENAME 0x00000003
884 typedef struct ICommDlgBrowser_VTable
885 { /* IUnknown methods */
886 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
887 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
888 STDMETHOD_(ULONG,Release) (THIS) PURE;
890 /* ICommDlgBrowser methods */
891 STDMETHOD(OnDefaultCommand) (THIS_ LPSHELLVIEW ppshv) PURE;
892 STDMETHOD(OnStateChange) (THIS_ LPSHELLVIEW ppshv, ULONG uChange) PURE;
893 STDMETHOD(IncludeObject) (THIS_ LPSHELLVIEW ppshv, LPCITEMIDLIST pidl) PURE;
894 } ICommDlgBrowser_VTable,*LPCOMMDLGBROWSER_VTABLE;
896 struct tagCOMMDLGBROWSER
897 { LPCOMMDLGBROWSER_VTABLE lpvtbl;
898 DWORD ref;
900 #undef THIS
901 /****************************************************************************
902 * IShellLink interface
905 #define THIS LPSHELLLINK this
906 /* IShellLink::Resolve fFlags */
907 typedef enum {
908 SLR_NO_UI = 0x0001,
909 SLR_ANY_MATCH = 0x0002,
910 SLR_UPDATE = 0x0004
911 } SLR_FLAGS;
913 /* IShellLink::GetPath fFlags */
914 typedef enum {
915 SLGP_SHORTPATH = 0x0001,
916 SLGP_UNCPRIORITY = 0x0002
917 } SLGP_FLAGS;
921 typedef struct IShellLink IShellLink,*LPSHELLLINK;
922 typedef struct IShellLink_VTable
924 /* *** IUnknown methods *** */
925 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
926 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
927 STDMETHOD_(ULONG,Release) (THIS) PURE;
929 STDMETHOD(GetPath)(THIS_ LPSTR pszFile,INT32 cchMaxPath, WIN32_FIND_DATA32A *pfd, DWORD fFlags) PURE;
931 STDMETHOD(GetIDList)(THIS_ LPITEMIDLIST * ppidl) PURE;
932 STDMETHOD(SetIDList)(THIS_ LPCITEMIDLIST pidl) PURE;
934 STDMETHOD(GetDescription)(THIS_ LPSTR pszName,INT32 cchMaxName) PURE;
935 STDMETHOD(SetDescription)(THIS_ LPCSTR pszName) PURE;
937 STDMETHOD(GetWorkingDirectory)(THIS_ LPSTR pszDir,INT32 cchMaxPath) PURE;
938 STDMETHOD(SetWorkingDirectory)(THIS_ LPCSTR pszDir) PURE;
940 STDMETHOD(GetArguments)(THIS_ LPSTR pszArgs,INT32 cchMaxPath) PURE;
941 STDMETHOD(SetArguments)(THIS_ LPCSTR pszArgs) PURE;
943 STDMETHOD(GetHotkey)(THIS_ WORD *pwHotkey) PURE;
944 STDMETHOD(SetHotkey)(THIS_ WORD wHotkey) PURE;
946 STDMETHOD(GetShowCmd)(THIS_ INT32 *piShowCmd) PURE;
947 STDMETHOD(SetShowCmd)(THIS_ INT32 iShowCmd) PURE;
949 STDMETHOD(GetIconLocation)(THIS_ LPSTR pszIconPath,INT32 cchIconPath,INT32 *piIcon) PURE;
950 STDMETHOD(SetIconLocation)(THIS_ LPCSTR pszIconPath,INT32 iIcon) PURE;
952 STDMETHOD(SetRelativePath)(THIS_ LPCSTR pszPathRel, DWORD dwReserved) PURE;
954 STDMETHOD(Resolve)(THIS_ HWND32 hwnd, DWORD fFlags) PURE;
956 STDMETHOD(SetPath)(THIS_ LPCSTR pszFile) PURE;
957 } IShellLink_VTable,*LPSHELLLINK_VTABLE;
959 struct IShellLink {
960 LPSHELLLINK_VTABLE lpvtbl;
961 DWORD ref;
962 /* IPersistfile interface */
963 LPPERSISTFILE lppf;
966 #undef THIS
968 #define THIS LPSHELLLINKW this
970 typedef struct IShellLinkW IShellLinkW,*LPSHELLLINKW;
971 typedef struct IShellLinkW_VTable
973 /* *** IUnknown methods *** */
974 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
975 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
976 STDMETHOD_(ULONG,Release) (THIS) PURE;
978 STDMETHOD(GetPath)(THIS_ LPWSTR pszFile,INT32 cchMaxPath, WIN32_FIND_DATA32A *pfd, DWORD fFlags) PURE;
980 STDMETHOD(GetIDList)(THIS_ LPITEMIDLIST * ppidl) PURE;
981 STDMETHOD(SetIDList)(THIS_ LPCITEMIDLIST pidl) PURE;
983 STDMETHOD(GetDescription)(THIS_ LPWSTR pszName,INT32 cchMaxName) PURE;
984 STDMETHOD(SetDescription)(THIS_ LPCWSTR pszName) PURE;
986 STDMETHOD(GetWorkingDirectory)(THIS_ LPWSTR pszDir,INT32 cchMaxPath) PURE;
987 STDMETHOD(SetWorkingDirectory)(THIS_ LPCWSTR pszDir) PURE;
989 STDMETHOD(GetArguments)(THIS_ LPWSTR pszArgs,INT32 cchMaxPath) PURE;
990 STDMETHOD(SetArguments)(THIS_ LPCWSTR pszArgs) PURE;
992 STDMETHOD(GetHotkey)(THIS_ WORD *pwHotkey) PURE;
993 STDMETHOD(SetHotkey)(THIS_ WORD wHotkey) PURE;
995 STDMETHOD(GetShowCmd)(THIS_ INT32 *piShowCmd) PURE;
996 STDMETHOD(SetShowCmd)(THIS_ INT32 iShowCmd) PURE;
998 STDMETHOD(GetIconLocation)(THIS_ LPWSTR pszIconPath,INT32 cchIconPath,INT32 *piIcon) PURE;
999 STDMETHOD(SetIconLocation)(THIS_ LPCWSTR pszIconPath,INT32 iIcon) PURE;
1001 STDMETHOD(SetRelativePath)(THIS_ LPCWSTR pszPathRel, DWORD dwReserved) PURE;
1003 STDMETHOD(Resolve)(THIS_ HWND32 hwnd, DWORD fFlags) PURE;
1005 STDMETHOD(SetPath)(THIS_ LPCWSTR pszFile) PURE;
1006 } IShellLinkW_VTable,*LPSHELLLINKW_VTABLE;
1008 struct IShellLinkW {
1009 LPSHELLLINKW_VTABLE lpvtbl;
1010 DWORD ref;
1011 /* IPersistfile interface */
1012 LPPERSISTFILE lppf;
1015 #undef THIS
1017 /****************************************************************************
1018 * IExtractIconinterface
1020 * FIXME
1021 * Is the ExtractIconA interface
1023 #define THIS LPEXTRACTICON this
1025 /* GetIconLocation() input flags*/
1026 #define GIL_OPENICON 0x0001 /* allows containers to specify an "open" look */
1027 #define GIL_FORSHELL 0x0002 /* icon is to be displayed in a ShellFolder */
1028 #define GIL_ASYNC 0x0020 /* this is an async extract, return E_ASYNC */
1030 /* GetIconLocation() return flags */
1031 #define GIL_SIMULATEDOC 0x0001 /* simulate this document icon for this */
1032 #define GIL_PERINSTANCE 0x0002 /* icons from this class are per instance (each file has its own) */
1033 #define GIL_PERCLASS 0x0004 /* icons from this class per class (shared for all files of this type) */
1034 #define GIL_NOTFILENAME 0x0008 /* location is not a filename, must call ::ExtractIcon */
1035 #define GIL_DONTCACHE 0x0010 /* this icon should not be cached */
1037 typedef struct IExtractIcon IExtractIcon,*LPEXTRACTICON;
1038 typedef struct IExtractIcon_VTable
1039 { /*** IUnknown methods ***/
1040 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1041 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1042 STDMETHOD_(ULONG,Release) (THIS) PURE;
1044 /*** IExtractIcon methods ***/
1045 STDMETHOD(GetIconLocation)(THIS_ UINT32 uFlags, LPSTR szIconFile, UINT32 cchMax,INT32 * piIndex, UINT32 * pwFlags) PURE;
1046 STDMETHOD(Extract)(THIS_ LPCSTR pszFile, UINT32 nIconIndex, HICON32 *phiconLarge, HICON32 *phiconSmall, UINT32 nIconSize) PURE;
1047 }IExtractIcon_VTable,*LPEXTRACTICON_VTABLE;
1049 struct IExtractIcon
1050 { LPEXTRACTICON_VTABLE lpvtbl;
1051 DWORD ref;
1052 LPITEMIDLIST pidl;
1055 #undef THIS
1057 DWORD WINAPI SHMapPIDLToSystemImageListIndex(LPSHELLFOLDER sh,LPITEMIDLIST pidl,DWORD z);
1059 /****************************************************************************
1060 * IShellIcon interface
1063 #define THIS LPSHELLICON this
1065 typedef struct IShellIcon_VTable
1066 { /*** IUnknown methods ***/
1067 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1068 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1069 STDMETHOD_(ULONG,Release) (THIS) PURE;
1071 /*** IShellIcon methods ***/
1072 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT32 flags, LPINT32 lpIconIndex) PURE;
1073 } IShellIcon_VTable,*LPSHELLICON_VTABLE;
1075 struct tagSHELLICON
1076 { LPSHELLICON_VTABLE lpvtbl;
1077 DWORD ref;
1079 #undef THIS
1080 /****************************************************************************
1081 * IDockingWindowFrame interface
1083 #define THIS LPDOCKINGWINDOWFRAME this
1085 #define DWFRF_NORMAL 0x0000 /* femove toolbar flags*/
1086 #define DWFRF_DELETECONFIGDATA 0x0001
1087 #define DWFAF_HIDDEN 0x0001 /* add tolbar*/
1089 typedef struct IDockingWindowFrame_VTable
1090 { STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1091 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1092 STDMETHOD_(ULONG,Release) (THIS) PURE;
1094 /*** IOleWindow methods ***/
1095 STDMETHOD(GetWindow) (THIS_ HWND32 * lphwnd) PURE;
1096 STDMETHOD(ContextSensitiveHelp) (THIS_ BOOL32 fEnterMode) PURE;
1098 /*** IDockingWindowFrame methods ***/
1099 STDMETHOD(AddToolbar) (THIS_ IUnknown* punkSrc, LPCWSTR pwszItem, DWORD dwAddFlags) PURE;
1100 STDMETHOD(RemoveToolbar) (THIS_ IUnknown* punkSrc, DWORD dwRemoveFlags) PURE;
1101 STDMETHOD(FindToolbar) (THIS_ LPCWSTR pwszItem, REFIID riid, LPVOID* ppvObj) PURE;
1102 } IDockingWindowFrame_VTable, *LPDOCKINGWINDOWFRAME_VTABLE;
1104 struct tagDOCKINGWINDOWFRAME
1105 { LPDOCKINGWINDOWFRAME_VTABLE lpvtbl;
1106 DWORD ref;
1109 #undef THIS
1110 /****************************************************************************
1111 * IServiceProvider interface
1113 #define THIS LPSERVICEPROVIDER this
1115 typedef struct IServiceProvider_VTable
1116 { /*** IUnknown methods ***/
1117 STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
1118 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
1119 STDMETHOD_(ULONG,Release) (THIS) PURE;
1121 STDMETHOD(QueryService)(THIS_ REFGUID guidService, REFIID riid, void **ppvObject);
1122 } IServiceProvider_VTable, *LPSERVICEPROVIDER_VTABLE;
1124 struct tagSERVICEPROVIDER
1125 { LPSERVICEPROVIDER_VTABLE lpvtbl;
1126 DWORD ref;
1128 /****************************************************************************
1129 * Shell Execute API
1131 #define SE_ERR_FNF 2 /* file not found */
1132 #define SE_ERR_PNF 3 /* path not found */
1133 #define SE_ERR_ACCESSDENIED 5 /* access denied */
1134 #define SE_ERR_OOM 8 /* out of memory */
1135 #define SE_ERR_DLLNOTFOUND 32
1136 #define SE_ERR_SHARE 26
1137 #define SE_ERR_ASSOCINCOMPLETE 27
1138 #define SE_ERR_DDETIMEOUT 28
1139 #define SE_ERR_DDEFAIL 29
1140 #define SE_ERR_DDEBUSY 30
1141 #define SE_ERR_NOASSOC 31
1143 #define SEE_MASK_CLASSNAME 0x00000001
1144 #define SEE_MASK_CLASSKEY 0x00000003
1145 #define SEE_MASK_IDLIST 0x00000004
1146 #define SEE_MASK_INVOKEIDLIST 0x0000000c
1147 #define SEE_MASK_ICON 0x00000010
1148 #define SEE_MASK_HOTKEY 0x00000020
1149 #define SEE_MASK_NOCLOSEPROCESS 0x00000040
1150 #define SEE_MASK_CONNECTNETDRV 0x00000080
1151 #define SEE_MASK_FLAG_DDEWAIT 0x00000100
1152 #define SEE_MASK_DOENVSUBST 0x00000200
1153 #define SEE_MASK_FLAG_NO_UI 0x00000400
1154 #define SEE_MASK_UNICODE 0x00004000
1155 #define SEE_MASK_NO_CONSOLE 0x00008000
1156 #define SEE_MASK_ASYNCOK 0x00100000
1157 #define SEE_MASK_HMONITOR 0x00200000
1159 typedef struct _SHELLEXECUTEINFOA
1160 { DWORD cbSize;
1161 ULONG fMask;
1162 HWND32 hwnd;
1163 LPCSTR lpVerb;
1164 LPCSTR lpFile;
1165 LPCSTR lpParameters;
1166 LPCSTR lpDirectory;
1167 INT32 nShow;
1168 HINSTANCE32 hInstApp;
1169 /* Optional fields */
1170 LPVOID lpIDList;
1171 LPCSTR lpClass;
1172 HKEY hkeyClass;
1173 DWORD dwHotKey;
1174 union
1175 { HANDLE32 hIcon;
1176 HANDLE32 hMonitor;
1177 } u;
1178 HANDLE32 hProcess;
1179 } SHELLEXECUTEINFO32A, *LPSHELLEXECUTEINFO32A;
1181 typedef struct _SHELLEXECUTEINFOW
1182 { DWORD cbSize;
1183 ULONG fMask;
1184 HWND32 hwnd;
1185 LPCWSTR lpVerb;
1186 LPCWSTR lpFile;
1187 LPCWSTR lpParameters;
1188 LPCWSTR lpDirectory;
1189 INT32 nShow;
1190 HINSTANCE32 hInstApp;
1191 /* Optional fields*/
1192 LPVOID lpIDList;
1193 LPCWSTR lpClass;
1194 HKEY hkeyClass;
1195 DWORD dwHotKey;
1196 union
1197 { HANDLE32 hIcon;
1198 HANDLE32 hMonitor;
1199 } u;
1200 HANDLE32 hProcess;
1201 } SHELLEXECUTEINFO32W, *LPSHELLEXECUTEINFO32W;
1203 #define SHELLEXECUTEINFO WINELIB_NAME_AW(SHELLEXECUTEINFO)
1204 #define LPSHELLEXECUTEINFO WINELIB_NAME_AW(LPSHELLEXECUTEINFO)
1206 BOOL32 WINAPI ShellExecuteEx32A(LPSHELLEXECUTEINFO32A lpExecInfo);
1207 BOOL32 WINAPI ShellExecuteEx32W(LPSHELLEXECUTEINFO32W lpExecInfo);
1208 #define ShellExecuteEx WINELIB_NAME_AW(ShellExecuteEx)
1210 void WINAPI WinExecError32A(HWND32 hwnd,INT32 error, LPCSTR lpstrFileName, LPCSTR lpstrTitle);
1211 void WINAPI WinExecError32W(HWND32 hwnd,INT32 error, LPCWSTR lpstrFileName, LPCWSTR lpstrTitle);
1212 #define WinExecError WINELIB_NAME_AW(WinExecError)
1216 /****************************************************************************
1217 * SHBrowseForFolder API
1219 typedef INT32 (CALLBACK* BFFCALLBACK)(HWND32 hwnd, UINT32 uMsg, LPARAM lParam, LPARAM lpData);
1221 typedef struct tagBROWSEINFO32A {
1222 HWND32 hwndOwner;
1223 LPCITEMIDLIST pidlRoot;
1224 LPSTR pszDisplayName;
1225 LPCSTR lpszTitle;
1226 UINT32 ulFlags;
1227 BFFCALLBACK lpfn;
1228 LPARAM lParam;
1229 INT32 iImage;
1230 } BROWSEINFO32A, *PBROWSEINFO32A, *LPBROWSEINFO32A;
1232 typedef struct tagBROWSEINFO32W {
1233 HWND32 hwndOwner;
1234 LPCITEMIDLIST pidlRoot;
1235 LPWSTR pszDisplayName;
1236 LPCWSTR lpszTitle;
1237 UINT32 ulFlags;
1238 BFFCALLBACK lpfn;
1239 LPARAM lParam;
1240 INT32 iImage;
1241 } BROWSEINFO32W, *PBROWSEINFO32W, *LPBROWSEINFO32W;
1243 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
1244 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
1245 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
1247 /* Browsing for directory. */
1248 #define BIF_RETURNONLYFSDIRS 0x0001
1249 #define BIF_DONTGOBELOWDOMAIN 0x0002
1250 #define BIF_STATUSTEXT 0x0004
1251 #define BIF_RETURNFSANCESTORS 0x0008
1252 #define BIF_EDITBOX 0x0010
1253 #define BIF_VALIDATE 0x0020
1255 #define BIF_BROWSEFORCOMPUTER 0x1000
1256 #define BIF_BROWSEFORPRINTER 0x2000
1257 #define BIF_BROWSEINCLUDEFILES 0x4000
1259 /* message from browser */
1260 #define BFFM_INITIALIZED 1
1261 #define BFFM_SELCHANGED 2
1262 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
1263 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
1265 /* messages to browser */
1266 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
1267 #define BFFM_ENABLEOK (WM_USER+101)
1268 #define BFFM_SETSELECTIONA (WM_USER+102)
1269 #define BFFM_SETSELECTIONW (WM_USER+103)
1270 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
1273 #ifdef UNICODE
1274 #define SHBrowseForFolder SHBrowseForFolderW
1275 #define BFFM_SETSTATUSTEXT BFFM_SETSTATUSTEXTW
1276 #define BFFM_SETSELECTION BFFM_SETSELECTIONW
1278 #define BFFM_VALIDATEFAILED BFFM_VALIDATEFAILEDW
1279 #else
1280 #define SHBrowseForFolder SHBrowseForFolderA
1281 #define BFFM_SETSTATUSTEXT BFFM_SETSTATUSTEXTA
1282 #define BFFM_SETSELECTION BFFM_SETSELECTIONA
1284 #define BFFM_VALIDATEFAILED BFFM_VALIDATEFAILEDA
1285 #endif
1288 LPITEMIDLIST WINAPI SHBrowseForFolder32A(LPBROWSEINFO32A lpbi);
1289 /*LPITEMIDLIST WINAPI SHBrowseForFolder32W(LPBROWSEINFO32W lpbi);*/
1290 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
1292 /****************************************************************************
1293 * SHGetDataFromIDList API
1295 #define SHGDFIL_FINDDATA 1
1296 #define SHGDFIL_NETRESOURCE 2
1297 #define SHGDFIL_DESCRIPTIONID 3
1299 #define SHDID_ROOT_REGITEM 1
1300 #define SHDID_FS_FILE 2
1301 #define SHDID_FS_DIRECTORY 3
1302 #define SHDID_FS_OTHER 4
1303 #define SHDID_COMPUTER_DRIVE35 5
1304 #define SHDID_COMPUTER_DRIVE525 6
1305 #define SHDID_COMPUTER_REMOVABLE 7
1306 #define SHDID_COMPUTER_FIXED 8
1307 #define SHDID_COMPUTER_NETDRIVE 9
1308 #define SHDID_COMPUTER_CDROM 10
1309 #define SHDID_COMPUTER_RAMDISK 11
1310 #define SHDID_COMPUTER_OTHER 12
1311 #define SHDID_NET_DOMAIN 13
1312 #define SHDID_NET_SERVER 14
1313 #define SHDID_NET_SHARE 15
1314 #define SHDID_NET_RESTOFNET 16
1315 #define SHDID_NET_OTHER 17
1317 typedef struct _SHDESCRIPTIONID
1318 { DWORD dwDescriptionId;
1319 CLSID clsid;
1320 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
1322 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
1323 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
1324 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
1327 /****************************************************************************
1328 * shlview structures
1332 * IShellFolderViewCallback Callback
1333 * This "callback" is called by the shells default IShellView implementation (that
1334 * we got using SHCreateShellViewEx()), to notify us of the various things that
1335 * are happening to the shellview (and ask for things too).
1337 * You don't have to support anything here - anything you don't want to
1338 * handle, the shell will do itself if you just return E_NOTIMPL. This parameters
1339 * that the shell passes to this function are entirely undocumented.
1341 * HOWEVER, as the cabview sample as originally written used this callback, the
1342 * writers implemented the callback mechanism on top of their own IShellView.
1343 * Look there for some clues on what to do here.
1346 typedef HRESULT(CALLBACK *SHELLVIEWPROC)(DWORD dwUserParam,LPSHELLFOLDER psf,
1347 HWND32 hwnd,UINT32 uMsg,UINT32 wParam,LPARAM lParam);
1349 /* NF valid values for the "viewmode" item of the SHELLTEMPLATE*/
1350 #define NF_INHERITVIEW 0x0000
1351 #define NF_LOCALVIEW 0x0001
1353 typedef struct _SHELLVIEWDATA /* idl */
1354 { DWORD dwSize;
1355 LPSHELLFOLDER pShellFolder;
1356 DWORD dwUserParam;
1357 LPCITEMIDLIST pidl;
1358 DWORD v3; /* always 0 */
1359 SHELLVIEWPROC pCallBack;
1360 DWORD viewmode; /* NF_* enum */
1361 } SHELLVIEWDATA, * LPSHELLVIEWDATA;
1364 The shell keeps track of some per-user state to handle display
1365 options that is of majorinterest to ISVs.
1366 The key one requested right now is "DoubleClickInWebView".
1368 typedef struct
1369 { BOOL32 fShowAllObjects : 1;
1370 BOOL32 fShowExtensions : 1;
1371 BOOL32 fNoConfirmRecycle : 1;
1372 BOOL32 fShowSysFiles : 1;
1373 BOOL32 fShowCompColor : 1;
1374 BOOL32 fDoubleClickInWebView : 1;
1375 BOOL32 fDesktopHTML : 1;
1376 BOOL32 fWin95Classic : 1;
1377 BOOL32 fDontPrettyPath : 1;
1378 BOOL32 fShowAttribCol : 1;
1379 BOOL32 fMapNetDrvBtn : 1;
1380 BOOL32 fShowInfoTip : 1;
1381 BOOL32 fHideIcons : 1;
1382 UINT32 fRestFlags : 3;
1383 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
1386 #undef PURE
1387 #undef FAR
1388 #undef THIS
1389 #undef THIS_
1390 #undef STDMETHOD
1391 #undef STDMETHOD_
1392 #endif /*_WINE_SHLOBJ_H*/