include: Add MFTOPOLOGY_DXVA_MODE enum definition.
[wine.git] / include / shlobj.h
blob327ab981648cfabc5c35e6e0077ce44e030a6ad8
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>
26 #include <shtypes.h>
27 #include <shobjidl.h>
29 #ifdef WINE_NO_UNICODE_MACROS
30 #undef GetObject
31 #endif
33 #ifdef __cplusplus
34 extern "C" {
35 #endif /* defined(__cplusplus) */
37 #ifndef WINSHELLAPI
38 #ifdef _SHELL32_
39 # define WINSHELLAPI
40 #else
41 # define WINSHELLAPI DECLSPEC_IMPORT
42 #endif
43 #endif
45 /* Except for specific structs, this header is byte packed */
46 #include <pshpack1.h>
48 #ifndef HPSXA_DEFINED
49 #define HPSXA_DEFINED
50 DECLARE_HANDLE(HPSXA);
51 #endif
53 typedef enum
55 KF_FLAG_DEFAULT = 0x00000000,
56 KF_FLAG_SIMPLE_IDLIST = 0x00000100,
57 KF_FLAG_NOT_PARENT_RELATIVE = 0x00000200,
58 KF_FLAG_DEFAULT_PATH = 0x00000400,
59 KF_FLAG_INIT = 0x00000800,
60 KF_FLAG_NO_ALIAS = 0x00001000,
61 KF_FLAG_DONT_UNEXPAND = 0x00002000,
62 KF_FLAG_DONT_VERIFY = 0x00004000,
63 KF_FLAG_CREATE = 0x00008000,
64 KF_FLAG_NO_APPCONTAINER_REDIRECTION = 0x00010000,
65 KF_FLAG_ALIAS_ONLY = 0x80000000
66 } KNOWN_FOLDER_FLAG;
68 enum
70 GPFIDL_DEFAULT = 0x00,
71 GPFIDL_ALTNAME = 0x01,
72 GPFIDL_UNCPRINTER = 0x02
75 typedef int GPFIDL_FLAGS;
77 WINSHELLAPI void WINAPI SHFree(void*);
78 WINSHELLAPI UINT WINAPI SHAddFromPropSheetExtArray(HPSXA,LPFNADDPROPSHEETPAGE,LPARAM);
79 WINSHELLAPI void* WINAPI SHAlloc(ULONG) __WINE_ALLOC_SIZE(1) __WINE_DEALLOC(SHFree) __WINE_MALLOC;
80 WINSHELLAPI HRESULT WINAPI SHBindToObject(IShellFolder *, const ITEMIDLIST *, IBindCtx *, REFIID, void **);
81 WINSHELLAPI HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*);
82 WINSHELLAPI HPSXA WINAPI SHCreatePropSheetExtArray(HKEY,LPCWSTR,UINT);
83 WINSHELLAPI HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY,LPCWSTR,UINT,IDataObject*);
84 WINSHELLAPI HRESULT WINAPI SHCreateQueryCancelAutoPlayMoniker(IMoniker**);
85 WINSHELLAPI HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST,IShellFolder*,LPCITEMIDLIST,IShellItem**);
86 WINSHELLAPI DWORD WINAPI SHCLSIDFromStringA(LPCSTR,CLSID*);
87 WINSHELLAPI DWORD WINAPI SHCLSIDFromStringW(LPCWSTR,CLSID*);
88 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
89 WINSHELLAPI HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**);
90 WINSHELLAPI void WINAPI SHDestroyPropSheetExtArray(HPSXA);
91 WINSHELLAPI BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
92 WINSHELLAPI DWORD WINAPI SHFormatDrive(HWND,UINT,UINT,UINT);
93 WINSHELLAPI BOOL WINAPI GetFileNameFromBrowse(HWND,LPWSTR,DWORD,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
94 WINSHELLAPI HRESULT WINAPI SHGetInstanceExplorer(IUnknown**);
95 WINSHELLAPI HRESULT WINAPI SHGetFolderPathAndSubDirA(HWND,int,HANDLE,DWORD,LPCSTR,LPSTR);
96 WINSHELLAPI HRESULT WINAPI SHGetFolderPathAndSubDirW(HWND,int,HANDLE,DWORD,LPCWSTR,LPWSTR);
97 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir)
98 WINSHELLAPI HRESULT WINAPI SHGetKnownFolderIDList(REFKNOWNFOLDERID,DWORD,HANDLE,PIDLIST_ABSOLUTE*);
99 WINSHELLAPI HRESULT WINAPI SHGetKnownFolderItem(REFKNOWNFOLDERID,KNOWN_FOLDER_FLAG,HANDLE,REFIID,void**);
100 WINSHELLAPI HRESULT WINAPI SHGetKnownFolderPath(REFKNOWNFOLDERID,DWORD,HANDLE,PWSTR*);
101 WINSHELLAPI BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
102 WINSHELLAPI BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
103 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
104 WINSHELLAPI BOOL WINAPI SHGetPathFromIDListEx(PCIDLIST_ABSOLUTE,WCHAR*,DWORD,GPFIDL_FLAGS);
105 WINSHELLAPI INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST);
106 WINSHELLAPI HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
107 WINSHELLAPI HRESULT WINAPI SHLoadOLE(LPARAM);
108 WINSHELLAPI HRESULT WINAPI SHOpenFolderAndSelectItems(PCIDLIST_ABSOLUTE,UINT,PCUITEMID_CHILD_ARRAY,DWORD);
109 WINSHELLAPI HRESULT WINAPI SHParseDisplayName(LPCWSTR,IBindCtx*,LPITEMIDLIST*,SFGAOF,SFGAOF*);
110 WINSHELLAPI HRESULT WINAPI SHPathPrepareForWriteA(HWND,IUnknown*,LPCSTR,DWORD);
111 WINSHELLAPI HRESULT WINAPI SHPathPrepareForWriteW(HWND,IUnknown*,LPCWSTR,DWORD);
112 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite)
113 WINSHELLAPI UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM);
114 WINSHELLAPI LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
115 WINSHELLAPI BOOL WINAPI SHRunControlPanel(LPCWSTR, HWND);
116 WINSHELLAPI int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
117 WINSHELLAPI HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
118 WINSHELLAPI VOID WINAPI SHUpdateImageA(LPCSTR,INT,UINT,INT);
119 WINSHELLAPI VOID WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
120 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
121 WINSHELLAPI int WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
122 WINSHELLAPI int WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
123 WINSHELLAPI int WINAPI DriveType(int);
124 WINSHELLAPI int WINAPI RealDriveType(int, BOOL);
125 WINSHELLAPI int WINAPI IsNetDrive(int);
126 WINSHELLAPI BOOL WINAPI IsUserAnAdmin(void);
127 WINSHELLAPI UINT WINAPI Shell_MergeMenus(HMENU,HMENU,UINT,UINT,UINT,ULONG);
128 WINSHELLAPI BOOL WINAPI Shell_GetImageLists(HIMAGELIST*,HIMAGELIST*);
129 WINSHELLAPI BOOL WINAPI SignalFileOpen(PCIDLIST_ABSOLUTE);
131 BOOL WINAPI ImportPrivacySettings(LPCWSTR, BOOL*, BOOL*);
133 #define SHFMT_ERROR __MSABI_LONG(0xFFFFFFFF) /* Error on last format, drive may be formattable */
134 #define SHFMT_CANCEL __MSABI_LONG(0xFFFFFFFE) /* Last format was cancelled */
135 #define SHFMT_NOFORMAT __MSABI_LONG(0xFFFFFFFD) /* Drive is not formattable */
137 /* SHFormatDrive flags */
138 #define SHFMT_ID_DEFAULT 0xFFFF
139 #define SHFMT_OPT_FULL 1
140 #define SHFMT_OPT_SYSONLY 2
142 /* SHPathPrepareForWrite flags */
143 #define SHPPFW_NONE 0x00000000
144 #define SHPPFW_DIRCREATE 0x00000001
145 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
146 #define SHPPFW_ASKDIRCREATE 0x00000002
147 #define SHPPFW_IGNOREFILENAME 0x00000004
148 #define SHPPFW_NOWRITECHECK 0x00000008
149 #define SHPPFW_MEDIACHECKONLY 0x00000010
151 /* SHObjectProperties flags */
152 #define SHOP_PRINTERNAME 0x01
153 #define SHOP_FILEPATH 0x02
154 #define SHOP_VOLUMEGUID 0x04
156 /* SHOpenFolderAndSelectItems flags */
157 #define OFASI_EDIT 0x0001
158 #define OFASI_OPENDESKTOP 0x0002
160 WINSHELLAPI BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
162 #define PCS_FATAL 0x80000000
163 #define PCS_REPLACEDCHAR 0x00000001
164 #define PCS_REMOVEDCHAR 0x00000002
165 #define PCS_TRUNCATED 0x00000004
166 #define PCS_PATHTOOLONG 0x00000008
168 WINSHELLAPI int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
170 /* SHOpenWithDialog API */
172 typedef enum
174 OAIF_ALLOW_REGISTRATION = 0x00000001,
175 OAIF_REGISTER_EXT = 0x00000002,
176 OAIF_EXEC = 0x00000004,
177 OAIF_FORCE_REGISTRATION = 0x00000008,
178 OAIF_HIDE_REGISTRATION = 0x00000020,
179 OAIF_URL_PROTOCOL = 0x00000040,
180 OAIF_FILE_IS_URI = 0x00000080
181 } OPEN_AS_INFO_FLAGS;
183 #include <pshpack8.h>
184 typedef struct
186 LPCWSTR pcszFile;
187 LPCWSTR pcszClass;
188 OPEN_AS_INFO_FLAGS oaifInFlags;
189 } OPENASINFO;
190 #include <poppack.h>
192 WINSHELLAPI HRESULT WINAPI SHOpenWithDialog(HWND,const OPENASINFO*);
194 /* Shell_MergeMenus flags */
195 #define MM_ADDSEPARATOR 0x00000001
196 #define MM_SUBMENUSHAVEIDS 0x00000002
197 #define MM_DONTREMOVESEPS 0x00000004
199 /*****************************************************************************
200 * IContextMenu interface
204 /* DATAOBJECT_InitShellIDList*/
205 #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
206 #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
207 #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
208 /* DATAOBJECT_InitFileGroupDesc */
209 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
210 /* DATAOBJECT_InitFileContents*/
211 #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
212 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
213 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
214 #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
215 #define CFSTR_SHELLURLA "UniformResourceLocator"
216 #define CFSTR_INETURLA CFSTR_SHELLURLA
217 #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
218 #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
219 #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
220 #define CFSTR_INDRAGLOOPA "InShellDragLoop"
221 #define CFSTR_DRAGCONTEXTA "DragContext"
222 #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
223 #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
224 #define CFSTR_TARGETCLSIDA "TargetCLSID"
225 #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
226 #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
228 #if defined(__GNUC__)
229 # define CFSTR_SHELLIDLISTW \
230 (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
231 # define CFSTR_SHELLIDLISTOFFSETW \
232 (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
233 # define CFSTR_NETRESOURCESW \
234 (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
235 # define CFSTR_FILEDESCRIPTORW \
236 (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
237 # define CFSTR_FILECONTENTSW \
238 (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
239 # define CFSTR_FILENAMEW \
240 (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
241 # define CFSTR_FILENAMEMAPW \
242 (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
243 # define CFSTR_PRINTERGROUPW \
244 (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
245 # define CFSTR_SHELLURLW \
246 (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 }
247 # define CFSTR_INETURLW \
248 (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 }
249 # define CFSTR_PREFERREDDROPEFFECTW \
250 (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
251 # define CFSTR_PERFORMEDDROPEFFECTW \
252 (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
253 # define CFSTR_PASTESUCCEEDEDW \
254 (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
255 # define CFSTR_INDRAGLOOPW \
256 (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
257 # define CFSTR_DRAGCONTEXTW \
258 (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
259 # define CFSTR_MOUNTEDVOLUMEW \
260 (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
261 # define CFSTR_PERSISTEDDATAOBJECTW \
262 (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
263 # define CFSTR_TARGETCLSIDW \
264 (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
265 # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
266 (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
267 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
268 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
269 (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
270 ' ','D','r','o','p','E','f','f','e','c','t',0 }
271 #elif defined(_MSC_VER)
272 # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
273 # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
274 # define CFSTR_NETRESOURCESW L"Net Resource"
275 # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
276 # define CFSTR_FILECONTENTSW L"FileContents"
277 # define CFSTR_FILENAMEW L"FileNameW"
278 # define CFSTR_FILENAMEMAPW L"FileNameMapW"
279 # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
280 # define CFSTR_SHELLURLW L"UniformResourceLocator"
281 # define CFSTR_INETURLW L"UniformResourceLocatorW"
282 # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
283 # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
284 # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
285 # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
286 # define CFSTR_DRAGCONTEXTW L"DragContext"
287 # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
288 # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
289 # define CFSTR_TARGETCLSIDW L"TargetCLSID"
290 # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
291 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
292 #else
293 static const WCHAR CFSTR_SHELLIDLISTW[] =
294 { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
295 static const WCHAR CFSTR_SHELLIDLISTOFFSETW[] =
296 { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
297 static const WCHAR CFSTR_NETRESOURCESW[] =
298 { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
299 static const WCHAR CFSTR_FILEDESCRIPTORW[] =
300 { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
301 static const WCHAR CFSTR_FILECONTENTSW[] =
302 { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
303 static const WCHAR CFSTR_FILENAMEW[] =
304 { 'F','i','l','e','N','a','m','e','W',0 };
305 static const WCHAR CFSTR_FILENAMEMAPW[] =
306 { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
307 static const WCHAR CFSTR_PRINTERGROUPW[] =
308 { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
309 static const WCHAR CFSTR_SHELLURLW[] =
310 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
311 static const WCHAR CFSTR_INETURLW[] =
312 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
313 static const WCHAR CFSTR_PREFERREDDROPEFFECTW[] =
314 { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
315 static const WCHAR CFSTR_PERFORMEDDROPEFFECTW[] =
316 { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
317 static const WCHAR CFSTR_PASTESUCCEEDEDW[] =
318 { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
319 static const WCHAR CFSTR_INDRAGLOOPW[] =
320 { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
321 static const WCHAR CFSTR_DRAGCONTEXTW[] =
322 { 'D','r','a','g','C','o','n','t','e','x','t',0 };
323 static const WCHAR CFSTR_MOUNTEDVOLUMEW[] =
324 { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
325 static const WCHAR CFSTR_PERSISTEDDATAOBJECTW[] =
326 { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
327 static const WCHAR CFSTR_TARGETCLSIDW[] =
328 { 'T','a','r','g','e','t','C','L','S','I','D',0 };
329 static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW[] =
330 { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
331 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
332 static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW[] =
333 { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
334 ' ','D','r','o','p','E','f','f','e','c','t',0 };
335 #endif
337 #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
338 #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
339 #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
340 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
341 #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
342 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
343 #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
344 #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
345 #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
346 #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
347 #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
348 #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
349 #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
350 #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
351 #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
352 #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
353 #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
354 #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
355 #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
356 #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
358 typedef struct
359 { UINT cidl;
360 UINT aoffset[1];
361 } CIDA, *LPIDA;
363 /************************************************************************
364 * IShellView interface
367 #define FCIDM_SHVIEWFIRST 0x0000
368 /* undocumented */
369 #define FCIDM_SHVIEW_ARRANGE 0x7001
370 #define FCIDM_SHVIEW_DELETE 0x7011
371 #define FCIDM_SHVIEW_PROPERTIES 0x7013
372 #define FCIDM_SHVIEW_CUT 0x7018
373 #define FCIDM_SHVIEW_COPY 0x7019
374 #define FCIDM_SHVIEW_INSERT 0x701A
375 #define FCIDM_SHVIEW_UNDO 0x701B
376 #define FCIDM_SHVIEW_INSERTLINK 0x701C
377 #define FCIDM_SHVIEW_SELECTALL 0x7021
378 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
380 #define FCIDM_SHVIEW_BIGICON 0x7029
381 #define FCIDM_SHVIEW_SMALLICON 0x702A
382 #define FCIDM_SHVIEW_LISTVIEW 0x702B
383 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
384 /* 0x7030-0x703f are used by the shellbrowser */
385 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
386 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
388 #define FCIDM_SHVIEW_HELP 0x7041
389 #define FCIDM_SHVIEW_RENAME 0x7050
390 #define FCIDM_SHVIEW_CREATELINK 0x7051
391 #define FCIDM_SHVIEW_NEWLINK 0x7052
392 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
394 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
396 #define FCIDM_SHVIEWLAST 0x7fff
397 #define FCIDM_BROWSERFIRST 0xA000
398 /* undocumented toolbar items from stddlg's*/
399 #define FCIDM_TB_UPFOLDER 0xA001
400 #define FCIDM_TB_NEWFOLDER 0xA002
401 #define FCIDM_TB_SMALLICON 0xA003
402 #define FCIDM_TB_REPORTVIEW 0xA004
403 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
405 #define FCIDM_BROWSERLAST 0xbf00
406 #define FCIDM_GLOBALFIRST 0x8000
407 #define FCIDM_GLOBALLAST 0x9fff
410 * Global submenu IDs and separator IDs
412 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
413 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
414 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
415 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
416 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
417 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
418 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
419 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
420 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
421 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
423 /* control IDs known to the view */
424 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
425 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
427 #define INTERFACE IShellDetails
428 DECLARE_INTERFACE_(IShellDetails, IUnknown)
430 /*** IUnknown methods ***/
431 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
432 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
433 STDMETHOD_(ULONG,Release) (THIS) PURE;
434 /*** IShellDetails methods ***/
435 STDMETHOD(GetDetailsOf)(THIS_ PCUITEMID_CHILD pidl, UINT iColumn, SHELLDETAILS *pDetails) PURE;
436 STDMETHOD(ColumnClick)(THIS_ UINT iColumn) PURE;
438 #undef INTERFACE
440 #if !defined(__cplusplus) || defined(CINTERFACE)
441 /*** IUnknown methods ***/
442 #define IShellDetails_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
443 #define IShellDetails_AddRef(p) (p)->lpVtbl->AddRef(p)
444 #define IShellDetails_Release(p) (p)->lpVtbl->Release(p)
445 /*** IShellDetails methods ***/
446 #define IShellDetails_GetDetailsOf(p,a,b,c) (p)->lpVtbl->GetDetailsOf(p,a,b,c)
447 #define IShellDetails_ColumnClick(p,a) (p)->lpVtbl->ColumnClick(p,a)
448 #endif
450 /* IQueryInfo interface */
451 #define INTERFACE IQueryInfo
452 DECLARE_INTERFACE_(IQueryInfo,IUnknown)
454 /*** IUnknown methods ***/
455 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
456 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
457 STDMETHOD_(ULONG,Release)(THIS) PURE;
458 /*** IQueryInfo methods ***/
459 STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, WCHAR** lppTips) PURE;
460 STDMETHOD(GetInfoFlags)(THIS_ DWORD* lpFlags) PURE;
462 #undef INTERFACE
464 #if !defined(__cplusplus) || defined(CINTERFACE)
465 /*** IUnknown methods ***/
466 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
467 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
468 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
469 /*** IQueryInfo methods ***/
470 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
471 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
472 #endif
474 /* IInputObject interface */
475 #define INTERFACE IInputObject
476 DECLARE_INTERFACE_(IInputObject,IUnknown)
478 /*** IUnknown methods ***/
479 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
480 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
481 STDMETHOD_(ULONG,Release)(THIS) PURE;
482 /*** IInputObject methods ***/
483 STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
484 STDMETHOD(HasFocusIO)(THIS) PURE;
485 STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
487 #undef INTERFACE
489 #if !defined(__cplusplus) || defined(CINTERFACE)
490 /*** IUnknown methods ***/
491 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
492 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
493 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
494 /*** IInputObject methods ***/
495 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
496 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
497 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
498 #endif
500 /* IInputObjectSite interface */
501 #define INTERFACE IInputObjectSite
502 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
504 /*** IUnknown methods ***/
505 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
506 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
507 STDMETHOD_(ULONG,Release) (THIS) PURE;
508 /*** IInputObjectSite methods ***/
509 STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
511 #undef INTERFACE
513 #if !defined(__cplusplus) || defined(CINTERFACE)
514 /*** IUnknown methods ***/
515 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
516 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
517 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
518 /*** IInputObject methods ***/
519 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
520 #endif
522 /* IObjMgr interface */
523 #define INTERFACE IObjMgr
524 DECLARE_INTERFACE_(IObjMgr,IUnknown)
526 /*** IUnknown methods ***/
527 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
528 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
529 STDMETHOD_(ULONG,Release) (THIS) PURE;
530 /*** IObjMgr methods ***/
531 STDMETHOD(Append)(THIS_ LPUNKNOWN punk) PURE;
532 STDMETHOD(Remove)(THIS_ LPUNKNOWN punk) PURE;
534 #undef INTERFACE
536 #if !defined(__cplusplus) || defined(CINTERFACE)
537 /*** IUnknown methods ***/
538 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
539 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
540 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
541 /*** IObjMgr methods ***/
542 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
543 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
544 #endif
546 /* IACList interface */
547 #define INTERFACE IACList
548 DECLARE_INTERFACE_(IACList,IUnknown)
550 /*** IUnknown methods ***/
551 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
552 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
553 STDMETHOD_(ULONG,Release) (THIS) PURE;
554 /*** IACList methods ***/
555 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
557 #undef INTERFACE
559 #if !defined(__cplusplus) || defined(CINTERFACE)
560 /*** IUnknown methods ***/
561 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
562 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
563 #define IACList_Release(p) (p)->lpVtbl->Release(p)
564 /*** IACList methods ***/
565 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
566 #endif
568 /* IACList2 interface */
569 #define INTERFACE IACList2
570 DECLARE_INTERFACE_(IACList2,IACList)
572 /*** IUnknown methods ***/
573 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
574 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
575 STDMETHOD_(ULONG,Release) (THIS) PURE;
576 /*** IACList methods ***/
577 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
578 /*** IACList2 methods ***/
579 STDMETHOD(SetOptions)(THIS_ DWORD dwFlag) PURE;
580 STDMETHOD(GetOptions)(THIS_ DWORD* pdwFlag) PURE;
582 #undef INTERFACE
584 #if !defined(__cplusplus) || defined(CINTERFACE)
585 /*** IUnknown methods ***/
586 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
587 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
588 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
589 /*** IACList2 methods ***/
590 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
591 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
592 #endif
594 /****************************************************************************
595 * IShellFolderViewCB interface
598 #define INTERFACE IShellFolderViewCB
599 DECLARE_INTERFACE_(IShellFolderViewCB,IUnknown)
601 /*** IUnknown methods ***/
602 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
603 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
604 STDMETHOD_(ULONG,Release)(THIS) PURE;
605 /*** IShellFolderViewCB methods ***/
606 STDMETHOD(MessageSFVCB)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam) PURE;
608 #undef INTERFACE
610 #if !defined(__cplusplus) || defined(CINTERFACE)
611 /*** IUnknown methods ***/
612 #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
613 #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
614 #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
615 /*** IShellFolderViewCB methods ***/
616 #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
617 #endif
619 /****************************************************************************
620 * IShellFolderView interface
623 #include <pshpack8.h>
625 typedef struct _ITEMSPACING
627 int cxSmall;
628 int cySmall;
629 int cxLarge;
630 int cyLarge;
631 } ITEMSPACING;
633 #include <poppack.h>
635 #define INTERFACE IShellFolderView
636 DEFINE_GUID(IID_IShellFolderView,0x37a378c0,0xf82d,0x11ce,0xae,0x65,0x08,0x00,0x2b,0x2e,0x12,0x62);
637 DECLARE_INTERFACE_(IShellFolderView, IUnknown)
639 /*** IUnknown methods ***/
640 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
641 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
642 STDMETHOD_(ULONG,Release) (THIS) PURE;
644 /*** IShellFolderView methods ***/
645 STDMETHOD(Rearrange) (THIS_ LPARAM lParamSort) PURE;
646 STDMETHOD(GetArrangeParam) (THIS_ LPARAM *plParamSort) PURE;
647 STDMETHOD(ArrangeGrid) (THIS) PURE;
648 STDMETHOD(AutoArrange) (THIS) PURE;
649 STDMETHOD(GetAutoArrange) (THIS) PURE;
650 STDMETHOD(AddObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
651 STDMETHOD(GetObject) (THIS_ PITEMID_CHILD *ppidl, UINT uItem) PURE;
652 STDMETHOD(RemoveObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
653 STDMETHOD(GetObjectCount) (THIS_ UINT *puCount) PURE;
654 STDMETHOD(SetObjectCount) (THIS_ UINT uCount, UINT dwFlags) PURE;
655 STDMETHOD(UpdateObject) (THIS_ PITEMID_CHILD pidlOld, PITEMID_CHILD pidlNew, UINT *puItem) PURE;
656 STDMETHOD(RefreshObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
657 STDMETHOD(SetRedraw) (THIS_ BOOL bRedraw) PURE;
658 STDMETHOD(GetSelectedCount) (THIS_ UINT *puSelected) PURE;
659 STDMETHOD(GetSelectedObjects) (THIS_ PCITEMID_CHILD **pppidl, UINT *puItems) PURE;
660 STDMETHOD(IsDropOnSource) (THIS_ IDropTarget *pDropTarget) PURE;
661 STDMETHOD(GetDragPoint) (THIS_ POINT *ppt) PURE;
662 STDMETHOD(GetDropPoint) (THIS_ POINT *ppt) PURE;
663 STDMETHOD(MoveIcons) (THIS_ IDataObject *pDataObject) PURE;
664 STDMETHOD(SetItemPos) (THIS_ PCUITEMID_CHILD pidl, POINT *ppt) PURE;
665 STDMETHOD(IsBkDropTarget) (THIS_ IDropTarget *pDropTarget) PURE;
666 STDMETHOD(SetClipboard) (THIS_ BOOL bMove) PURE;
667 STDMETHOD(SetPoints) (THIS_ IDataObject *pDataObject) PURE;
668 STDMETHOD(GetItemSpacing) (THIS_ ITEMSPACING *pSpacing) PURE;
669 STDMETHOD(SetCallback) (THIS_ IShellFolderViewCB* pNewCB, IShellFolderViewCB** ppOldCB) PURE;
670 STDMETHOD(Select) ( THIS_ UINT dwFlags ) PURE;
671 STDMETHOD(QuerySupport) (THIS_ UINT * pdwSupport ) PURE;
672 STDMETHOD(SetAutomationObject)(THIS_ IDispatch* pdisp) PURE;
674 #undef INTERFACE
676 #if !defined(__cplusplus) || defined(CINTERFACE)
677 /*** IUnknown methods ***/
678 #define IShellFolderView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
679 #define IShellFolderView_AddRef(p) (p)->lpVtbl->AddRef(p)
680 #define IShellFolderView_Release(p) (p)->lpVtbl->Release(p)
681 /*** IShellFolderView methods ***/
682 #define IShellFolderView_Rearrange(p,a) (p)->lpVtbl->Rearrange(p,a)
683 #define IShellFolderView_GetArrangeParam(p,a) (p)->lpVtbl->GetArrangeParam(p,a)
684 #define IShellFolderView_ArrangeGrid(p) (p)->lpVtbl->ArrangeGrid(p)
685 #define IShellFolderView_AutoArrange(p) (p)->lpVtbl->AutoArrange(p)
686 #define IShellFolderView_GetAutoArrange(p) (p)->lpVtbl->GetAutoArrange(p)
687 #define IShellFolderView_AddObject(p,a,b) (p)->lpVtbl->AddObject(p,a,b)
688 #define IShellFolderView_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
689 #define IShellFolderView_RemoveObject(p,a,b) (p)->lpVtbl->RemoveObject(p,a,b)
690 #define IShellFolderView_GetObjectCount(p,a) (p)->lpVtbl->GetObjectCount(p,a)
691 #define IShellFolderView_SetObjectCount(p,a,b) (p)->lpVtbl->SetObjectCount(p,a,b)
692 #define IShellFolderView_UpdateObject(p,a,b,c) (p)->lpVtbl->UpdateObject(p,a,b,c)
693 #define IShellFolderView_RefreshObject(p,a,b) (p)->lpVtbl->RefreshObject(p,a,b)
694 #define IShellFolderView_SetRedraw(p,a) (p)->lpVtbl->SetRedraw(p,a)
695 #define IShellFolderView_GetSelectedCount(p,a) (p)->lpVtbl->GetSelectedCount(p,a)
696 #define IShellFolderView_GetSelectedObjects(p,a,b) (p)->lpVtbl->GetSelectedObjects(p,a,b)
697 #define IShellFolderView_IsDropOnSource(p,a) (p)->lpVtbl->IsDropOnSource(p,a)
698 #define IShellFolderView_GetDragPoint(p,a) (p)->lpVtbl->GetDragPoint(p,a)
699 #define IShellFolderView_GetDropPoint(p,a) (p)->lpVtbl->GetDropPoint(p,a)
700 #define IShellFolderView_MoveIcons(p,a) (p)->lpVtbl->MoveIcons(p,a)
701 #define IShellFolderView_SetItemPos(p,a,b) (p)->lpVtbl->SetItemPos(p,a,b)
702 #define IShellFolderView_IsBkDropTarget(p,a) (p)->lpVtbl->IsBkDropTarget(p,a)
703 #define IShellFolderView_SetClipboard(p,a) (p)->lpVtbl->SetClipboard(p,a)
704 #define IShellFolderView_SetPoints(p,a) (p)->lpVtbl->SetPoints(p,a)
705 #define IShellFolderView_GetItemSpacing(p,a) (p)->lpVtbl->GetItemSpacing(p,a)
706 #define IShellFolderView_SetCallback(p,a,b) (p)->lpVtbl->SetCallback(p,a,b)
707 #define IShellFolderView_Select(p,a) (p)->lpVtbl->Select(p,a)
708 #define IShellFolderView_QuerySupport(p,a) (p)->lpVtbl->QuerySupport(p,a)
709 #define IShellFolderView_SetAutomationObject(p,a) (p)->lpVtbl->SetAutomationObject(p,a)
710 #endif
712 /* IProgressDialog interface */
713 #define PROGDLG_NORMAL 0x00000000
714 #define PROGDLG_MODAL 0x00000001
715 #define PROGDLG_AUTOTIME 0x00000002
716 #define PROGDLG_NOTIME 0x00000004
717 #define PROGDLG_NOMINIMIZE 0x00000008
718 #define PROGDLG_NOPROGRESSBAR 0x00000010
719 #define PROGDLG_MARQUEEPROGRESS 0x00000020
720 #define PROGDLG_NOCANCEL 0x00000040
722 #define PDTIMER_RESET 0x00000001
723 #define PDTIMER_PAUSE 0x00000002
724 #define PDTIMER_RESUME 0x00000003
726 #define INTERFACE IProgressDialog
727 DECLARE_INTERFACE_(IProgressDialog,IUnknown)
729 /*** IUnknown methods ***/
730 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
731 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
732 STDMETHOD_(ULONG,Release) (THIS) PURE;
733 /*** IProgressDialog methods ***/
734 STDMETHOD(StartProgressDialog)(THIS_ HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved) PURE;
735 STDMETHOD(StopProgressDialog)(THIS) PURE;
736 STDMETHOD(SetTitle)(THIS_ LPCWSTR pwzTitle) PURE;
737 STDMETHOD(SetAnimation)(THIS_ HINSTANCE hInstance, UINT uiResourceId) PURE;
738 STDMETHOD_(BOOL,HasUserCancelled)(THIS) PURE;
739 STDMETHOD(SetProgress)(THIS_ DWORD dwCompleted, DWORD dwTotal) PURE;
740 STDMETHOD(SetProgress64)(THIS_ ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
741 STDMETHOD(SetLine)(THIS_ DWORD dwLineNum, LPCWSTR pwzString, BOOL bPath, LPCVOID reserved) PURE;
742 STDMETHOD(SetCancelMsg)(THIS_ LPCWSTR pwzCancelMsg, LPCVOID reserved) PURE;
743 STDMETHOD(Timer)(THIS_ DWORD dwTimerAction, LPCVOID reserved) PURE;
745 #undef INTERFACE
747 #if !defined(__cplusplus) || defined(CINTERFACE)
748 /*** IUnknown methods ***/
749 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
750 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
751 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
752 /*** IProgressDialog methods ***/
753 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
754 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
755 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
756 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
757 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
758 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
759 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
760 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
761 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
762 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
763 #endif
765 #ifdef _WININET_
767 typedef struct _tagWALLPAPEROPT
769 DWORD dwSize;
770 DWORD dwStyle;
771 } WALLPAPEROPT, *LPWALLPAPEROPT;
773 typedef const WALLPAPEROPT *LPCWALLPAPEROPT;
775 typedef struct _tagCOMPPOS
777 DWORD dwSize;
778 int iLeft;
779 int iTop;
780 DWORD dwWidth;
781 DWORD dwHeight;
782 int izIndex;
783 BOOL fCanResize;
784 BOOL fCanResizeX;
785 BOOL fCanResizeY;
786 int iPreferredLeftPercent;
787 int iPreferredTopPercent;
788 } COMPPOS, *LPCOMPPOS;
790 typedef const COMPPOS *LPCCOMPPOS;
792 typedef struct _tagCOMPSTATEINFO
794 DWORD dwSize;
795 int iLeft;
796 int iTop;
797 DWORD dwWidth;
798 DWORD dwHeight;
799 DWORD dwItemState;
800 } COMPSTATEINFO, *LPCOMPSTATEINFO;
802 typedef const COMPSTATEINFO *LPCCOMPSTATEINFO;
804 typedef struct _tagCOMPONENT
806 DWORD dwSize;
807 DWORD dwID;
808 int iComponentType;
809 BOOL fChecked;
810 BOOL fDirty;
811 BOOL fNoScroll;
812 COMPPOS cpPos;
813 WCHAR wszFriendlyName[MAX_PATH];
814 WCHAR wszSource[INTERNET_MAX_URL_LENGTH];
815 WCHAR wszSubscribedURL[INTERNET_MAX_URL_LENGTH];
816 DWORD dwCurItemState;
817 COMPSTATEINFO csiOriginal;
818 COMPSTATEINFO csiRestored;
819 } COMPONENT, *LPCOMPONENT;
821 typedef const COMPONENT *LPCCOMPONENT;
823 typedef struct _tagCOMPONENTSOPT
825 DWORD dwSize;
826 BOOL fEnableComponents;
827 BOOL fActiveDesktop;
828 } COMPONENTSOPT, *LPCOMPONENTSOPT;
830 typedef const COMPONENTSOPT *LPCCOMPONENTSOPT;
832 #define INTERFACE IActiveDesktop
833 DECLARE_INTERFACE_(IActiveDesktop, IUnknown)
835 /*** IUnknown methods ***/
836 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **obj) PURE;
837 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
838 STDMETHOD_(ULONG, Release)(THIS) PURE;
839 /*** IActiveDesktop ***/
840 STDMETHOD(ApplyChanges)(THIS_ DWORD flags) PURE;
841 STDMETHOD(GetWallpaper)(THIS_ PWSTR wallpaper, UINT length, DWORD flags) PURE;
842 STDMETHOD(SetWallpaper)(THIS_ PCWSTR wallpaper, DWORD reserved) PURE;
843 STDMETHOD(GetWallpaperOptions)(THIS_ LPWALLPAPEROPT options, DWORD reserved) PURE;
844 STDMETHOD(SetWallpaperOptions)(THIS_ LPCWALLPAPEROPT options, DWORD reserved) PURE;
845 STDMETHOD(GetPattern)(THIS_ PWSTR pattern, UINT length, DWORD reserved) PURE;
846 STDMETHOD(SetPattern)(THIS_ PCWSTR pattern, DWORD reserved) PURE;
847 STDMETHOD(GetDesktopItemOptions)(THIS_ LPCOMPONENTSOPT options, DWORD reserved) PURE;
848 STDMETHOD(SetDesktopItemOptions)(THIS_ LPCCOMPONENTSOPT options, DWORD reserved) PURE;
849 STDMETHOD(AddDesktopItem)(THIS_ LPCCOMPONENT component, DWORD reserved) PURE;
850 STDMETHOD(AddDesktopItemWithUI)(THIS_ HWND hwnd, LPCOMPONENT component, DWORD reserved) PURE;
851 STDMETHOD(ModifyDesktopItem)(THIS_ LPCCOMPONENT component, DWORD flags) PURE;
852 STDMETHOD(RemoveDesktopItem)(THIS_ LPCCOMPONENT component, DWORD reserved) PURE;
853 STDMETHOD(GetDesktopItemCount)(THIS_ int *count, DWORD reserved) PURE;
854 STDMETHOD(GetDesktopItem)(THIS_ int index, LPCOMPONENT component, DWORD reserved) PURE;
855 STDMETHOD(GetDesktopItemByID)(THIS_ ULONG_PTR id, LPCOMPONENT component, DWORD reserved) PURE;
856 STDMETHOD(GenerateDesktopItemHtml)(THIS_ PCWSTR filename, LPCOMPONENT component, DWORD reserved) PURE;
857 STDMETHOD(AddUrl)(THIS_ HWND hwnd, PCWSTR source, LPCOMPONENT component, DWORD flags) PURE;
858 STDMETHOD(GetDesktopItemBySource)(THIS_ PCWSTR source, LPCOMPONENT component, DWORD reserved) PURE;
860 #undef INTERFACE
862 #endif /* _WININET_ */
864 /****************************************************************************
865 * SHAddToRecentDocs API
867 #define SHARD_PIDL __MSABI_LONG(0x00000001)
868 #define SHARD_PATHA __MSABI_LONG(0x00000002)
869 #define SHARD_PATHW __MSABI_LONG(0x00000003)
870 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
872 WINSHELLAPI void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
874 /****************************************************************************
875 * SHBrowseForFolder API
877 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
879 #include <pshpack8.h>
881 typedef struct tagBROWSEINFOA {
882 HWND hwndOwner;
883 LPCITEMIDLIST pidlRoot;
884 LPSTR pszDisplayName;
885 LPCSTR lpszTitle;
886 UINT ulFlags;
887 BFFCALLBACK lpfn;
888 LPARAM lParam;
889 INT iImage;
890 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
892 typedef struct tagBROWSEINFOW {
893 HWND hwndOwner;
894 LPCITEMIDLIST pidlRoot;
895 LPWSTR pszDisplayName;
896 LPCWSTR lpszTitle;
897 UINT ulFlags;
898 BFFCALLBACK lpfn;
899 LPARAM lParam;
900 INT iImage;
901 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
903 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
904 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
905 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
907 #include <poppack.h>
909 /* Browsing for directory. */
910 #define BIF_RETURNONLYFSDIRS 0x0001
911 #define BIF_DONTGOBELOWDOMAIN 0x0002
912 #define BIF_STATUSTEXT 0x0004
913 #define BIF_RETURNFSANCESTORS 0x0008
914 #define BIF_EDITBOX 0x0010
915 #define BIF_VALIDATE 0x0020
916 #define BIF_NEWDIALOGSTYLE 0x0040
917 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
918 #define BIF_BROWSEINCLUDEURLS 0x0080
919 #define BIF_UAHINT 0x0100
920 #define BIF_NONEWFOLDERBUTTON 0x0200
921 #define BIF_NOTRANSLATETARGETS 0x0400
923 #define BIF_BROWSEFORCOMPUTER 0x1000
924 #define BIF_BROWSEFORPRINTER 0x2000
925 #define BIF_BROWSEINCLUDEFILES 0x4000
927 /* message from browser */
928 #define BFFM_INITIALIZED 1
929 #define BFFM_SELCHANGED 2
930 #define BFFM_VALIDATEFAILEDA 3
931 #define BFFM_VALIDATEFAILEDW 4
932 #define BFFM_IUNKNOWN 5
934 /* messages to browser */
935 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
936 #define BFFM_ENABLEOK (WM_USER+101)
937 #define BFFM_SETSELECTIONA (WM_USER+102)
938 #define BFFM_SETSELECTIONW (WM_USER+103)
939 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
940 #define BFFM_SETOKTEXT (WM_USER+105)
941 #define BFFM_SETEXPANDED (WM_USER+106)
943 WINSHELLAPI LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
944 WINSHELLAPI LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
945 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
946 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
947 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
948 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
950 /**********************************************************************
951 * SHCreateShellFolderViewEx API
954 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
955 IShellView* dwUser,
956 IShellFolder* pshf,
957 HWND hWnd,
958 UINT uMsg,
959 WPARAM wParam,
960 LPARAM lParam);
962 #include <pshpack8.h>
964 typedef struct _CSFV
966 UINT cbSize;
967 IShellFolder* pshf;
968 IShellView* psvOuter;
969 LPCITEMIDLIST pidl;
970 LONG lEvents;
971 LPFNVIEWCALLBACK pfnCallback;
972 FOLDERVIEWMODE fvm;
973 } CSFV, *LPCSFV;
975 #include <poppack.h>
977 WINSHELLAPI HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
979 /* SHCreateShellFolderViewEx callback messages */
980 #define SFVM_MERGEMENU 1
981 #define SFVM_INVOKECOMMAND 2
982 #define SFVM_GETHELPTEXT 3
983 #define SFVM_GETTOOLTIPTEXT 4
984 #define SFVM_GETBUTTONINFO 5
985 #define SFVM_GETBUTTONS 6
986 #define SFVM_INITMENUPOPUP 7
987 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
988 #define SFVM_DRAWMENUITEM 9 /* undocumented */
989 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
990 #define SFVM_EXITMENULOOP 11 /* undocumented */
991 #define SFVM_VIEWRELEASE 12 /* undocumented */
992 #define SFVM_GETNAMELENGTH 13 /* undocumented */
993 #define SFVM_FSNOTIFY 14
994 #define SFVM_WINDOWCREATED 15
995 #define SFVM_WINDOWCLOSING 16 /* undocumented */
996 #define SFVM_LISTREFRESHED 17 /* undocumented */
997 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
998 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
999 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
1000 #define SFVM_GETDETAILSOF 23
1001 #define SFVM_COLUMNCLICK 24
1002 #define SFVM_QUERYFSNOTIFY 25
1003 #define SFVM_DEFITEMCOUNT 26
1004 #define SFVM_DEFVIEWMODE 27
1005 #define SFVM_UNMERGEFROMMENU 28
1006 #define SFVM_ADDINGOBJECT 29 /* undocumented */
1007 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
1008 #define SFVM_UPDATESTATUSBAR 31
1009 #define SFVM_BACKGROUNDENUM 32
1010 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
1011 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
1012 #define SFVM_CANSELECTALL 35 /* undocumented */
1013 #define SFVM_DIDDRAGDROP 36
1014 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
1015 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
1016 #define SFVM_SETISFV 39
1017 #define SFVM_GETEXTVIEWS 40 /* undocumented */
1018 #define SFVM_THISIDLIST 41
1019 #define SFVM_ADDPROPERTYPAGES 47
1020 #define SFVM_BACKGROUNDENUMDONE 48
1021 #define SFVM_GETNOTIFY 49
1022 #define SFVM_GETSORTDEFAULTS 53
1023 #define SFVM_SIZE 57
1024 #define SFVM_GETZONE 58
1025 #define SFVM_GETPANE 59
1026 #define SFVM_GETHELPTOPIC 63
1027 #define SFVM_GETANIMATION 68
1028 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
1029 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
1030 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
1031 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
1032 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
1033 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
1034 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
1035 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
1037 #include <pshpack8.h>
1039 typedef struct _SFV_CREATE
1041 UINT cbSize;
1042 IShellFolder *pshf;
1043 IShellView *psvOuter;
1044 IShellFolderViewCB *psfvcb;
1045 } SFV_CREATE;
1047 #include <poppack.h>
1049 WINSHELLAPI HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *pscfv, IShellView **ppsv);
1051 /* Types and definitions for the SFM_* parameters */
1052 #include <pshpack8.h>
1054 #define QCMINFO_PLACE_BEFORE 0
1055 #define QCMINFO_PLACE_AFTER 1
1056 typedef struct _QCMINFO_IDMAP_PLACEMENT
1058 UINT id;
1059 UINT fFlags;
1060 } QCMINFO_IDMAP_PLACEMENT;
1062 typedef struct _QCMINFO_IDMAP
1064 UINT nMaxIds;
1065 QCMINFO_IDMAP_PLACEMENT pIdList[1];
1066 } QCMINFO_IDMAP;
1068 typedef struct _QCMINFO
1070 HMENU hmenu;
1071 UINT indexMenu;
1072 UINT idCmdFirst;
1073 UINT idCmdLast;
1074 QCMINFO_IDMAP const* pIdMap;
1075 } QCMINFO, *LPQCMINFO;
1077 #define TBIF_DEFAULT 0x00000000
1078 #define TBIF_APPEND 0x00000000
1079 #define TBIF_PREPEND 0x00000001
1080 #define TBIF_REPLACE 0x00000002
1081 #define TBIF_INTERNETBAR 0x00010000
1082 #define TBIF_STANDARDTOOLBAR 0x00020000
1083 #define TBIF_NOTOOLBAR 0x00030000
1085 typedef struct _TBINFO
1087 UINT cbuttons;
1088 UINT uFlags;
1089 } TBINFO, *LPTBINFO;
1091 #include <poppack.h>
1093 /****************************************************************************
1094 * SHShellFolderView_Message API
1097 WINSHELLAPI LRESULT WINAPI SHShellFolderView_Message(HWND hwndCabinet, UINT uMessage, LPARAM lParam);
1099 /* SHShellFolderView_Message messages */
1100 #define SFVM_REARRANGE 0x0001
1101 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
1102 #define SFVM_ADDOBJECT 0x0003
1103 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
1104 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
1105 #define SFVM_REMOVEOBJECT 0x0006
1106 #define SFVM_UPDATEOBJECT 0x0007
1107 #define SFVM_SETREDRAW 0x0008 /* undocumented */
1108 #define SFVM_GETSELECTEDOBJECTS 0x0009
1109 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
1110 #define SFVM_MOVEICONS 0x000B /* undocumented */
1111 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
1112 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
1113 #define SFVM_SETITEMPOS 0x000E
1114 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
1115 #define SFVM_SETCLIPBOARD 0x0010
1116 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
1117 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
1118 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
1119 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
1120 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
1121 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
1122 #define SFVM_SETPOINTS 0x0017
1124 /****************************************************************************
1125 * SHGetDataFromIDList API
1127 #define SHGDFIL_FINDDATA 1
1128 #define SHGDFIL_NETRESOURCE 2
1129 #define SHGDFIL_DESCRIPTIONID 3
1131 #define SHDID_ROOT_REGITEM 1
1132 #define SHDID_FS_FILE 2
1133 #define SHDID_FS_DIRECTORY 3
1134 #define SHDID_FS_OTHER 4
1135 #define SHDID_COMPUTER_DRIVE35 5
1136 #define SHDID_COMPUTER_DRIVE525 6
1137 #define SHDID_COMPUTER_REMOVABLE 7
1138 #define SHDID_COMPUTER_FIXED 8
1139 #define SHDID_COMPUTER_NETDRIVE 9
1140 #define SHDID_COMPUTER_CDROM 10
1141 #define SHDID_COMPUTER_RAMDISK 11
1142 #define SHDID_COMPUTER_OTHER 12
1143 #define SHDID_NET_DOMAIN 13
1144 #define SHDID_NET_SERVER 14
1145 #define SHDID_NET_SHARE 15
1146 #define SHDID_NET_RESTOFNET 16
1147 #define SHDID_NET_OTHER 17
1148 #define SHDID_COMPUTER_IMAGING 18
1149 #define SHDID_COMPUTER_AUDIO 19
1150 #define SHDID_COMPUTER_SHAREDDOCS 20
1152 #include <pshpack8.h>
1154 typedef struct _SHDESCRIPTIONID
1155 { DWORD dwDescriptionId;
1156 CLSID clsid;
1157 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
1159 #include <poppack.h>
1161 WINSHELLAPI HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
1162 WINSHELLAPI HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
1163 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
1165 WINSHELLAPI BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
1166 WINSHELLAPI BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
1167 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
1169 WINSHELLAPI HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
1171 /**********************************************************************
1172 * SHGetSetSettings ()
1175 typedef struct
1177 BOOL fShowAllObjects : 1;
1178 BOOL fShowExtensions : 1;
1179 BOOL fNoConfirmRecycle : 1;
1181 BOOL fShowSysFiles : 1;
1182 BOOL fShowCompColor : 1;
1183 BOOL fDoubleClickInWebView : 1;
1184 BOOL fDesktopHTML : 1;
1185 BOOL fWin95Classic : 1;
1186 BOOL fDontPrettyPath : 1;
1187 BOOL fShowAttribCol : 1;
1188 BOOL fMapNetDrvBtn : 1;
1189 BOOL fShowInfoTip : 1;
1190 BOOL fHideIcons : 1;
1191 BOOL fWebView : 1;
1192 BOOL fFilter : 1;
1193 BOOL fShowSuperHidden : 1;
1194 BOOL fNoNetCrawling : 1;
1196 UINT :15; /* Required for proper binary layout with gcc */
1197 DWORD dwWin95Unused;
1198 UINT uWin95Unused;
1199 LONG lParamSort;
1200 int iSortDirection;
1201 UINT version;
1202 UINT uNotUsed;
1203 BOOL fSepProcess: 1;
1204 BOOL fStartPanelOn: 1;
1205 BOOL fShowStartPage: 1;
1206 UINT fSpareFlags : 13;
1207 UINT :15; /* Required for proper binary layout with gcc */
1208 } SHELLSTATE, *LPSHELLSTATE;
1210 /**********************************************************************
1211 * SHGetSettings ()
1213 typedef struct
1214 { BOOL fShowAllObjects : 1;
1215 BOOL fShowExtensions : 1;
1216 BOOL fNoConfirmRecycle : 1;
1217 BOOL fShowSysFiles : 1;
1219 BOOL fShowCompColor : 1;
1220 BOOL fDoubleClickInWebView : 1;
1221 BOOL fDesktopHTML : 1;
1222 BOOL fWin95Classic : 1;
1224 BOOL fDontPrettyPath : 1;
1225 BOOL fShowAttribCol : 1;
1226 BOOL fMapNetDrvBtn : 1;
1227 BOOL fShowInfoTip : 1;
1229 BOOL fHideIcons : 1;
1230 UINT fRestFlags : 3;
1231 UINT :15; /* Required for proper binary layout with gcc */
1232 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
1234 WINSHELLAPI VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
1236 #define SSF_SHOWALLOBJECTS 0x0001
1237 #define SSF_SHOWEXTENSIONS 0x0002
1238 #define SSF_SHOWCOMPCOLOR 0x0008
1239 #define SSF_SHOWSYSFILES 0x0020
1240 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
1241 #define SSF_SHOWATTRIBCOL 0x0100
1242 #define SSF_DESKTOPHTML 0x0200
1243 #define SSF_WIN95CLASSIC 0x0400
1244 #define SSF_DONTPRETTYPATH 0x0800
1245 #define SSF_SHOWINFOTIP 0x2000
1246 #define SSF_MAPNETDRVBUTTON 0x1000
1247 #define SSF_NOCONFIRMRECYCLE 0x8000
1248 #define SSF_HIDEICONS 0x4000
1250 /****************************************************************************
1251 * SHRestricted API
1253 typedef enum RESTRICTIONS
1255 REST_NONE = 0x00000000,
1256 REST_NORUN = 0x00000001,
1257 REST_NOCLOSE = 0x00000002,
1258 REST_NOSAVESET = 0x00000004,
1259 REST_NOFILEMENU = 0x00000008,
1260 REST_NOSETFOLDERS = 0x00000010,
1261 REST_NOSETTASKBAR = 0x00000020,
1262 REST_NODESKTOP = 0x00000040,
1263 REST_NOFIND = 0x00000080,
1264 REST_NODRIVES = 0x00000100,
1265 REST_NODRIVEAUTORUN = 0x00000200,
1266 REST_NODRIVETYPEAUTORUN = 0x00000400,
1267 REST_NONETHOOD = 0x00000800,
1268 REST_STARTBANNER = 0x00001000,
1269 REST_RESTRICTRUN = 0x00002000,
1270 REST_NOPRINTERTABS = 0x00004000,
1271 REST_NOPRINTERDELETE = 0x00008000,
1272 REST_NOPRINTERADD = 0x00010000,
1273 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
1274 REST_MYDOCSONNET = 0x00040000,
1275 REST_NOEXITTODOS = 0x00080000,
1276 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
1277 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
1278 REST_NOCOMMONGROUPS = 0x00400000,
1279 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
1280 REST_NOWEB = 0x01000000,
1281 REST_NOTRAYCONTEXTMENU = 0x02000000,
1282 REST_NOVIEWCONTEXTMENU = 0x04000000,
1283 REST_NONETCONNECTDISCONNECT = 0x08000000,
1284 REST_STARTMENULOGOFF = 0x10000000,
1285 REST_NOSETTINGSASSIST = 0x20000000,
1286 REST_NOINTERNETICON = 0x40000001,
1287 REST_NORECENTDOCSHISTORY,
1288 REST_NORECENTDOCSMENU,
1289 REST_NOACTIVEDESKTOP,
1290 REST_NOACTIVEDESKTOPCHANGES,
1291 REST_NOFAVORITESMENU,
1292 REST_CLEARRECENTDOCSONEXIT,
1293 REST_CLASSICSHELL,
1294 REST_NOCUSTOMIZEWEBVIEW,
1296 REST_NOHTMLWALLPAPER = 0x40000010,
1297 REST_NOCHANGINGWALLPAPER,
1298 REST_NODESKCOMP,
1299 REST_NOADDDESKCOMP,
1300 REST_NODELDESKCOMP,
1301 REST_NOCLOSEDESKCOMP,
1302 REST_NOCLOSE_DRAGDROPBAND,
1303 REST_NOMOVINGBAND,
1304 REST_NOEDITDESKCOMP,
1305 REST_NORESOLVESEARCH,
1306 REST_NORESOLVETRACK,
1307 REST_FORCECOPYACLWITHFILE,
1308 REST_NOLOGO3CHANNELNOTIFY,
1309 REST_NOFORGETSOFTWAREUPDATE,
1310 REST_NOSETACTIVEDESKTOP,
1311 REST_NOUPDATEWINDOWS,
1312 REST_NOCHANGESTARMENU, /* 0x40000020 */
1313 REST_NOFOLDEROPTIONS,
1314 REST_HASFINDCOMPUTERS,
1315 REST_INTELLIMENUS,
1316 REST_RUNDLGMEMCHECKBOX,
1317 REST_ARP_ShowPostSetup,
1318 REST_NOCSC,
1319 REST_NOCONTROLPANEL,
1320 REST_ENUMWORKGROUP,
1321 REST_ARP_NOARP,
1322 REST_ARP_NOREMOVEPAGE,
1323 REST_ARP_NOADDPAGE,
1324 REST_ARP_NOWINSETUPPAGE,
1325 REST_GREYMSIADS,
1326 REST_NOCHANGEMAPPEDDRIVELABEL,
1327 REST_NOCHANGEMAPPEDDRIVECOMMENT,
1328 REST_MaxRecentDocs, /* 0x40000030 */
1329 REST_NONETWORKCONNECTIONS,
1330 REST_FORCESTARTMENULOGOFF,
1331 REST_NOWEBVIEW,
1332 REST_NOCUSTOMIZETHISFOLDER,
1333 REST_NOENCRYPTION,
1335 REST_ALLOWFRENCHENCRYPTION, /* not documented */
1337 REST_DONTSHOWSUPERHIDDEN,
1338 REST_NOSHELLSEARCHBUTTON,
1339 REST_NOHARDWARETAB,
1340 REST_NORUNASINSTALLPROMPT,
1341 REST_PROMPTRUNASINSTALLNETPATH,
1342 REST_NOMANAGEMYCOMPUTERVERB,
1343 REST_NORECENTDOCSNETHOOD,
1344 REST_DISALLOWRUN,
1345 REST_NOWELCOMESCREEN,
1346 REST_RESTRICTCPL, /* 0x40000040 */
1347 REST_DISALLOWCPL,
1348 REST_NOSMBALLOONTIP,
1349 REST_NOSMHELP,
1350 REST_NOWINKEYS,
1351 REST_NOENCRYPTONMOVE,
1352 REST_NOLOCALMACHINERUN,
1353 REST_NOCURRENTUSERRUN,
1354 REST_NOLOCALMACHINERUNONCE,
1355 REST_NOCURRENTUSERRUNONCE,
1356 REST_FORCEACTIVEDESKTOPON,
1357 REST_NOCOMPUTERSNEARME,
1358 REST_NOVIEWONDRIVE,
1359 REST_NONETCRAWL,
1360 REST_NOSHAREDDOCUMENTS,
1361 REST_NOSMMYDOCS,
1362 REST_NOSMMYPICS, /* 0x40000050 */
1363 REST_ALLOWBITBUCKDRIVES,
1364 REST_NONLEGACYSHELLMODE,
1365 REST_NOCONTROLPANELBARRICADE,
1366 REST_NOSTARTPAGE,
1367 REST_NOAUTOTRAYNOTIFY,
1368 REST_NOTASKGROUPING,
1369 REST_NOCDBURNING,
1370 REST_MYCOMPNOPROP,
1371 REST_MYDOCSNOPROP,
1372 REST_NOSTARTPANEL,
1373 REST_NODISPLAYAPPEARANCEPAGE,
1374 REST_NOTHEMESTAB,
1375 REST_NOVISUALSTYLECHOICE,
1376 REST_NOSIZECHOICE,
1377 REST_NOCOLORCHOICE,
1378 REST_SETVISUALSTYLE, /* 0x40000060 */
1379 REST_STARTRUNNOHOMEPATH,
1380 REST_NOUSERNAMEINSTARTPANEL,
1381 REST_NOMYCOMPUTERICON,
1382 REST_NOSMNETWORKPLACES,
1383 REST_NOSMPINNEDLIST,
1384 REST_NOSMMYMUSIC,
1385 REST_NOSMEJECTPC,
1386 REST_NOSMMOREPROGRAMS,
1387 REST_NOSMMFUPROGRAMS,
1388 REST_NOTRAYITEMSDISPLAY,
1389 REST_NOTOOLBARSONTASKBAR,
1390 /* 0x4000006C
1391 0x4000006D
1392 0x4000006E */
1393 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
1394 REST_HIDECLOCK, /* 0x40000070 */
1395 REST_NOLOWDISKSPACECHECKS,
1396 REST_NOENTIRENETWORK,
1397 REST_NODESKTOPCLEANUP,
1398 REST_BITBUCKNUKEONDELETE,
1399 REST_BITBUCKCONFIRMDELETE,
1400 REST_BITBUCKNOPROP,
1401 REST_NODISPBACKGROUND,
1402 REST_NODISPSCREENSAVEPG,
1403 REST_NODISPSETTINGSPG,
1404 REST_NODISPSCREENSAVEPREVIEW,
1405 REST_NODISPLAYCPL,
1406 REST_HIDERUNASVERB,
1407 REST_NOTHUMBNAILCACHE,
1408 REST_NOSTRCMPLOGICAL,
1409 REST_NOPUBLISHWIZARD,
1410 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
1411 REST_NOWEBSERVICES,
1412 REST_ALLOWUNHASHEDWEBVIEW,
1413 REST_ALLOWLEGACYWEBVIEW,
1414 REST_REVERTWEBVIEWSECURITY,
1416 REST_INHERITCONSOLEHANDLES = 0x40000086,
1418 REST_NODISCONNECT = 0x41000001,
1419 REST_NOSECURITY,
1420 REST_NOFILEASSOCIATE, /* 0x41000003 */
1421 } RESTRICTIONS;
1423 WINSHELLAPI DWORD WINAPI SHRestricted(RESTRICTIONS rest);
1425 /****************************************************************************
1426 * SHChangeNotify API
1428 typedef struct _SHChangeNotifyEntry
1430 LPCITEMIDLIST pidl;
1431 BOOL fRecursive;
1432 } SHChangeNotifyEntry;
1434 #define SHCNE_RENAMEITEM 0x00000001
1435 #define SHCNE_CREATE 0x00000002
1436 #define SHCNE_DELETE 0x00000004
1437 #define SHCNE_MKDIR 0x00000008
1438 #define SHCNE_RMDIR 0x00000010
1439 #define SHCNE_MEDIAINSERTED 0x00000020
1440 #define SHCNE_MEDIAREMOVED 0x00000040
1441 #define SHCNE_DRIVEREMOVED 0x00000080
1442 #define SHCNE_DRIVEADD 0x00000100
1443 #define SHCNE_NETSHARE 0x00000200
1444 #define SHCNE_NETUNSHARE 0x00000400
1445 #define SHCNE_ATTRIBUTES 0x00000800
1446 #define SHCNE_UPDATEDIR 0x00001000
1447 #define SHCNE_UPDATEITEM 0x00002000
1448 #define SHCNE_SERVERDISCONNECT 0x00004000
1449 #define SHCNE_UPDATEIMAGE 0x00008000
1450 #define SHCNE_DRIVEADDGUI 0x00010000
1451 #define SHCNE_RENAMEFOLDER 0x00020000
1452 #define SHCNE_FREESPACE 0x00040000
1454 #define SHCNE_EXTENDED_EVENT 0x04000000
1455 #define SHCNE_ASSOCCHANGED 0x08000000
1456 #define SHCNE_DISKEVENTS 0x0002381F
1457 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1458 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1459 #define SHCNE_INTERRUPT 0x80000000
1461 #define SHCNEE_ORDERCHANGED __MSABI_LONG(0x0002)
1462 #define SHCNEE_MSI_CHANGE __MSABI_LONG(0x0004)
1463 #define SHCNEE_MSI_UNINSTALL __MSABI_LONG(0x0005)
1465 #define SHCNF_IDLIST 0x0000
1466 #define SHCNF_PATHA 0x0001
1467 #define SHCNF_PRINTERA 0x0002
1468 #define SHCNF_DWORD 0x0003
1469 #define SHCNF_PATHW 0x0005
1470 #define SHCNF_PRINTERW 0x0006
1471 #define SHCNF_TYPE 0x00FF
1472 #define SHCNF_FLUSH 0x1000
1473 #define SHCNF_FLUSHNOWAIT 0x3000
1474 #define SHCNF_NOTIFYRECURSIVE 0x10000
1476 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1477 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1479 #define SHCNRF_InterruptLevel 0x0001
1480 #define SHCNRF_ShellLevel 0x0002
1481 #define SHCNRF_RecursiveInterrupt 0x1000
1482 #define SHCNRF_NewDelivery 0x8000
1484 WINSHELLAPI void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
1486 typedef enum
1488 SLDF_DEFAULT = 0x00000000,
1489 SLDF_HAS_ID_LIST = 0x00000001,
1490 SLDF_HAS_LINK_INFO = 0x00000002,
1491 SLDF_HAS_NAME = 0x00000004,
1492 SLDF_HAS_RELPATH = 0x00000008,
1493 SLDF_HAS_WORKINGDIR = 0x00000010,
1494 SLDF_HAS_ARGS = 0x00000020,
1495 SLDF_HAS_ICONLOCATION = 0x00000040,
1496 SLDF_UNICODE = 0x00000080,
1497 SLDF_FORCE_NO_LINKINFO = 0x00000100,
1498 SLDF_HAS_EXP_SZ = 0x00000200,
1499 SLDF_RUN_IN_SEPARATE = 0x00000400,
1500 SLDF_HAS_LOGO3ID = 0x00000800,
1501 SLDF_HAS_DARWINID = 0x00001000,
1502 SLDF_RUNAS_USER = 0x00002000,
1503 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
1504 SLDF_NO_PIDL_ALIAS = 0x00008000,
1505 SLDF_FORCE_UNCNAME = 0x00010000,
1506 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
1507 SLDF_FORCE_NO_LINKTRACK = 0x00040000,
1508 SLDF_ENABLE_TARGET_METADATA = 0x00080000,
1509 SLDF_DISABLE_LINK_PATH_TRACKING = 0x00100000,
1510 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING = 0x00200000,
1511 SDLF_NO_KF_ALIAS = 0x00400000,
1512 SDLF_ALLOW_LINK_TO_LINK = 0x00800000,
1513 SDLF_UNALIAS_ON_SAVE = 0x01000000,
1514 SDLF_PREFER_ENVIRONMENT_PATH = 0x02000000,
1515 SDLF_KEEP_LOCAL_IDLIST_FOR_UNC_TARGET = 0x04000000,
1516 SDLF_PERSIST_VOLUME_ID_ACTIVE = 0x08000000,
1517 SLDF_VALID = 0x0ffff7ff,
1518 SLDF_RESERVED = 0x80000000,
1519 } SHELL_LINK_DATA_FLAGS;
1521 typedef struct tagDATABLOCKHEADER
1523 DWORD cbSize;
1524 DWORD dwSignature;
1525 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
1527 typedef struct {
1528 DATABLOCK_HEADER dbh;
1529 WORD wFillAttribute;
1530 WORD wPopupFillAttribute;
1531 COORD dwScreenBufferSize;
1532 COORD dwWindowSize;
1533 COORD dwWindowOrigin;
1534 DWORD nFont;
1535 DWORD nInputBufferSize;
1536 COORD dwFontSize;
1537 UINT uFontFamily;
1538 UINT uFontWeight;
1539 WCHAR FaceName[LF_FACESIZE];
1540 UINT uCursorSize;
1541 BOOL bFullScreen;
1542 BOOL bQuickEdit;
1543 BOOL bInsertMode;
1544 BOOL bAutoPosition;
1545 UINT uHistoryBufferSize;
1546 UINT uNumberOfHistoryBuffers;
1547 BOOL bHistoryNoDup;
1548 COLORREF ColorTable[16];
1549 } NT_CONSOLE_PROPS, *LPNT_CONSOLE_PROPS;
1551 typedef struct {
1552 DATABLOCK_HEADER dbh;
1553 UINT uCodePage;
1554 } NT_FE_CONSOLE_PROPS, *LPNT_FE_CONSOLE_PROPS;
1556 typedef struct {
1557 DATABLOCK_HEADER dbh;
1558 CHAR szDarwinID[MAX_PATH];
1559 WCHAR szwDarwinID[MAX_PATH];
1560 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
1562 typedef struct {
1563 DWORD cbSize;
1564 DWORD cbSignature;
1565 CHAR szTarget[MAX_PATH];
1566 WCHAR szwTarget[MAX_PATH];
1567 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
1569 typedef struct {
1570 DWORD cbSize;
1571 DWORD dwSignature;
1572 DWORD idSpecialFolder;
1573 DWORD cbOffset;
1574 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
1576 typedef struct {
1577 DWORD cbSize;
1578 DWORD dwSignature;
1579 BYTE abPropertyStorage[1];
1580 } EXP_PROPERTYSTORAGE;
1582 #define EXP_SZ_LINK_SIG 0xa0000001
1583 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1584 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1585 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1586 #define EXP_DARWIN_ID_SIG 0xa0000006
1587 #define EXP_SZ_ICON_SIG 0xa0000007
1588 #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
1589 #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
1591 typedef struct _SHChangeDWORDAsIDList {
1592 USHORT cb;
1593 DWORD dwItem1;
1594 DWORD dwItem2;
1595 USHORT cbZero;
1596 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
1598 typedef struct _SHChangeProductKeyAsIDList {
1599 USHORT cb;
1600 WCHAR wszProductKey[39];
1601 USHORT cbZero;
1602 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
1604 WINSHELLAPI ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
1605 int cEntries, SHChangeNotifyEntry *pshcne);
1606 WINSHELLAPI BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
1607 WINSHELLAPI HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
1608 LPITEMIDLIST **pppidl, LONG *plEvent);
1609 WINSHELLAPI BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
1611 WINSHELLAPI HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
1613 /****************************************************************************
1614 * SHCreateDirectory API
1616 WINSHELLAPI DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
1617 WINSHELLAPI int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
1618 WINSHELLAPI int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
1619 #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
1621 /****************************************************************************
1622 * SHGetSetFolderCustomSettings API
1625 #define FCS_READ 0x00000001
1626 #define FCS_FORCEWRITE 0x00000002
1627 #define FCS_WRITE (FCS_READ | FCS_FORCEWRITE)
1629 #define FCS_FLAG_DRAGDROP 0x00000002
1631 #define FCSM_VIEWID 0x00000001
1632 #define FCSM_WEBVIEWTEMPLATE 0x00000002
1633 #define FCSM_INFOTIP 0x00000004
1634 #define FCSM_CLSID 0x00000008
1635 #define FCSM_ICONFILE 0x00000010
1636 #define FCSM_LOGO 0x00000020
1637 #define FCSM_FLAGS 0x00000040
1639 #include <pshpack8.h>
1640 typedef struct {
1641 DWORD dwSize;
1642 DWORD dwMask;
1643 SHELLVIEWID *pvid;
1644 LPWSTR pszWebViewTemplate;
1645 DWORD cchWebViewTemplate;
1646 LPWSTR pszWebViewTemplateVersion;
1647 LPWSTR pszInfoTip;
1648 DWORD cchInfoTip;
1649 CLSID *pclsid;
1650 DWORD dwFlags;
1651 LPWSTR pszIconFile;
1652 DWORD cchIconFile;
1653 int iIconIndex;
1654 LPWSTR pszLogo;
1655 DWORD cchLogo;
1656 } SHFOLDERCUSTOMSETTINGS, *LPSHFOLDERCUSTOMSETTINGS;
1657 #include <poppack.h>
1659 WINSHELLAPI HRESULT WINAPI SHGetSetFolderCustomSettings(LPSHFOLDERCUSTOMSETTINGS pfcs, PCWSTR pszPath, DWORD dwReadWrite);
1661 /****************************************************************************
1662 * SHGetSpecialFolderLocation API
1664 WINSHELLAPI HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
1665 WINSHELLAPI HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
1667 /****************************************************************************
1668 * SHGetFolderPath API
1670 typedef enum {
1671 SHGFP_TYPE_CURRENT = 0,
1672 SHGFP_TYPE_DEFAULT = 1
1673 } SHGFP_TYPE;
1675 WINSHELLAPI HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
1676 WINSHELLAPI HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
1677 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1679 #define CSIDL_DESKTOP 0x0000
1680 #define CSIDL_INTERNET 0x0001
1681 #define CSIDL_PROGRAMS 0x0002
1682 #define CSIDL_CONTROLS 0x0003
1683 #define CSIDL_PRINTERS 0x0004
1684 #define CSIDL_PERSONAL 0x0005
1685 #define CSIDL_FAVORITES 0x0006
1686 #define CSIDL_STARTUP 0x0007
1687 #define CSIDL_RECENT 0x0008
1688 #define CSIDL_SENDTO 0x0009
1689 #define CSIDL_BITBUCKET 0x000a
1690 #define CSIDL_STARTMENU 0x000b
1691 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1692 #define CSIDL_MYMUSIC 0x000d
1693 #define CSIDL_MYVIDEO 0x000e
1694 #define CSIDL_DESKTOPDIRECTORY 0x0010
1695 #define CSIDL_DRIVES 0x0011
1696 #define CSIDL_NETWORK 0x0012
1697 #define CSIDL_NETHOOD 0x0013
1698 #define CSIDL_FONTS 0x0014
1699 #define CSIDL_TEMPLATES 0x0015
1700 #define CSIDL_COMMON_STARTMENU 0x0016
1701 #define CSIDL_COMMON_PROGRAMS 0X0017
1702 #define CSIDL_COMMON_STARTUP 0x0018
1703 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1704 #define CSIDL_APPDATA 0x001a
1705 #define CSIDL_PRINTHOOD 0x001b
1706 #define CSIDL_LOCAL_APPDATA 0x001c
1707 #define CSIDL_ALTSTARTUP 0x001d
1708 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1709 #define CSIDL_COMMON_FAVORITES 0x001f
1710 #define CSIDL_INTERNET_CACHE 0x0020
1711 #define CSIDL_COOKIES 0x0021
1712 #define CSIDL_HISTORY 0x0022
1713 #define CSIDL_COMMON_APPDATA 0x0023
1714 #define CSIDL_WINDOWS 0x0024
1715 #define CSIDL_SYSTEM 0x0025
1716 #define CSIDL_PROGRAM_FILES 0x0026
1717 #define CSIDL_MYPICTURES 0x0027
1718 #define CSIDL_PROFILE 0x0028
1719 #define CSIDL_SYSTEMX86 0x0029
1720 #define CSIDL_PROGRAM_FILESX86 0x002a
1721 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1722 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1723 #define CSIDL_COMMON_TEMPLATES 0x002d
1724 #define CSIDL_COMMON_DOCUMENTS 0x002e
1725 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1726 #define CSIDL_ADMINTOOLS 0x0030
1727 #define CSIDL_CONNECTIONS 0x0031
1728 #define CSIDL_COMMON_MUSIC 0x0035
1729 #define CSIDL_COMMON_PICTURES 0x0036
1730 #define CSIDL_COMMON_VIDEO 0x0037
1731 #define CSIDL_RESOURCES 0x0038
1732 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1733 #define CSIDL_COMMON_OEM_LINKS 0x003a
1734 #define CSIDL_CDBURN_AREA 0x003b
1735 #define CSIDL_COMPUTERSNEARME 0x003d
1736 #define CSIDL_PROFILES 0x003e
1737 #define CSIDL_FOLDER_MASK 0x00ff
1738 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1739 #define CSIDL_FLAG_NO_ALIAS 0x1000
1740 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1741 #define CSIDL_FLAG_CREATE 0x8000
1743 #define CSIDL_FLAG_MASK 0xff00
1745 /****************************************************************************
1746 * SHGetDesktopFolder API
1748 WINSHELLAPI HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
1750 WINSHELLAPI HRESULT WINAPI SHBindToFolderIDListParent(IShellFolder *psf, LPCITEMIDLIST pidl, REFIID riid,
1751 LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1753 /****************************************************************************
1754 * SHBindToParent API
1756 WINSHELLAPI HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1758 /****************************************************************************
1759 * SHDefExtractIcon API
1761 WINSHELLAPI HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
1762 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1763 WINSHELLAPI HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
1764 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1765 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1768 * DROPFILES for CF_HDROP and CF_PRINTERS
1770 typedef struct _DROPFILES
1772 DWORD pFiles;
1773 POINT pt;
1774 BOOL fNC;
1775 BOOL fWide;
1776 } DROPFILES, *LPDROPFILES;
1779 * Properties of a file in the clipboard
1781 typedef struct _FILEDESCRIPTORA {
1782 DWORD dwFlags;
1783 CLSID clsid;
1784 SIZEL sizel;
1785 POINTL pointl;
1786 DWORD dwFileAttributes;
1787 FILETIME ftCreationTime;
1788 FILETIME ftLastAccessTime;
1789 FILETIME ftLastWriteTime;
1790 DWORD nFileSizeHigh;
1791 DWORD nFileSizeLow;
1792 CHAR cFileName[MAX_PATH];
1793 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1795 typedef struct _FILEDESCRIPTORW {
1796 DWORD dwFlags;
1797 CLSID clsid;
1798 SIZEL sizel;
1799 POINTL pointl;
1800 DWORD dwFileAttributes;
1801 FILETIME ftCreationTime;
1802 FILETIME ftLastAccessTime;
1803 FILETIME ftLastWriteTime;
1804 DWORD nFileSizeHigh;
1805 DWORD nFileSizeLow;
1806 WCHAR cFileName[MAX_PATH];
1807 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
1809 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
1810 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
1813 * CF_FILEGROUPDESCRIPTOR clipboard format
1815 typedef struct _FILEGROUPDESCRIPTORA {
1816 UINT cItems;
1817 FILEDESCRIPTORA fgd[1];
1818 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1820 typedef struct _FILEGROUPDESCRIPTORW {
1821 UINT cItems;
1822 FILEDESCRIPTORW fgd[1];
1823 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1825 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1826 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1828 /****************************************************************************
1829 * Cabinet functions
1832 typedef struct {
1833 WORD cLength;
1834 WORD nVersion;
1835 BOOL fFullPathTitle:1;
1836 BOOL fSaveLocalView:1;
1837 BOOL fNotShell:1;
1838 BOOL fSimpleDefault:1;
1839 BOOL fDontShowDescBar:1;
1840 BOOL fNewWindowMode:1;
1841 BOOL fShowCompColor:1;
1842 BOOL fDontPrettyNames:1;
1843 BOOL fAdminsCreateCommonGroups:1;
1844 UINT fUnusedFlags:7;
1845 UINT :15; /* Required for proper binary layout with gcc */
1846 UINT fMenuEnumFilter;
1847 } CABINETSTATE, *LPCABINETSTATE;
1849 #define CABINETSTATE_VERSION 2
1851 WINSHELLAPI BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1852 WINSHELLAPI BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1854 /****************************************************************************
1855 * Path Manipulation Routines
1858 /* PathProcessCommand flags */
1859 #define PPCF_ADDQUOTES 0x01
1860 #define PPCF_INCLUDEARGS 0x02
1861 #define PPCF_ADDARGUMENTS 0x03
1862 #define PPCF_NODIRECTORIES 0x10
1863 #define PPCF_DONTRESOLVE 0x20
1864 #define PPCF_FORCEQUALIFY 0x40
1865 #define PPCF_LONGESTPOSSIBLE 0x80
1867 /* PathResolve flags */
1868 #define PRF_VERIFYEXISTS 0x01
1869 #define PRF_TRYPROGRAMEXTENSIONS 0x03
1870 #define PRF_FIRSTDIRDEF 0x04
1871 #define PRF_DONTFINDLNK 0x08
1872 #define PRF_REQUIREABSOLUTE 0x10
1874 WINSHELLAPI VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1875 WINSHELLAPI LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
1876 WINSHELLAPI int WINAPI PathResolve(LPWSTR, PZPCWSTR, UINT);
1877 WINSHELLAPI BOOL WINAPI PathYetAnotherMakeUniqueName(LPWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
1878 WINSHELLAPI BOOL WINAPI Win32DeleteFile(LPCWSTR);
1880 /****************************************************************************
1881 * Drag And Drop Routines
1884 /* DAD_AutoScroll sample structure */
1885 #define NUM_POINTS 3
1886 typedef struct
1888 int iNextSample;
1889 DWORD dwLastScroll;
1890 BOOL bFull;
1891 POINT pts[NUM_POINTS];
1892 DWORD dwTimes[NUM_POINTS];
1893 } AUTO_SCROLL_DATA;
1895 WINSHELLAPI BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1896 WINSHELLAPI BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1897 WINSHELLAPI BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1898 WINSHELLAPI BOOL WINAPI DAD_DragMove(POINT);
1899 WINSHELLAPI BOOL WINAPI DAD_DragLeave(void);
1900 WINSHELLAPI BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1901 WINSHELLAPI HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1903 /****************************************************************************
1904 * Internet shortcut properties
1907 #define PID_IS_URL 2
1908 #define PID_IS_NAME 4
1909 #define PID_IS_WORKINGDIR 5
1910 #define PID_IS_HOTKEY 6
1911 #define PID_IS_SHOWCMD 7
1912 #define PID_IS_ICONINDEX 8
1913 #define PID_IS_ICONFILE 9
1914 #define PID_IS_WHATSNEW 10
1915 #define PID_IS_AUTHOR 11
1916 #define PID_IS_DESCRIPTION 12
1917 #define PID_IS_COMMENT 13
1919 WINSHELLAPI void WINAPI ILFree(ITEMIDLIST*);
1920 WINSHELLAPI ITEMIDLIST* WINAPI ILClone(const ITEMIDLIST*) __WINE_DEALLOC(ILFree) __WINE_MALLOC;
1921 WINSHELLAPI ITEMIDLIST* WINAPI ILCloneFirst(const ITEMIDLIST*) __WINE_DEALLOC(ILFree) __WINE_MALLOC;
1922 WINSHELLAPI ITEMIDLIST* WINAPI ILCreateFromPathA(const char*) __WINE_DEALLOC(ILFree) __WINE_MALLOC;
1923 WINSHELLAPI ITEMIDLIST* WINAPI ILCreateFromPathW(const WCHAR*) __WINE_DEALLOC(ILFree) __WINE_MALLOC;
1924 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1925 WINSHELLAPI ITEMIDLIST* WINAPI ILCombine(const ITEMIDLIST*,const ITEMIDLIST*) __WINE_DEALLOC(ILFree) __WINE_MALLOC;
1927 WINSHELLAPI LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1928 WINSHELLAPI LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1929 WINSHELLAPI LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1930 WINSHELLAPI LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1931 WINSHELLAPI UINT WINAPI ILGetSize(LPCITEMIDLIST);
1932 WINSHELLAPI BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1933 WINSHELLAPI BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1934 WINSHELLAPI HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1935 WINSHELLAPI BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1936 WINSHELLAPI HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1938 static inline BOOL ILIsEmpty(LPCITEMIDLIST pidl)
1940 return !(pidl && pidl->mkid.cb);
1943 #include <pshpack8.h>
1945 typedef struct {
1946 HWND hwnd;
1947 IContextMenuCB *pcmcb;
1948 PCIDLIST_ABSOLUTE pidlFolder;
1949 IShellFolder *psf;
1950 UINT cidl;
1951 PCUITEMID_CHILD_ARRAY apidl;
1952 IUnknown *punkAssociationInfo;
1953 UINT cKeys;
1954 const HKEY *aKeys;
1955 } DEFCONTEXTMENU;
1957 #include <poppack.h>
1959 WINSHELLAPI HRESULT WINAPI SHCreateDefaultContextMenu(const DEFCONTEXTMENU *pdcm, REFIID riid, void **ppv);
1961 typedef HRESULT (CALLBACK *LPFNDFMCALLBACK)(IShellFolder*,HWND,IDataObject*,UINT,WPARAM,LPARAM);
1963 WINSHELLAPI HRESULT WINAPI CDefFolderMenu_Create2(LPCITEMIDLIST pidlFolder, HWND hwnd, UINT cidl,
1964 LPCITEMIDLIST *apidl, IShellFolder *psf,
1965 LPFNDFMCALLBACK lpfn, UINT nKeys, const HKEY *ahkeys,
1966 IContextMenu **ppcm);
1968 WINSHELLAPI int WINAPI PickIconDlg(HWND owner, WCHAR *path, UINT path_len, int *index);
1969 WINSHELLAPI HRESULT WINAPI SHLimitInputEdit(HWND hwnd, IShellFolder *folder);
1971 #include <poppack.h>
1973 #ifdef __cplusplus
1974 } /* extern "C" */
1975 #endif /* defined(__cplusplus) */
1977 #endif /* __WINE_SHLOBJ_H */