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