gdiplus: Fix typo in GdipCreateMetafileFromWmf.
[wine/hacks.git] / include / shlobj.h
blob171cf3b838ac6ed051bc7917959a344047e1b1f8
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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 #ifndef HPSXA_DEFINED
38 #define HPSXA_DEFINED
39 DECLARE_HANDLE(HPSXA);
40 #endif
42 UINT WINAPI SHAddFromPropSheetExtArray(HPSXA,LPFNADDPROPSHEETPAGE,LPARAM);
43 LPVOID WINAPI SHAlloc(ULONG) __WINE_ALLOC_SIZE(1);
44 HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*);
45 HPSXA WINAPI SHCreatePropSheetExtArray(HKEY,LPCWSTR,UINT);
46 HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY,LPCWSTR,UINT,IDataObject*);
47 HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST,IShellFolder*,LPCITEMIDLIST,IShellItem**);
48 DWORD WINAPI SHCLSIDFromStringA(LPCSTR,CLSID*);
49 DWORD WINAPI SHCLSIDFromStringW(LPCWSTR,CLSID*);
50 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
51 HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**);
52 void WINAPI SHDestroyPropSheetExtArray(HPSXA);
53 BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
54 DWORD WINAPI SHFormatDrive(HWND,UINT,UINT,UINT);
55 void WINAPI SHFree(LPVOID);
56 BOOL WINAPI GetFileNameFromBrowse(HWND,LPWSTR,DWORD,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
57 HRESULT WINAPI SHGetInstanceExplorer(IUnknown**);
58 HRESULT WINAPI SHGetFolderPathAndSubDirA(HWND,int,HANDLE,DWORD,LPCSTR,LPSTR);
59 HRESULT WINAPI SHGetFolderPathAndSubDirW(HWND,int,HANDLE,DWORD,LPCWSTR,LPWSTR);
60 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir);
61 BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
62 BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
63 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
64 INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST);
65 HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
66 HRESULT WINAPI SHLoadOLE(LPARAM);
67 HRESULT WINAPI SHParseDisplayName(LPCWSTR,IBindCtx*,LPITEMIDLIST*,SFGAOF,SFGAOF*);
68 HRESULT WINAPI SHPathPrepareForWriteA(HWND,IUnknown*,LPCSTR,DWORD);
69 HRESULT WINAPI SHPathPrepareForWriteW(HWND,IUnknown*,LPCWSTR,DWORD);
70 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite);
71 UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM);
72 LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
73 int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
74 HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
75 VOID WINAPI SHUpdateImageA(LPCSTR,INT,UINT,INT);
76 VOID WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
77 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
78 int WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
79 int WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
80 BOOL WINAPI IsUserAnAdmin(void);
82 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formattable */
83 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was cancelled */
84 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formattable */
86 /* SHFormatDrive flags */
87 #define SHFMT_ID_DEFAULT 0xFFFF
88 #define SHFMT_OPT_FULL 1
89 #define SHFMT_OPT_SYSONLY 2
91 /* SHPathPrepareForWrite flags */
92 #define SHPPFW_NONE 0x00000000
93 #define SHPPFW_DIRCREATE 0x00000001
94 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
95 #define SHPPFW_ASKDIRCREATE 0x00000002
96 #define SHPPFW_IGNOREFILENAME 0x00000004
97 #define SHPPFW_NOWRITECHECK 0x00000008
98 #define SHPPFW_MEDIACHECKONLY 0x00000010
100 /* SHObjectProperties flags */
101 #define SHOP_PRINTERNAME 0x01
102 #define SHOP_FILEPATH 0x02
103 #define SHOP_VOLUMEGUID 0x04
105 BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
107 #define PCS_FATAL 0x80000000
108 #define PCS_REPLACEDCHAR 0x00000001
109 #define PCS_REMOVEDCHAR 0x00000002
110 #define PCS_TRUNCATED 0x00000004
111 #define PCS_PATHTOOLONG 0x00000008
113 int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
115 /*****************************************************************************
116 * IContextMenu interface
120 /* DATAOBJECT_InitShellIDList*/
121 #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
122 #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
123 #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
124 /* DATAOBJECT_InitFileGroupDesc */
125 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
126 /* DATAOBJECT_InitFileContents*/
127 #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
128 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
129 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
130 #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
131 #define CFSTR_SHELLURLA "UniformResourceLocator"
132 #define CFSTR_INETURLA CFSTR_SHELLURLA
133 #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
134 #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
135 #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
136 #define CFSTR_INDRAGLOOPA "InShellDragLoop"
137 #define CFSTR_DRAGCONTEXTA "DragContext"
138 #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
139 #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
140 #define CFSTR_TARGETCLSIDA "TargetCLSID"
141 #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
142 #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
144 #if defined(__GNUC__)
145 # define CFSTR_SHELLIDLISTW \
146 (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
147 # define CFSTR_SHELLIDLISTOFFSETW \
148 (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
149 # define CFSTR_NETRESOURCESW \
150 (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
151 # define CFSTR_FILEDESCRIPTORW \
152 (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
153 # define CFSTR_FILECONTENTSW \
154 (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
155 # define CFSTR_FILENAMEW \
156 (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
157 # define CFSTR_FILENAMEMAPW \
158 (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
159 # define CFSTR_PRINTERGROUPW \
160 (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
161 # define CFSTR_SHELLURLW \
162 (const WCHAR []){ 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 }
163 # define CFSTR_INETURLW \
164 (const WCHAR []){ 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 }
165 # define CFSTR_PREFERREDDROPEFFECTW \
166 (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
167 # define CFSTR_PERFORMEDDROPEFFECTW \
168 (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
169 # define CFSTR_PASTESUCCEEDEDW \
170 (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
171 # define CFSTR_INDRAGLOOPW \
172 (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
173 # define CFSTR_DRAGCONTEXTW \
174 (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
175 # define CFSTR_MOUNTEDVOLUMEW \
176 (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
177 # define CFSTR_PERSISTEDDATAOBJECTW \
178 (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
179 # define CFSTR_TARGETCLSIDW \
180 (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
181 # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
182 (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
183 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
184 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
185 (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
186 ' ','D','r','o','p','E','f','f','e','c','t',0 }
187 #elif defined(_MSC_VER)
188 # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
189 # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
190 # define CFSTR_NETRESOURCESW L"Net Resource"
191 # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
192 # define CFSTR_FILECONTENTSW L"FileContents"
193 # define CFSTR_FILENAMEW L"FileNameW"
194 # define CFSTR_FILENAMEMAPW L"FileNameMapW"
195 # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
196 # define CFSTR_SHELLURLW L"UniformResourceLocator"
197 # define CFSTR_INETURLW L"UniformResourceLocatorW"
198 # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
199 # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
200 # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
201 # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
202 # define CFSTR_DRAGCONTEXTW L"DragContext"
203 # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
204 # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
205 # define CFSTR_TARGETCLSIDW L"TargetCLSID"
206 # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
207 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
208 #else
209 static const WCHAR CFSTR_SHELLIDLISTW[] =
210 { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
211 static const WCHAR CFSTR_SHELLIDLISTOFFSETW[] =
212 { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
213 static const WCHAR CFSTR_NETRESOURCESW[] =
214 { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
215 static const WCHAR CFSTR_FILEDESCRIPTORW[] =
216 { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
217 static const WCHAR CFSTR_FILECONTENTSW[] =
218 { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
219 static const WCHAR CFSTR_FILENAMEW[] =
220 { 'F','i','l','e','N','a','m','e','W',0 };
221 static const WCHAR CFSTR_FILENAMEMAPW[] =
222 { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
223 static const WCHAR CFSTR_PRINTERGROUPW[] =
224 { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
225 static const WCHAR CFSTR_SHELLURLW[] =
226 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
227 static const WCHAR CFSTR_INETURLW[] =
228 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
229 static const WCHAR CFSTR_PREFERREDDROPEFFECTW[] =
230 { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
231 static const WCHAR CFSTR_PERFORMEDDROPEFFECTW[] =
232 { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
233 static const WCHAR CFSTR_PASTESUCCEEDEDW[] =
234 { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
235 static const WCHAR CFSTR_INDRAGLOOPW[] =
236 { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
237 static const WCHAR CFSTR_DRAGCONTEXTW[] =
238 { 'D','r','a','g','C','o','n','t','e','x','t',0 };
239 static const WCHAR CFSTR_MOUNTEDVOLUMEW[] =
240 { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
241 static const WCHAR CFSTR_PERSISTEDDATAOBJECTW[] =
242 { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
243 static const WCHAR CFSTR_TARGETCLSIDW[] =
244 { 'T','a','r','g','e','t','C','L','S','I','D',0 };
245 static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW[] =
246 { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
247 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
248 static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW[] =
249 { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
250 ' ','D','r','o','p','E','f','f','e','c','t',0 };
251 #endif
253 #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
254 #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
255 #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
256 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
257 #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
258 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
259 #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
260 #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
261 #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
262 #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
263 #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
264 #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
265 #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
266 #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
267 #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
268 #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
269 #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
270 #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
271 #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
272 #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
274 typedef struct
275 { UINT cidl;
276 UINT aoffset[1];
277 } CIDA, *LPIDA;
279 /************************************************************************
280 * IShellView interface
283 #define FCIDM_SHVIEWFIRST 0x0000
284 /* undocumented */
285 #define FCIDM_SHVIEW_ARRANGE 0x7001
286 #define FCIDM_SHVIEW_DELETE 0x7011
287 #define FCIDM_SHVIEW_PROPERTIES 0x7013
288 #define FCIDM_SHVIEW_CUT 0x7018
289 #define FCIDM_SHVIEW_COPY 0x7019
290 #define FCIDM_SHVIEW_INSERT 0x701A
291 #define FCIDM_SHVIEW_UNDO 0x701B
292 #define FCIDM_SHVIEW_INSERTLINK 0x701C
293 #define FCIDM_SHVIEW_SELECTALL 0x7021
294 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
296 #define FCIDM_SHVIEW_BIGICON 0x7029
297 #define FCIDM_SHVIEW_SMALLICON 0x702A
298 #define FCIDM_SHVIEW_LISTVIEW 0x702B
299 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
300 /* 0x7030-0x703f are used by the shellbrowser */
301 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
302 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
304 #define FCIDM_SHVIEW_HELP 0x7041
305 #define FCIDM_SHVIEW_RENAME 0x7050
306 #define FCIDM_SHVIEW_CREATELINK 0x7051
307 #define FCIDM_SHVIEW_NEWLINK 0x7052
308 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
310 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
311 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
312 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
314 #define FCIDM_SHVIEWLAST 0x7fff
315 #define FCIDM_BROWSERFIRST 0xA000
316 /* undocumented toolbar items from stddlg's*/
317 #define FCIDM_TB_UPFOLDER 0xA001
318 #define FCIDM_TB_NEWFOLDER 0xA002
319 #define FCIDM_TB_SMALLICON 0xA003
320 #define FCIDM_TB_REPORTVIEW 0xA004
321 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
323 #define FCIDM_BROWSERLAST 0xbf00
324 #define FCIDM_GLOBALFIRST 0x8000
325 #define FCIDM_GLOBALLAST 0x9fff
328 * Global submenu IDs and separator IDs
330 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
331 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
332 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
333 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
334 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
335 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
336 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
337 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
338 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
339 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
341 /* control IDs known to the view */
342 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
343 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
346 /****************************************************************************
347 * IShellIcon interface
350 #define INTERFACE IShellIcon
351 DECLARE_INTERFACE_(IShellIcon,IUnknown)
353 /*** IUnknown methods ***/
354 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
355 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
356 STDMETHOD_(ULONG,Release)(THIS) PURE;
357 /*** IShellIcon methods ***/
358 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
360 #undef INTERFACE
362 #if !defined(__cplusplus) || defined(CINTERFACE)
363 /*** IUnknown methods ***/
364 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
365 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
366 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
367 /*** IShellIcon methods ***/
368 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
369 #endif
371 typedef IShellIcon *LPSHELLICON;
373 /* IQueryInfo interface */
374 #define INTERFACE IQueryInfo
375 DECLARE_INTERFACE_(IQueryInfo,IUnknown)
377 /*** IUnknown methods ***/
378 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
379 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
380 STDMETHOD_(ULONG,Release)(THIS) PURE;
381 /*** IQueryInfo methods ***/
382 STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, WCHAR** lppTips) PURE;
383 STDMETHOD(GetInfoFlags)(THIS_ DWORD* lpFlags) PURE;
385 #undef INTERFACE
387 #if !defined(__cplusplus) || defined(CINTERFACE)
388 /*** IUnknown methods ***/
389 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
390 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
391 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
392 /*** IQueryInfo methods ***/
393 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
394 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
395 #endif
397 /* IInputObject interface */
398 #define INTERFACE IInputObject
399 DECLARE_INTERFACE_(IInputObject,IUnknown)
401 /*** IUnknown methods ***/
402 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
403 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
404 STDMETHOD_(ULONG,Release)(THIS) PURE;
405 /*** IInputObject methods ***/
406 STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
407 STDMETHOD(HasFocusIO)(THIS) PURE;
408 STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
410 #undef INTERFACE
412 #if !defined(__cplusplus) || defined(CINTERFACE)
413 /*** IUnknown methods ***/
414 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
415 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
416 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
417 /*** IInputObject methods ***/
418 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
419 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
420 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
421 #endif
423 /* IInputObjectSite interface */
424 #define INTERFACE IInputObjectSite
425 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
427 /*** IUnknown methods ***/
428 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
429 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
430 STDMETHOD_(ULONG,Release) (THIS) PURE;
431 /*** IInputObjectSite methods ***/
432 STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
434 #undef INTERFACE
436 #if !defined(__cplusplus) || defined(CINTERFACE)
437 /*** IUnknown methods ***/
438 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
439 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
440 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
441 /*** IInputObject methods ***/
442 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
443 #endif
445 /* IObjMgr interface */
446 #define INTERFACE IObjMgr
447 DECLARE_INTERFACE_(IObjMgr,IUnknown)
449 /*** IUnknown methods ***/
450 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
451 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
452 STDMETHOD_(ULONG,Release) (THIS) PURE;
453 /*** IObjMgr methods ***/
454 STDMETHOD(Append)(THIS_ LPUNKNOWN punk) PURE;
455 STDMETHOD(Remove)(THIS_ LPUNKNOWN punk) PURE;
457 #undef INTERFACE
459 #if !defined(__cplusplus) || defined(CINTERFACE)
460 /*** IUnknown methods ***/
461 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
462 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
463 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
464 /*** IObjMgr methods ***/
465 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
466 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
467 #endif
469 /* IACList interface */
470 #define INTERFACE IACList
471 DECLARE_INTERFACE_(IACList,IUnknown)
473 /*** IUnknown methods ***/
474 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
475 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
476 STDMETHOD_(ULONG,Release) (THIS) PURE;
477 /*** IACList methods ***/
478 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
480 #undef INTERFACE
482 #if !defined(__cplusplus) || defined(CINTERFACE)
483 /*** IUnknown methods ***/
484 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
485 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
486 #define IACList_Release(p) (p)->lpVtbl->Release(p)
487 /*** IACList methods ***/
488 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
489 #endif
491 /* IACList2 interface */
492 #define INTERFACE IACList2
493 DECLARE_INTERFACE_(IACList2,IACList)
495 /*** IUnknown methods ***/
496 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
497 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
498 STDMETHOD_(ULONG,Release) (THIS) PURE;
499 /*** IACList methods ***/
500 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
501 /*** IACList2 methods ***/
502 STDMETHOD(SetOptions)(THIS_ DWORD dwFlag) PURE;
503 STDMETHOD(GetOptions)(THIS_ DWORD* pdwFlag) PURE;
505 #undef INTERFACE
507 #if !defined(__cplusplus) || defined(CINTERFACE)
508 /*** IUnknown methods ***/
509 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
510 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
511 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
512 /*** IACList2 methods ***/
513 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
514 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
515 #endif
517 /****************************************************************************
518 * IShellFolderViewCB interface
521 #define INTERFACE IShellFolderViewCB
522 DECLARE_INTERFACE_(IShellFolderViewCB,IUnknown)
524 /*** IUnknown methods ***/
525 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
526 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
527 STDMETHOD_(ULONG,Release)(THIS) PURE;
528 /*** IShellFolderViewCB methods ***/
529 STDMETHOD(MessageSFVCB)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam) PURE;
531 #undef INTERFACE
533 #if !defined(__cplusplus) || defined(CINTERFACE)
534 /*** IUnknown methods ***/
535 #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
536 #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
537 #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
538 /*** IShellFolderViewCB methods ***/
539 #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
540 #endif
542 /* IProgressDialog interface */
543 #define PROGDLG_NORMAL 0x00000000
544 #define PROGDLG_MODAL 0x00000001
545 #define PROGDLG_AUTOTIME 0x00000002
546 #define PROGDLG_NOTIME 0x00000004
547 #define PROGDLG_NOMINIMIZE 0x00000008
548 #define PROGDLG_NOPROGRESSBAR 0x00000010
549 #define PROGDLG_MARQUEEPROGRESS 0x00000020
550 #define PROGDLG_NOCANCEL 0x00000040
552 #define PDTIMER_RESET 0x00000001
553 #define PDTIMER_PAUSE 0x00000002
554 #define PDTIMER_RESUME 0x00000003
556 #define INTERFACE IProgressDialog
557 DECLARE_INTERFACE_(IProgressDialog,IUnknown)
559 /*** IUnknown methods ***/
560 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
561 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
562 STDMETHOD_(ULONG,Release) (THIS) PURE;
563 /*** IProgressDialog methods ***/
564 STDMETHOD(StartProgressDialog)(THIS_ HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved) PURE;
565 STDMETHOD(StopProgressDialog)(THIS) PURE;
566 STDMETHOD(SetTitle)(THIS_ LPCWSTR pwzTitle) PURE;
567 STDMETHOD(SetAnimation)(THIS_ HINSTANCE hInstance, UINT uiResourceId) PURE;
568 STDMETHOD_(BOOL,HasUserCancelled)(THIS) PURE;
569 STDMETHOD(SetProgress)(THIS_ DWORD dwCompleted, DWORD dwTotal) PURE;
570 STDMETHOD(SetProgress64)(THIS_ ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
571 STDMETHOD(SetLine)(THIS_ DWORD dwLineNum, LPCWSTR pwzString, BOOL bPath, LPCVOID reserved) PURE;
572 STDMETHOD(SetCancelMsg)(THIS_ LPCWSTR pwzCancelMsg, LPCVOID reserved) PURE;
573 STDMETHOD(Timer)(THIS_ DWORD dwTimerAction, LPCVOID reserved) PURE;
575 #undef INTERFACE
577 #if !defined(__cplusplus) || defined(CINTERFACE)
578 /*** IUnknown methods ***/
579 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
580 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
581 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
582 /*** IProgressDialog methods ***/
583 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
584 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
585 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
586 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
587 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
588 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
589 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
590 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
591 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
592 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
593 #endif
596 /****************************************************************************
597 * SHAddToRecentDocs API
599 #define SHARD_PIDL 0x00000001L
600 #define SHARD_PATHA 0x00000002L
601 #define SHARD_PATHW 0x00000003L
602 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
604 void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
606 /****************************************************************************
607 * SHBrowseForFolder API
609 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
611 #include <pshpack8.h>
613 typedef struct tagBROWSEINFOA {
614 HWND hwndOwner;
615 LPCITEMIDLIST pidlRoot;
616 LPSTR pszDisplayName;
617 LPCSTR lpszTitle;
618 UINT ulFlags;
619 BFFCALLBACK lpfn;
620 LPARAM lParam;
621 INT iImage;
622 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
624 typedef struct tagBROWSEINFOW {
625 HWND hwndOwner;
626 LPCITEMIDLIST pidlRoot;
627 LPWSTR pszDisplayName;
628 LPCWSTR lpszTitle;
629 UINT ulFlags;
630 BFFCALLBACK lpfn;
631 LPARAM lParam;
632 INT iImage;
633 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
635 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
636 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
637 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
639 #include <poppack.h>
641 /* Browsing for directory. */
642 #define BIF_RETURNONLYFSDIRS 0x0001
643 #define BIF_DONTGOBELOWDOMAIN 0x0002
644 #define BIF_STATUSTEXT 0x0004
645 #define BIF_RETURNFSANCESTORS 0x0008
646 #define BIF_EDITBOX 0x0010
647 #define BIF_VALIDATE 0x0020
648 #define BIF_NEWDIALOGSTYLE 0x0040
649 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
650 #define BIF_BROWSEINCLUDEURLS 0x0080
651 #define BIF_UAHINT 0x0100
652 #define BIF_NONEWFOLDERBUTTON 0x0200
653 #define BIF_NOTRANSLATETARGETS 0x0400
655 #define BIF_BROWSEFORCOMPUTER 0x1000
656 #define BIF_BROWSEFORPRINTER 0x2000
657 #define BIF_BROWSEINCLUDEFILES 0x4000
659 /* message from browser */
660 #define BFFM_INITIALIZED 1
661 #define BFFM_SELCHANGED 2
662 #define BFFM_VALIDATEFAILEDA 3
663 #define BFFM_VALIDATEFAILEDW 4
664 #define BFFM_IUNKNOWN 5
666 /* messages to browser */
667 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
668 #define BFFM_ENABLEOK (WM_USER+101)
669 #define BFFM_SETSELECTIONA (WM_USER+102)
670 #define BFFM_SETSELECTIONW (WM_USER+103)
671 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
672 #define BFFM_SETOKTEXT (WM_USER+105)
673 #define BFFM_SETEXPANDED (WM_USER+106)
675 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
676 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
677 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
678 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
679 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
680 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
682 /**********************************************************************
683 * SHCreateShellFolderViewEx API
686 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
687 IShellView* dwUser,
688 IShellFolder* pshf,
689 HWND hWnd,
690 UINT uMsg,
691 WPARAM wParam,
692 LPARAM lParam);
694 typedef struct _CSFV
696 UINT cbSize;
697 IShellFolder* pshf;
698 IShellView* psvOuter;
699 LPCITEMIDLIST pidl;
700 LONG lEvents;
701 LPFNVIEWCALLBACK pfnCallback;
702 FOLDERVIEWMODE fvm;
703 } CSFV, *LPCSFV;
705 HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
707 /* SHCreateShellFolderViewEx callback messages */
708 #define SFVM_MERGEMENU 1
709 #define SFVM_INVOKECOMMAND 2
710 #define SFVM_GETHELPTEXT 3
711 #define SFVM_GETTOOLTIPTEXT 4
712 #define SFVM_GETBUTTONINFO 5
713 #define SFVM_GETBUTTONS 6
714 #define SFVM_INITMENUPOPUP 7
715 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
716 #define SFVM_DRAWMENUITEM 9 /* undocumented */
717 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
718 #define SFVM_EXITMENULOOP 11 /* undocumented */
719 #define SFVM_VIEWRELEASE 12 /* undocumented */
720 #define SFVM_GETNAMELENGTH 13 /* undocumented */
721 #define SFVM_FSNOTIFY 14
722 #define SFVM_WINDOWCREATED 15
723 #define SFVM_WINDOWCLOSING 16 /* undocumented */
724 #define SFVM_LISTREFRESHED 17 /* undocumented */
725 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
726 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
727 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
728 #define SFVM_GETDETAILSOF 23
729 #define SFVM_COLUMNCLICK 24
730 #define SFVM_QUERYFSNOTIFY 25
731 #define SFVM_DEFITEMCOUNT 26
732 #define SFVM_DEFVIEWMODE 27
733 #define SFVM_UNMERGEFROMMENU 28
734 #define SFVM_ADDINGOBJECT 29 /* undocumented */
735 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
736 #define SFVM_UPDATESTATUSBAR 31
737 #define SFVM_BACKGROUNDENUM 32
738 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
739 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
740 #define SFVM_CANSELECTALL 35 /* undocumented */
741 #define SFVM_DIDDRAGDROP 36
742 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
743 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
744 #define SFVM_SETISFV 39
745 #define SFVM_GETEXTVIEWS 40 /* undocumented */
746 #define SFVM_THISIDLIST 41
747 #define SFVM_ADDPROPERTYPAGES 47
748 #define SFVM_BACKGROUNDENUMDONE 48
749 #define SFVM_GETNOTIFY 49
750 #define SFVM_GETSORTDEFAULTS 53
751 #define SFVM_SIZE 57
752 #define SFVM_GETZONE 58
753 #define SFVM_GETPANE 59
754 #define SFVM_GETHELPTOPIC 63
755 #define SFVM_GETANIMATION 68
756 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
757 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
758 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
759 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
760 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
761 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
762 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
763 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
765 typedef struct _SFV_CREATE
767 UINT cbSize;
768 IShellFolder *pshf;
769 IShellView *psvOuter;
770 IShellFolderViewCB *psfvcb;
771 } SFV_CREATE;
773 HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *pscfv, IShellView **ppsv);
775 /* Types and definitions for the SFM_* parameters */
776 #include <pshpack8.h>
778 #define QCMINFO_PLACE_BEFORE 0
779 #define QCMINFO_PLACE_AFTER 1
780 typedef struct _QCMINFO_IDMAP_PLACEMENT
782 UINT id;
783 UINT fFlags;
784 } QCMINFO_IDMAP_PLACEMENT;
786 typedef struct _QCMINFO_IDMAP
788 UINT nMaxIds;
789 QCMINFO_IDMAP_PLACEMENT pIdList[1];
790 } QCMINFO_IDMAP;
792 typedef struct _QCMINFO
794 HMENU hmenu;
795 UINT indexMenu;
796 UINT idCmdFirst;
797 UINT idCmdLast;
798 QCMINFO_IDMAP const* pIdMap;
799 } QCMINFO, *LPQCMINFO;
801 #define TBIF_DEFAULT 0x00000000
802 #define TBIF_APPEND 0x00000000
803 #define TBIF_PREPEND 0x00000001
804 #define TBIF_REPLACE 0x00000002
805 #define TBIF_INTERNETBAR 0x00010000
806 #define TBIF_STANDARDTOOLBAR 0x00020000
807 #define TBIF_NOTOOLBAR 0x00030000
809 typedef struct _TBINFO
811 UINT cbuttons;
812 UINT uFlags;
813 } TBINFO, *LPTBINFO;
815 #include <poppack.h>
817 /****************************************************************************
818 * SHShellFolderView_Message API
821 LRESULT WINAPI SHShellFolderView_Message(
822 HWND hwndCabinet,
823 UINT uMessage,
824 LPARAM lParam);
826 /* SHShellFolderView_Message messages */
827 #define SFVM_REARRANGE 0x0001
828 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
829 #define SFVM_ADDOBJECT 0x0003
830 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
831 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
832 #define SFVM_REMOVEOBJECT 0x0006
833 #define SFVM_UPDATEOBJECT 0x0007
834 #define SFVM_SETREDRAW 0x0008 /* undocumented */
835 #define SFVM_GETSELECTEDOBJECTS 0x0009
836 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
837 #define SFVM_MOVEICONS 0x000B /* undocumented */
838 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
839 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
840 #define SFVM_SETITEMPOS 0x000E
841 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
842 #define SFVM_SETCLIPBOARD 0x0010
843 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
844 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
845 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
846 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
847 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
848 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
849 #define SFVM_SETPOINTS 0x0017
851 /****************************************************************************
852 * SHGetDataFromIDList API
854 #define SHGDFIL_FINDDATA 1
855 #define SHGDFIL_NETRESOURCE 2
856 #define SHGDFIL_DESCRIPTIONID 3
858 #define SHDID_ROOT_REGITEM 1
859 #define SHDID_FS_FILE 2
860 #define SHDID_FS_DIRECTORY 3
861 #define SHDID_FS_OTHER 4
862 #define SHDID_COMPUTER_DRIVE35 5
863 #define SHDID_COMPUTER_DRIVE525 6
864 #define SHDID_COMPUTER_REMOVABLE 7
865 #define SHDID_COMPUTER_FIXED 8
866 #define SHDID_COMPUTER_NETDRIVE 9
867 #define SHDID_COMPUTER_CDROM 10
868 #define SHDID_COMPUTER_RAMDISK 11
869 #define SHDID_COMPUTER_OTHER 12
870 #define SHDID_NET_DOMAIN 13
871 #define SHDID_NET_SERVER 14
872 #define SHDID_NET_SHARE 15
873 #define SHDID_NET_RESTOFNET 16
874 #define SHDID_NET_OTHER 17
875 #define SHDID_COMPUTER_IMAGING 18
876 #define SHDID_COMPUTER_AUDIO 19
877 #define SHDID_COMPUTER_SHAREDDOCS 20
879 #include <pshpack8.h>
881 typedef struct _SHDESCRIPTIONID
882 { DWORD dwDescriptionId;
883 CLSID clsid;
884 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
886 #include <poppack.h>
888 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
889 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
890 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
892 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
893 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
894 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
896 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
898 /**********************************************************************
899 * SHGetSetSettings ()
902 typedef struct
904 BOOL fShowAllObjects : 1;
905 BOOL fShowExtensions : 1;
906 BOOL fNoConfirmRecycle : 1;
908 BOOL fShowSysFiles : 1;
909 BOOL fShowCompColor : 1;
910 BOOL fDoubleClickInWebView : 1;
911 BOOL fDesktopHTML : 1;
912 BOOL fWin95Classic : 1;
913 BOOL fDontPrettyPath : 1;
914 BOOL fShowAttribCol : 1;
915 BOOL fMapNetDrvBtn : 1;
916 BOOL fShowInfoTip : 1;
917 BOOL fHideIcons : 1;
918 BOOL fWebView : 1;
919 BOOL fFilter : 1;
920 BOOL fShowSuperHidden : 1;
921 BOOL fNoNetCrawling : 1;
923 UINT :15; /* Required for proper binary layout with gcc */
924 DWORD dwWin95Unused;
925 UINT uWin95Unused;
926 LONG lParamSort;
927 int iSortDirection;
928 UINT version;
929 UINT uNotUsed;
930 BOOL fSepProcess: 1;
931 BOOL fStartPanelOn: 1;
932 BOOL fShowStartPage: 1;
933 UINT fSpareFlags : 13;
934 UINT :15; /* Required for proper binary layout with gcc */
935 } SHELLSTATE, *LPSHELLSTATE;
937 /**********************************************************************
938 * SHGetSettings ()
940 typedef struct
941 { BOOL fShowAllObjects : 1;
942 BOOL fShowExtensions : 1;
943 BOOL fNoConfirmRecycle : 1;
944 BOOL fShowSysFiles : 1;
946 BOOL fShowCompColor : 1;
947 BOOL fDoubleClickInWebView : 1;
948 BOOL fDesktopHTML : 1;
949 BOOL fWin95Classic : 1;
951 BOOL fDontPrettyPath : 1;
952 BOOL fShowAttribCol : 1;
953 BOOL fMapNetDrvBtn : 1;
954 BOOL fShowInfoTip : 1;
956 BOOL fHideIcons : 1;
957 UINT fRestFlags : 3;
958 UINT :15; /* Required for proper binary layout with gcc */
959 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
961 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
963 #define SSF_SHOWALLOBJECTS 0x0001
964 #define SSF_SHOWEXTENSIONS 0x0002
965 #define SSF_SHOWCOMPCOLOR 0x0008
966 #define SSF_SHOWSYSFILES 0x0020
967 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
968 #define SSF_SHOWATTRIBCOL 0x0100
969 #define SSF_DESKTOPHTML 0x0200
970 #define SSF_WIN95CLASSIC 0x0400
971 #define SSF_DONTPRETTYPATH 0x0800
972 #define SSF_SHOWINFOTIP 0x2000
973 #define SSF_MAPNETDRVBUTTON 0x1000
974 #define SSF_NOCONFIRMRECYCLE 0x8000
975 #define SSF_HIDEICONS 0x4000
977 /****************************************************************************
978 * SHRestricted API
980 typedef enum RESTRICTIONS
982 REST_NONE = 0x00000000,
983 REST_NORUN = 0x00000001,
984 REST_NOCLOSE = 0x00000002,
985 REST_NOSAVESET = 0x00000004,
986 REST_NOFILEMENU = 0x00000008,
987 REST_NOSETFOLDERS = 0x00000010,
988 REST_NOSETTASKBAR = 0x00000020,
989 REST_NODESKTOP = 0x00000040,
990 REST_NOFIND = 0x00000080,
991 REST_NODRIVES = 0x00000100,
992 REST_NODRIVEAUTORUN = 0x00000200,
993 REST_NODRIVETYPEAUTORUN = 0x00000400,
994 REST_NONETHOOD = 0x00000800,
995 REST_STARTBANNER = 0x00001000,
996 REST_RESTRICTRUN = 0x00002000,
997 REST_NOPRINTERTABS = 0x00004000,
998 REST_NOPRINTERDELETE = 0x00008000,
999 REST_NOPRINTERADD = 0x00010000,
1000 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
1001 REST_MYDOCSONNET = 0x00040000,
1002 REST_NOEXITTODOS = 0x00080000,
1003 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
1004 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
1005 REST_NOCOMMONGROUPS = 0x00400000,
1006 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
1007 REST_NOWEB = 0x01000000,
1008 REST_NOTRAYCONTEXTMENU = 0x02000000,
1009 REST_NOVIEWCONTEXTMENU = 0x04000000,
1010 REST_NONETCONNECTDISCONNECT = 0x08000000,
1011 REST_STARTMENULOGOFF = 0x10000000,
1012 REST_NOSETTINGSASSIST = 0x20000000,
1013 REST_NOINTERNETICON = 0x40000001,
1014 REST_NORECENTDOCSHISTORY,
1015 REST_NORECENTDOCSMENU,
1016 REST_NOACTIVEDESKTOP,
1017 REST_NOACTIVEDESKTOPCHANGES,
1018 REST_NOFAVORITESMENU,
1019 REST_CLEARRECENTDOCSONEXIT,
1020 REST_CLASSICSHELL,
1021 REST_NOCUSTOMIZEWEBVIEW,
1023 REST_NOHTMLWALLPAPER = 0x40000010,
1024 REST_NOCHANGINGWALLPAPER,
1025 REST_NODESKCOMP,
1026 REST_NOADDDESKCOMP,
1027 REST_NODELDESKCOMP,
1028 REST_NOCLOSEDESKCOMP,
1029 REST_NOCLOSE_DRAGDROPBAND,
1030 REST_NOMOVINGBAND,
1031 REST_NOEDITDESKCOMP,
1032 REST_NORESOLVESEARCH,
1033 REST_NORESOLVETRACK,
1034 REST_FORCECOPYACLWITHFILE,
1035 REST_NOLOGO3CHANNELNOTIFY,
1036 REST_NOFORGETSOFTWAREUPDATE,
1037 REST_NOSETACTIVEDESKTOP,
1038 REST_NOUPDATEWINDOWS,
1039 REST_NOCHANGESTARMENU, /* 0x40000020 */
1040 REST_NOFOLDEROPTIONS,
1041 REST_HASFINDCOMPUTERS,
1042 REST_INTELLIMENUS,
1043 REST_RUNDLGMEMCHECKBOX,
1044 REST_ARP_ShowPostSetup,
1045 REST_NOCSC,
1046 REST_NOCONTROLPANEL,
1047 REST_ENUMWORKGROUP,
1048 REST_ARP_NOARP,
1049 REST_ARP_NOREMOVEPAGE,
1050 REST_ARP_NOADDPAGE,
1051 REST_ARP_NOWINSETUPPAGE,
1052 REST_GREYMSIADS,
1053 REST_NOCHANGEMAPPEDDRIVELABEL,
1054 REST_NOCHANGEMAPPEDDRIVECOMMENT,
1055 REST_MaxRecentDocs, /* 0x40000030 */
1056 REST_NONETWORKCONNECTIONS,
1057 REST_FORCESTARTMENULOGOFF,
1058 REST_NOWEBVIEW,
1059 REST_NOCUSTOMIZETHISFOLDER,
1060 REST_NOENCRYPTION,
1062 REST_ALLOWFRENCHENCRYPTION, /* not documented */
1064 REST_DONTSHOWSUPERHIDDEN,
1065 REST_NOSHELLSEARCHBUTTON,
1066 REST_NOHARDWARETAB,
1067 REST_NORUNASINSTALLPROMPT,
1068 REST_PROMPTRUNASINSTALLNETPATH,
1069 REST_NOMANAGEMYCOMPUTERVERB,
1070 REST_NORECENTDOCSNETHOOD,
1071 REST_DISALLOWRUN,
1072 REST_NOWELCOMESCREEN,
1073 REST_RESTRICTCPL, /* 0x40000040 */
1074 REST_DISALLOWCPL,
1075 REST_NOSMBALLOONTIP,
1076 REST_NOSMHELP,
1077 REST_NOWINKEYS,
1078 REST_NOENCRYPTONMOVE,
1079 REST_NOLOCALMACHINERUN,
1080 REST_NOCURRENTUSERRUN,
1081 REST_NOLOCALMACHINERUNONCE,
1082 REST_NOCURRENTUSERRUNONCE,
1083 REST_FORCEACTIVEDESKTOPON,
1084 REST_NOCOMPUTERSNEARME,
1085 REST_NOVIEWONDRIVE,
1086 REST_NONETCRAWL,
1087 REST_NOSHAREDDOCUMENTS,
1088 REST_NOSMMYDOCS,
1089 REST_NOSMMYPICS, /* 0x40000050 */
1090 REST_ALLOWBITBUCKDRIVES,
1091 REST_NONLEGACYSHELLMODE,
1092 REST_NOCONTROLPANELBARRICADE,
1093 REST_NOSTARTPAGE,
1094 REST_NOAUTOTRAYNOTIFY,
1095 REST_NOTASKGROUPING,
1096 REST_NOCDBURNING,
1097 REST_MYCOMPNOPROP,
1098 REST_MYDOCSNOPROP,
1099 REST_NOSTARTPANEL,
1100 REST_NODISPLAYAPPEARANCEPAGE,
1101 REST_NOTHEMESTAB,
1102 REST_NOVISUALSTYLECHOICE,
1103 REST_NOSIZECHOICE,
1104 REST_NOCOLORCHOICE,
1105 REST_SETVISUALSTYLE, /* 0x40000060 */
1106 REST_STARTRUNNOHOMEPATH,
1107 REST_NOUSERNAMEINSTARTPANEL,
1108 REST_NOMYCOMPUTERICON,
1109 REST_NOSMNETWORKPLACES,
1110 REST_NOSMPINNEDLIST,
1111 REST_NOSMMYMUSIC,
1112 REST_NOSMEJECTPC,
1113 REST_NOSMMOREPROGRAMS,
1114 REST_NOSMMFUPROGRAMS,
1115 REST_NOTRAYITEMSDISPLAY,
1116 REST_NOTOOLBARSONTASKBAR,
1117 /* 0x4000006C
1118 0x4000006D
1119 0x4000006E */
1120 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
1121 REST_HIDECLOCK, /* 0x40000070 */
1122 REST_NOLOWDISKSPACECHECKS,
1123 REST_NOENTIRENETWORK,
1124 REST_NODESKTOPCLEANUP,
1125 REST_BITBUCKNUKEONDELETE,
1126 REST_BITBUCKCONFIRMDELETE,
1127 REST_BITBUCKNOPROP,
1128 REST_NODISPBACKGROUND,
1129 REST_NODISPSCREENSAVEPG,
1130 REST_NODISPSETTINGSPG,
1131 REST_NODISPSCREENSAVEPREVIEW,
1132 REST_NODISPLAYCPL,
1133 REST_HIDERUNASVERB,
1134 REST_NOTHUMBNAILCACHE,
1135 REST_NOSTRCMPLOGICAL,
1136 REST_NOPUBLISHWIZARD,
1137 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
1138 REST_NOWEBSERVICES,
1139 REST_ALLOWUNHASHEDWEBVIEW,
1140 REST_ALLOWLEGACYWEBVIEW,
1141 REST_REVERTWEBVIEWSECURITY,
1143 REST_INHERITCONSOLEHANDLES = 0x40000086,
1145 REST_NODISCONNECT = 0x41000001,
1146 REST_NOSECURITY,
1147 REST_NOFILEASSOCIATE, /* 0x41000003 */
1148 } RESTRICTIONS;
1150 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
1152 /****************************************************************************
1153 * SHChangeNotify API
1155 typedef struct _SHChangeNotifyEntry
1157 LPCITEMIDLIST pidl;
1158 BOOL fRecursive;
1159 } SHChangeNotifyEntry;
1161 #define SHCNE_RENAMEITEM 0x00000001
1162 #define SHCNE_CREATE 0x00000002
1163 #define SHCNE_DELETE 0x00000004
1164 #define SHCNE_MKDIR 0x00000008
1165 #define SHCNE_RMDIR 0x00000010
1166 #define SHCNE_MEDIAINSERTED 0x00000020
1167 #define SHCNE_MEDIAREMOVED 0x00000040
1168 #define SHCNE_DRIVEREMOVED 0x00000080
1169 #define SHCNE_DRIVEADD 0x00000100
1170 #define SHCNE_NETSHARE 0x00000200
1171 #define SHCNE_NETUNSHARE 0x00000400
1172 #define SHCNE_ATTRIBUTES 0x00000800
1173 #define SHCNE_UPDATEDIR 0x00001000
1174 #define SHCNE_UPDATEITEM 0x00002000
1175 #define SHCNE_SERVERDISCONNECT 0x00004000
1176 #define SHCNE_UPDATEIMAGE 0x00008000
1177 #define SHCNE_DRIVEADDGUI 0x00010000
1178 #define SHCNE_RENAMEFOLDER 0x00020000
1179 #define SHCNE_FREESPACE 0x00040000
1181 #define SHCNE_EXTENDED_EVENT 0x04000000
1182 #define SHCNE_ASSOCCHANGED 0x08000000
1183 #define SHCNE_DISKEVENTS 0x0002381F
1184 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1185 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1186 #define SHCNE_INTERRUPT 0x80000000
1188 #define SHCNEE_ORDERCHANGED 0x0002L
1189 #define SHCNEE_MSI_CHANGE 0x0004L
1190 #define SHCNEE_MSI_UNINSTALL 0x0005L
1192 #define SHCNF_IDLIST 0x0000
1193 #define SHCNF_PATHA 0x0001
1194 #define SHCNF_PRINTERA 0x0002
1195 #define SHCNF_DWORD 0x0003
1196 #define SHCNF_PATHW 0x0005
1197 #define SHCNF_PRINTERW 0x0006
1198 #define SHCNF_TYPE 0x00FF
1199 #define SHCNF_FLUSH 0x1000
1200 #define SHCNF_FLUSHNOWAIT 0x2000
1202 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1203 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1205 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
1207 typedef enum {
1208 SLDF_HAS_ID_LIST = 0x00000001,
1209 SLDF_HAS_LINK_INFO = 0x00000002,
1210 SLDF_HAS_NAME = 0x00000004,
1211 SLDF_HAS_RELPATH = 0x00000008,
1212 SLDF_HAS_WORKINGDIR = 0x00000010,
1213 SLDF_HAS_ARGS = 0x00000020,
1214 SLDF_HAS_ICONLOCATION = 0x00000040,
1215 SLDF_UNICODE = 0x00000080,
1216 SLDF_FORCE_NO_LINKINFO = 0x00000100,
1217 SLDF_HAS_EXP_SZ = 0x00000200,
1218 SLDF_RUN_IN_SEPARATE = 0x00000400,
1219 SLDF_HAS_LOGO3ID = 0x00000800,
1220 SLDF_HAS_DARWINID = 0x00001000,
1221 SLDF_RUNAS_USER = 0x00002000,
1222 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
1223 SLDF_NO_PIDL_ALIAS = 0x00008000,
1224 SLDF_FORCE_UNCNAME = 0x00010000,
1225 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
1226 SLDF_FORCE_NO_LINKTRACK = 0x00040000,
1227 SLDF_ENABLE_TARGET_METADATA = 0x00080000,
1228 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING = 0x00200000,
1229 SLDF_VALID = 0x003ff7ff,
1230 SLDF_RESERVED = 0x80000000,
1231 } SHELL_LINK_DATA_FLAGS;
1233 typedef struct tagDATABLOCKHEADER
1235 DWORD cbSize;
1236 DWORD dwSignature;
1237 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
1239 typedef struct {
1240 DATABLOCK_HEADER dbh;
1241 CHAR szDarwinID[MAX_PATH];
1242 WCHAR szwDarwinID[MAX_PATH];
1243 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
1245 typedef struct {
1246 DWORD cbSize;
1247 DWORD cbSignature;
1248 CHAR szTarget[MAX_PATH];
1249 WCHAR szwTarget[MAX_PATH];
1250 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
1252 typedef struct {
1253 DWORD cbSize;
1254 DWORD dwSignature;
1255 DWORD idSpecialFolder;
1256 DWORD cbOffset;
1257 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
1259 typedef struct {
1260 DWORD cbSize;
1261 DWORD dwSignature;
1262 BYTE abPropertyStorage[1];
1263 } EXP_PROPERTYSTORAGE;
1265 #define EXP_SZ_LINK_SIG 0xa0000001
1266 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1267 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1268 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1269 #define EXP_DARWIN_ID_SIG 0xa0000006
1270 #define EXP_SZ_ICON_SIG 0xa0000007
1271 #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
1272 #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
1274 typedef struct _SHChangeDWORDAsIDList {
1275 USHORT cb;
1276 DWORD dwItem1;
1277 DWORD dwItem2;
1278 USHORT cbZero;
1279 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
1281 typedef struct _SHChangeProductKeyAsIDList {
1282 USHORT cb;
1283 WCHAR wszProductKey[39];
1284 USHORT cbZero;
1285 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
1287 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
1288 int cEntries, SHChangeNotifyEntry *pshcne);
1289 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
1290 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
1291 LPITEMIDLIST **pppidl, LONG *plEvent);
1292 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
1294 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
1296 /****************************************************************************
1297 * SHCreateDirectory API
1299 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
1300 int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
1301 int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
1302 #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
1304 /****************************************************************************
1305 * SHGetSpecialFolderLocation API
1307 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
1308 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
1310 /****************************************************************************
1311 * SHGetFolderPath API
1313 typedef enum {
1314 SHGFP_TYPE_CURRENT = 0,
1315 SHGFP_TYPE_DEFAULT = 1
1316 } SHGFP_TYPE;
1318 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
1319 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
1320 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1322 #define CSIDL_DESKTOP 0x0000
1323 #define CSIDL_INTERNET 0x0001
1324 #define CSIDL_PROGRAMS 0x0002
1325 #define CSIDL_CONTROLS 0x0003
1326 #define CSIDL_PRINTERS 0x0004
1327 #define CSIDL_PERSONAL 0x0005
1328 #define CSIDL_FAVORITES 0x0006
1329 #define CSIDL_STARTUP 0x0007
1330 #define CSIDL_RECENT 0x0008
1331 #define CSIDL_SENDTO 0x0009
1332 #define CSIDL_BITBUCKET 0x000a
1333 #define CSIDL_STARTMENU 0x000b
1334 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1335 #define CSIDL_MYMUSIC 0x000d
1336 #define CSIDL_MYVIDEO 0x000e
1337 #define CSIDL_DESKTOPDIRECTORY 0x0010
1338 #define CSIDL_DRIVES 0x0011
1339 #define CSIDL_NETWORK 0x0012
1340 #define CSIDL_NETHOOD 0x0013
1341 #define CSIDL_FONTS 0x0014
1342 #define CSIDL_TEMPLATES 0x0015
1343 #define CSIDL_COMMON_STARTMENU 0x0016
1344 #define CSIDL_COMMON_PROGRAMS 0X0017
1345 #define CSIDL_COMMON_STARTUP 0x0018
1346 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1347 #define CSIDL_APPDATA 0x001a
1348 #define CSIDL_PRINTHOOD 0x001b
1349 #define CSIDL_LOCAL_APPDATA 0x001c
1350 #define CSIDL_ALTSTARTUP 0x001d
1351 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1352 #define CSIDL_COMMON_FAVORITES 0x001f
1353 #define CSIDL_INTERNET_CACHE 0x0020
1354 #define CSIDL_COOKIES 0x0021
1355 #define CSIDL_HISTORY 0x0022
1356 #define CSIDL_COMMON_APPDATA 0x0023
1357 #define CSIDL_WINDOWS 0x0024
1358 #define CSIDL_SYSTEM 0x0025
1359 #define CSIDL_PROGRAM_FILES 0x0026
1360 #define CSIDL_MYPICTURES 0x0027
1361 #define CSIDL_PROFILE 0x0028
1362 #define CSIDL_SYSTEMX86 0x0029
1363 #define CSIDL_PROGRAM_FILESX86 0x002a
1364 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1365 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1366 #define CSIDL_COMMON_TEMPLATES 0x002d
1367 #define CSIDL_COMMON_DOCUMENTS 0x002e
1368 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1369 #define CSIDL_ADMINTOOLS 0x0030
1370 #define CSIDL_CONNECTIONS 0x0031
1371 #define CSIDL_COMMON_MUSIC 0x0035
1372 #define CSIDL_COMMON_PICTURES 0x0036
1373 #define CSIDL_COMMON_VIDEO 0x0037
1374 #define CSIDL_RESOURCES 0x0038
1375 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1376 #define CSIDL_COMMON_OEM_LINKS 0x003a
1377 #define CSIDL_CDBURN_AREA 0x003b
1378 #define CSIDL_COMPUTERSNEARME 0x003d
1379 #define CSIDL_PROFILES 0x003e
1380 #define CSIDL_FOLDER_MASK 0x00ff
1381 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1382 #define CSIDL_FLAG_NO_ALIAS 0x1000
1383 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1384 #define CSIDL_FLAG_CREATE 0x8000
1386 #define CSIDL_FLAG_MASK 0xff00
1388 /****************************************************************************
1389 * SHGetDesktopFolder API
1391 HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
1393 /****************************************************************************
1394 * SHBindToParent API
1396 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1398 /****************************************************************************
1399 * SHDefExtractIcon API
1401 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
1402 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1403 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
1404 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1405 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1408 * DROPFILES for CF_HDROP and CF_PRINTERS
1410 typedef struct _DROPFILES
1412 DWORD pFiles;
1413 POINT pt;
1414 BOOL fNC;
1415 BOOL fWide;
1416 } DROPFILES, *LPDROPFILES;
1419 * Properties of a file in the clipboard
1421 typedef struct _FILEDESCRIPTORA {
1422 DWORD dwFlags;
1423 CLSID clsid;
1424 SIZEL sizel;
1425 POINTL pointl;
1426 DWORD dwFileAttributes;
1427 FILETIME ftCreationTime;
1428 FILETIME ftLastAccessTime;
1429 FILETIME ftLastWriteTime;
1430 DWORD nFileSizeHigh;
1431 DWORD nFileSizeLow;
1432 CHAR cFileName[MAX_PATH];
1433 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1435 typedef struct _FILEDESCRIPTORW {
1436 DWORD dwFlags;
1437 CLSID clsid;
1438 SIZEL sizel;
1439 POINTL pointl;
1440 DWORD dwFileAttributes;
1441 FILETIME ftCreationTime;
1442 FILETIME ftLastAccessTime;
1443 FILETIME ftLastWriteTime;
1444 DWORD nFileSizeHigh;
1445 DWORD nFileSizeLow;
1446 WCHAR cFileName[MAX_PATH];
1447 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
1449 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
1450 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
1453 * CF_FILEGROUPDESCRIPTOR clipboard format
1455 typedef struct _FILEGROUPDESCRIPTORA {
1456 UINT cItems;
1457 FILEDESCRIPTORA fgd[1];
1458 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1460 typedef struct _FILEGROUPDESCRIPTORW {
1461 UINT cItems;
1462 FILEDESCRIPTORW fgd[1];
1463 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1465 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1466 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1468 /****************************************************************************
1469 * Cabinet functions
1472 typedef struct {
1473 WORD cLength;
1474 WORD nVersion;
1475 BOOL fFullPathTitle:1;
1476 BOOL fSaveLocalView:1;
1477 BOOL fNotShell:1;
1478 BOOL fSimpleDefault:1;
1479 BOOL fDontShowDescBar:1;
1480 BOOL fNewWindowMode:1;
1481 BOOL fShowCompColor:1;
1482 BOOL fDontPrettyNames:1;
1483 BOOL fAdminsCreateCommonGroups:1;
1484 UINT fUnusedFlags:7;
1485 UINT :15; /* Required for proper binary layout with gcc */
1486 UINT fMenuEnumFilter;
1487 } CABINETSTATE, *LPCABINETSTATE;
1489 #define CABINETSTATE_VERSION 2
1491 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1492 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1494 /****************************************************************************
1495 * Path Manipulation Routines
1498 /* PathProcessCommand flags */
1499 #define PPCF_ADDQUOTES 0x01
1500 #define PPCF_INCLUDEARGS 0x02
1501 #define PPCF_ADDARGUMENTS 0x03
1502 #define PPCF_NODIRECTORIES 0x10
1503 #define PPCF_DONTRESOLVE 0x20
1504 #define PPCF_FORCEQUALIFY 0x40
1505 #define PPCF_LONGESTPOSSIBLE 0x80
1507 /* PathResolve flags */
1508 #define PRF_VERIFYEXISTS 0x01
1509 #define PRF_EXECUTABLE 0x02
1510 #define PRF_TRYPROGRAMEXTENSIONS 0x03
1511 #define PRF_FIRSTDIRDEF 0x04
1512 #define PRF_DONTFINDLINK 0x08
1514 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1515 LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
1516 BOOL WINAPI PathYetAnotherMakeUniqueName(LPWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
1518 /****************************************************************************
1519 * Drag And Drop Routines
1522 /* DAD_AutoScroll sample structure */
1523 #define NUM_POINTS 3
1524 typedef struct
1526 int iNextSample;
1527 DWORD dwLastScroll;
1528 BOOL bFull;
1529 POINT pts[NUM_POINTS];
1530 DWORD dwTimes[NUM_POINTS];
1531 } AUTO_SCROLL_DATA;
1533 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1534 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1535 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1536 BOOL WINAPI DAD_DragMove(POINT);
1537 BOOL WINAPI DAD_DragLeave(void);
1538 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1539 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1541 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1542 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1543 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1544 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1545 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1546 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1547 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1548 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1549 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1550 void WINAPI ILFree(LPITEMIDLIST);
1551 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1552 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1553 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1554 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1555 HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1556 BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1557 HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1560 #include <poppack.h>
1562 #ifdef __cplusplus
1563 } /* extern "C" */
1564 #endif /* defined(__cplusplus) */
1566 #endif /* __WINE_SHLOBJ_H */