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