853e30cd0690e1279204ff827b670c842d51ddce
[reactos.git] / sdk / include / psdk / shlobj.h
1 /*
2 * Copyright (C) the Wine project
3 *
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.
8 *
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.
13 *
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
17 */
18
19 #ifndef __WINE_SHLOBJ_H
20 #define __WINE_SHLOBJ_H
21
22 #include <ole2.h>
23 #include <commctrl.h>
24 #include <prsht.h>
25
26 #ifndef INITGUID
27 #include <shlguid.h>
28 #endif
29
30 #ifdef WINE_NO_UNICODE_MACROS
31 #undef GetObject
32 #endif
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* defined(__cplusplus) */
37
38 /* Except for specific structs, this header is byte packed */
39 #include <pshpack1.h>
40
41 #include <shtypes.h>
42 #include <shobjidl.h>
43
44 typedef struct
45 {
46 DWORD dwSize;
47 DWORD dwMask;
48 SHELLVIEWID* pvid;
49 LPSTR pszWebViewTemplate;
50 DWORD cchWebViewTemplate;
51 LPSTR pszWebViewTemplateVersion;
52 LPSTR pszInfoTip;
53 DWORD cchInfoTip;
54 CLSID* pclsid;
55 DWORD dwFlags;
56 LPSTR pszIconFile;
57 DWORD cchIconFile;
58 int iIconIndex;
59 LPSTR pszLogo;
60 DWORD cchLogo;
61 } SHFOLDERCUSTOMSETTINGSA, *LPSHFOLDERCUSTOMSETTINGSA;
62
63 typedef struct
64 {
65 DWORD dwSize;
66 DWORD dwMask;
67 SHELLVIEWID* pvid;
68 LPWSTR pszWebViewTemplate;
69 DWORD cchWebViewTemplate;
70 LPWSTR pszWebViewTemplateVersion;
71 LPWSTR pszInfoTip;
72 DWORD cchInfoTip;
73 CLSID* pclsid;
74 DWORD dwFlags;
75 LPWSTR pszIconFile;
76 DWORD cchIconFile;
77 int iIconIndex;
78 LPWSTR pszLogo;
79 DWORD cchLogo;
80 } SHFOLDERCUSTOMSETTINGSW, *LPSHFOLDERCUSTOMSETTINGSW;
81
82 #ifndef HPSXA_DEFINED
83 #define HPSXA_DEFINED
84 DECLARE_HANDLE(HPSXA);
85 #endif
86
87 typedef int GPFIDL_FLAGS;
88
89 UINT
90 WINAPI
91 SHAddFromPropSheetExtArray(
92 _In_ HPSXA,
93 _In_ LPFNADDPROPSHEETPAGE,
94 LPARAM);
95
96 LPVOID WINAPI SHAlloc(SIZE_T) __WINE_ALLOC_SIZE(1);
97
98 HRESULT
99 WINAPI
100 SHCoCreateInstance(
101 _In_opt_ LPCWSTR,
102 _In_opt_ const CLSID*,
103 _In_opt_ IUnknown*,
104 _In_ REFIID,
105 _Outptr_ LPVOID*);
106
107 HPSXA WINAPI SHCreatePropSheetExtArray(_In_ HKEY, _In_opt_ LPCWSTR, UINT);
108 HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY,LPCWSTR,UINT,IDataObject*);
109 HRESULT WINAPI SHCreateQueryCancelAutoPlayMoniker(IMoniker**);
110
111 HRESULT
112 WINAPI
113 SHCreateShellItem(
114 _In_opt_ LPCITEMIDLIST,
115 _In_opt_ IShellFolder*,
116 _In_ LPCITEMIDLIST,
117 _Outptr_ IShellItem**);
118
119 DWORD WINAPI SHCLSIDFromStringA(_In_ LPCSTR, _Out_ CLSID*);
120 DWORD WINAPI SHCLSIDFromStringW(_In_ LPCWSTR, _Out_ CLSID*);
121 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
122
123 HRESULT
124 WINAPI
125 SHCreateStdEnumFmtEtc(
126 _In_ UINT cfmt,
127 _In_reads_(cfmt) const FORMATETC *,
128 _Outptr_ IEnumFORMATETC**);
129
130 void WINAPI SHDestroyPropSheetExtArray(_In_ HPSXA);
131 BOOL WINAPI SHFindFiles(_In_opt_ LPCITEMIDLIST, _In_opt_ LPCITEMIDLIST);
132 DWORD WINAPI SHFormatDrive(_In_ HWND, UINT, UINT, UINT);
133 void WINAPI SHFree(_In_opt_ LPVOID);
134
135 BOOL
136 WINAPI
137 GetFileNameFromBrowse(
138 _In_opt_ HWND,
139 _Inout_updates_(cchFilePath) LPWSTR,
140 UINT cchFilePath,
141 _In_opt_ LPCWSTR,
142 _In_ LPCWSTR,
143 _In_opt_ LPCWSTR,
144 _In_opt_ LPCWSTR);
145
146 _Check_return_ HRESULT WINAPI SHGetInstanceExplorer(_Outptr_ IUnknown**);
147
148 VOID WINAPI SHSetInstanceExplorer(_In_opt_ IUnknown*);
149
150 HRESULT
151 WINAPI
152 SHGetFolderPathAndSubDirA(
153 _Reserved_ HWND,
154 _In_ int,
155 _In_opt_ HANDLE,
156 _In_ DWORD,
157 _In_opt_ LPCSTR, _Out_writes_(MAX_PATH) LPSTR);
158
159 HRESULT
160 WINAPI
161 SHGetFolderPathAndSubDirW(
162 _Reserved_ HWND,
163 _In_ int,
164 _In_opt_ HANDLE,
165 _In_ DWORD,
166 _In_opt_ LPCWSTR,
167 _Out_writes_(MAX_PATH) LPWSTR);
168
169 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir);
170
171 _Success_(return != 0)
172 BOOL
173 WINAPI
174 SHGetPathFromIDListA(
175 _In_ LPCITEMIDLIST,
176 _Out_writes_(MAX_PATH) LPSTR);
177
178 _Success_(return != 0)
179 BOOL
180 WINAPI
181 SHGetPathFromIDListW(
182 _In_ LPCITEMIDLIST,
183 _Out_writes_(MAX_PATH) LPWSTR);
184
185 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
186
187 INT WINAPI SHHandleUpdateImage(_In_ LPCITEMIDLIST);
188
189 HRESULT
190 WINAPI
191 SHILCreateFromPath(
192 _In_ LPCWSTR,
193 _Outptr_ LPITEMIDLIST*,
194 _Inout_opt_ DWORD*);
195
196 HRESULT WINAPI SHLoadOLE(LPARAM);
197
198 HRESULT
199 WINAPI
200 SHParseDisplayName(
201 _In_ LPCWSTR,
202 _In_opt_ IBindCtx*,
203 _Outptr_ LPITEMIDLIST*,
204 _In_ SFGAOF,
205 _Out_opt_ SFGAOF*);
206
207 HRESULT
208 WINAPI
209 SHPathPrepareForWriteA(
210 _In_opt_ HWND,
211 _In_opt_ IUnknown*,
212 _In_ LPCSTR, DWORD);
213
214 HRESULT
215 WINAPI
216 SHPathPrepareForWriteW(
217 _In_opt_ HWND,
218 _In_opt_ IUnknown*,
219 _In_ LPCWSTR, DWORD);
220
221 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite);
222
223 UINT
224 WINAPI
225 SHReplaceFromPropSheetExtArray(
226 _In_ HPSXA,
227 UINT,
228 _In_ LPFNADDPROPSHEETPAGE,
229 LPARAM);
230
231 LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
232
233 int
234 WINAPI
235 SHMapPIDLToSystemImageListIndex(
236 _In_ IShellFolder*,
237 _In_ LPCITEMIDLIST,
238 _Out_opt_ int*);
239
240 HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
241 VOID WINAPI SHUpdateImageA(_In_ LPCSTR, INT, UINT, INT);
242 VOID WINAPI SHUpdateImageW(_In_ LPCWSTR, INT, UINT, INT);
243
244 INT
245 WINAPI
246 PickIconDlg(
247 _In_opt_ HWND,
248 _Inout_updates_(cchIconPath) LPWSTR,
249 UINT cchIconPath,
250 _Inout_opt_ int *);
251
252 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
253 int WINAPI RestartDialog(_In_opt_ HWND, _In_opt_ LPCWSTR, DWORD);
254 int WINAPI RestartDialogEx(_In_opt_ HWND, _In_opt_ LPCWSTR, DWORD, DWORD);
255 int WINAPI DriveType(int);
256 int WINAPI RealDriveType(int, BOOL);
257 int WINAPI IsNetDrive(int);
258 BOOL WINAPI IsUserAnAdmin(void);
259
260 #define KF_FLAG_DEFAULT_PATH 0x00000400
261
262 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formattable */
263 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was cancelled */
264 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formattable */
265
266 /* SHFormatDrive flags */
267 #define SHFMT_ID_DEFAULT 0xFFFF
268 #define SHFMT_OPT_FULL 1
269 #define SHFMT_OPT_SYSONLY 2
270
271 /* SHPathPrepareForWrite flags */
272 #define SHPPFW_NONE 0x00000000
273 #define SHPPFW_DIRCREATE 0x00000001
274 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
275 #define SHPPFW_ASKDIRCREATE 0x00000002
276 #define SHPPFW_IGNOREFILENAME 0x00000004
277 #define SHPPFW_NOWRITECHECK 0x00000008
278 #define SHPPFW_MEDIACHECKONLY 0x00000010
279
280 /* SHObjectProperties flags */
281 #define SHOP_PRINTERNAME 0x01
282 #define SHOP_FILEPATH 0x02
283 #define SHOP_VOLUMEGUID 0x04
284
285 BOOL
286 WINAPI
287 SHObjectProperties(
288 _In_opt_ HWND,
289 _In_ DWORD,
290 _In_ LPCWSTR,
291 _In_opt_ LPCWSTR);
292
293 #define PCS_FATAL 0x80000000
294 #define PCS_REPLACEDCHAR 0x00000001
295 #define PCS_REMOVEDCHAR 0x00000002
296 #define PCS_TRUNCATED 0x00000004
297 #define PCS_PATHTOOLONG 0x00000008
298
299 int WINAPI PathCleanupSpec(_In_opt_ LPCWSTR, _Inout_ LPWSTR);
300
301 /*****************************************************************************
302 * IContextMenu interface
303 */
304
305
306 /* DATAOBJECT_InitShellIDList*/
307 #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
308 #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
309 #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
310 /* DATAOBJECT_InitFileGroupDesc */
311 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
312 /* DATAOBJECT_InitFileContents*/
313 #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
314 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
315 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
316 #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
317 #define CFSTR_SHELLURLA "UniformResourceLocator"
318 #define CFSTR_INETURLA CFSTR_SHELLURLA
319 #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
320 #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
321 #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
322 #define CFSTR_INDRAGLOOPA "InShellDragLoop"
323 #define CFSTR_DRAGCONTEXTA "DragContext"
324 #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
325 #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
326 #define CFSTR_TARGETCLSIDA "TargetCLSID"
327 #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
328 #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
329
330 #if defined(__GNUC__)
331 # define CFSTR_SHELLIDLISTW \
332 (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
333 # define CFSTR_SHELLIDLISTOFFSETW \
334 (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
335 # define CFSTR_NETRESOURCESW \
336 (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
337 # define CFSTR_FILEDESCRIPTORW \
338 (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
339 # define CFSTR_FILECONTENTSW \
340 (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
341 # define CFSTR_FILENAMEW \
342 (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
343 # define CFSTR_FILENAMEMAPW \
344 (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
345 # define CFSTR_PRINTERGROUPW \
346 (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
347 # define CFSTR_SHELLURLW \
348 (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 }
349 # define CFSTR_INETURLW \
350 (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 }
351 # define CFSTR_PREFERREDDROPEFFECTW \
352 (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
353 # define CFSTR_PERFORMEDDROPEFFECTW \
354 (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
355 # define CFSTR_PASTESUCCEEDEDW \
356 (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
357 # define CFSTR_INDRAGLOOPW \
358 (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
359 # define CFSTR_DRAGCONTEXTW \
360 (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
361 # define CFSTR_MOUNTEDVOLUMEW \
362 (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
363 # define CFSTR_PERSISTEDDATAOBJECTW \
364 (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
365 # define CFSTR_TARGETCLSIDW \
366 (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
367 # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
368 (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
369 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
370 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
371 (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
372 ' ','D','r','o','p','E','f','f','e','c','t',0 }
373 #elif defined(_MSC_VER)
374 # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
375 # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
376 # define CFSTR_NETRESOURCESW L"Net Resource"
377 # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
378 # define CFSTR_FILECONTENTSW L"FileContents"
379 # define CFSTR_FILENAMEW L"FileNameW"
380 # define CFSTR_FILENAMEMAPW L"FileNameMapW"
381 # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
382 # define CFSTR_SHELLURLW L"UniformResourceLocator"
383 # define CFSTR_INETURLW L"UniformResourceLocatorW"
384 # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
385 # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
386 # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
387 # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
388 # define CFSTR_DRAGCONTEXTW L"DragContext"
389 # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
390 # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
391 # define CFSTR_TARGETCLSIDW L"TargetCLSID"
392 # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
393 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
394 #else
395 static const WCHAR CFSTR_SHELLIDLISTW[] =
396 { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
397 static const WCHAR CFSTR_SHELLIDLISTOFFSETW[] =
398 { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
399 static const WCHAR CFSTR_NETRESOURCESW[] =
400 { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
401 static const WCHAR CFSTR_FILEDESCRIPTORW[] =
402 { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
403 static const WCHAR CFSTR_FILECONTENTSW[] =
404 { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
405 static const WCHAR CFSTR_FILENAMEW[] =
406 { 'F','i','l','e','N','a','m','e','W',0 };
407 static const WCHAR CFSTR_FILENAMEMAPW[] =
408 { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
409 static const WCHAR CFSTR_PRINTERGROUPW[] =
410 { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
411 static const WCHAR CFSTR_SHELLURLW[] =
412 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
413 static const WCHAR CFSTR_INETURLW[] =
414 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
415 static const WCHAR CFSTR_PREFERREDDROPEFFECTW[] =
416 { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
417 static const WCHAR CFSTR_PERFORMEDDROPEFFECTW[] =
418 { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
419 static const WCHAR CFSTR_PASTESUCCEEDEDW[] =
420 { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
421 static const WCHAR CFSTR_INDRAGLOOPW[] =
422 { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
423 static const WCHAR CFSTR_DRAGCONTEXTW[] =
424 { 'D','r','a','g','C','o','n','t','e','x','t',0 };
425 static const WCHAR CFSTR_MOUNTEDVOLUMEW[] =
426 { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
427 static const WCHAR CFSTR_PERSISTEDDATAOBJECTW[] =
428 { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
429 static const WCHAR CFSTR_TARGETCLSIDW[] =
430 { 'T','a','r','g','e','t','C','L','S','I','D',0 };
431 static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW[] =
432 { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
433 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
434 static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW[] =
435 { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
436 ' ','D','r','o','p','E','f','f','e','c','t',0 };
437 #endif
438
439 #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
440 #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
441 #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
442 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
443 #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
444 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
445 #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
446 #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
447 #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
448 #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
449 #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
450 #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
451 #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
452 #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
453 #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
454 #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
455 #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
456 #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
457 #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
458 #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
459
460 typedef struct
461 { UINT cidl;
462 UINT aoffset[1];
463 } CIDA, *LPIDA;
464
465 /************************************************************************
466 * IShellView interface
467 */
468
469 #define FCIDM_SHVIEWFIRST 0x0000
470 /* undocumented */
471 #define FCIDM_SHVIEW_ARRANGE 0x7001
472 #define FCIDM_SHVIEW_DELETE 0x7011
473 #define FCIDM_SHVIEW_PROPERTIES 0x7013
474 #define FCIDM_SHVIEW_CUT 0x7018
475 #define FCIDM_SHVIEW_COPY 0x7019
476 #define FCIDM_SHVIEW_INSERT 0x701A
477 #define FCIDM_SHVIEW_UNDO 0x701B
478 #define FCIDM_SHVIEW_INSERTLINK 0x701C
479 #define FCIDM_SHVIEW_COPYTO 0x701E
480 #define FCIDM_SHVIEW_MOVETO 0x701F
481 #define FCIDM_SHVIEW_SELECTALL 0x7021
482 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
483
484 #define FCIDM_SHVIEW_BIGICON 0x7029
485 #define FCIDM_SHVIEW_SMALLICON 0x702A
486 #define FCIDM_SHVIEW_LISTVIEW 0x702B
487 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
488 /* 0x7030-0x703f are used by the shellbrowser */
489 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
490 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
491
492 #define FCIDM_SHVIEW_HELP 0x7041
493 #define FCIDM_SHVIEW_RENAME 0x7050
494 #define FCIDM_SHVIEW_CREATELINK 0x7051
495 #define FCIDM_SHVIEW_NEWLINK 0x7052
496 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
497
498 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
499 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
500 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
501
502 #define FCIDM_SHVIEWLAST 0x7fff
503 #define FCIDM_BROWSERFIRST 0xA000
504 /* undocumented toolbar items from stddlg's*/
505 #define FCIDM_TB_UPFOLDER 0xA001
506 #define FCIDM_TB_NEWFOLDER 0xA002
507 #define FCIDM_TB_SMALLICON 0xA003
508 #define FCIDM_TB_REPORTVIEW 0xA004
509 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
510
511 #define FCIDM_BROWSERLAST 0xbf00
512 #define FCIDM_GLOBALFIRST 0x8000
513 #define FCIDM_GLOBALLAST 0x9fff
514
515 /*
516 * Global submenu IDs and separator IDs
517 */
518 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
519 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
520 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
521 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
522 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
523 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
524 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
525 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
526 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
527 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
528
529 /* control IDs known to the view */
530 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
531 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
532
533 #define INTERFACE IShellDetails
534 DECLARE_INTERFACE_(IShellDetails, IUnknown)
535 {
536 /*** IUnknown methods ***/
537 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
538 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
539 STDMETHOD_(ULONG,Release) (THIS) PURE;
540 /*** IShellDetails methods ***/
541 STDMETHOD(GetDetailsOf)(THIS_ _In_opt_ PCUITEMID_CHILD pidl, UINT iColumn, _Out_ SHELLDETAILS *pDetails) PURE;
542 STDMETHOD(ColumnClick)(THIS_ UINT iColumn) PURE;
543 };
544 #undef INTERFACE
545
546 #if !defined(__cplusplus) || defined(CINTERFACE)
547 /*** IUnknown methods ***/
548 #define IShellDetails_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
549 #define IShellDetails_AddRef(p) (p)->lpVtbl->AddRef(p)
550 #define IShellDetails_Release(p) (p)->lpVtbl->Release(p)
551 /*** IShellDetails methods ***/
552 #define IShellDetails_GetDetailsOf(p,a,b,c) (p)->lpVtbl->GetDetailsOf(p,a,b,c)
553 #define IShellDetails_ColumnClick(p,a) (p)->lpVtbl->ColumnClick(p,a)
554 #endif
555
556 /* IQueryInfo interface */
557 #define INTERFACE IQueryInfo
558 DECLARE_INTERFACE_(IQueryInfo,IUnknown)
559 {
560 /*** IUnknown methods ***/
561 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
562 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
563 STDMETHOD_(ULONG,Release)(THIS) PURE;
564 /*** IQueryInfo methods ***/
565 STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, _Outptr_ WCHAR** lppTips) PURE;
566 STDMETHOD(GetInfoFlags)(THIS_ _Out_ DWORD* lpFlags) PURE;
567 };
568 #undef INTERFACE
569
570 #if !defined(__cplusplus) || defined(CINTERFACE)
571 /*** IUnknown methods ***/
572 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
573 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
574 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
575 /*** IQueryInfo methods ***/
576 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
577 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
578 #endif
579
580 /* IInputObject interface */
581 #define INTERFACE IInputObject
582 DECLARE_INTERFACE_(IInputObject,IUnknown)
583 {
584 /*** IUnknown methods ***/
585 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
586 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
587 STDMETHOD_(ULONG,Release)(THIS) PURE;
588 /*** IInputObject methods ***/
589 STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
590 STDMETHOD(HasFocusIO)(THIS) PURE;
591 STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
592 };
593 #undef INTERFACE
594
595 #if !defined(__cplusplus) || defined(CINTERFACE)
596 /*** IUnknown methods ***/
597 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
598 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
599 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
600 /*** IInputObject methods ***/
601 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
602 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
603 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
604 #endif
605
606 /* IInputObjectSite interface */
607 #define INTERFACE IInputObjectSite
608 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
609 {
610 /*** IUnknown methods ***/
611 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
612 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
613 STDMETHOD_(ULONG,Release) (THIS) PURE;
614 /*** IInputObjectSite methods ***/
615 STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
616 };
617 #undef INTERFACE
618
619 #if !defined(__cplusplus) || defined(CINTERFACE)
620 /*** IUnknown methods ***/
621 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
622 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
623 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
624 /*** IInputObject methods ***/
625 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
626 #endif
627
628 /* IObjMgr interface */
629 #define INTERFACE IObjMgr
630 DECLARE_INTERFACE_(IObjMgr,IUnknown)
631 {
632 /*** IUnknown methods ***/
633 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
634 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
635 STDMETHOD_(ULONG,Release) (THIS) PURE;
636 /*** IObjMgr methods ***/
637 STDMETHOD(Append)(THIS_ _In_ LPUNKNOWN punk) PURE;
638 STDMETHOD(Remove)(THIS_ _In_ LPUNKNOWN punk) PURE;
639 };
640 #undef INTERFACE
641
642 #if !defined(__cplusplus) || defined(CINTERFACE)
643 /*** IUnknown methods ***/
644 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
645 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
646 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
647 /*** IObjMgr methods ***/
648 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
649 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
650 #endif
651
652 /* ICurrentWorkingDirectory interface */
653 #define INTERFACE ICurrentWorkingDirectory
654 DECLARE_INTERFACE_(ICurrentWorkingDirectory,IUnknown)
655 {
656 /*** IUnknown methods ***/
657 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
658 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
659 STDMETHOD_(ULONG,Release) (THIS) PURE;
660 /*** ICurrentWorkingDirectory methods ***/
661 STDMETHOD(GetDirectory)(THIS_ _Out_writes_(cchSize) PWSTR pwzPath, DWORD cchSize) PURE;
662 STDMETHOD(SetDirectory)(THIS_ _In_ PCWSTR pwzPath) PURE;
663 };
664 #undef INTERFACE
665
666 #if !defined(__cplusplus) || defined(CINTERFACE)
667 /*** IUnknown methods ***/
668 #define ICurrentWorkingDirectory_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
669 #define ICurrentWorkingDirectory_AddRef(p) (p)->lpVtbl->AddRef(p)
670 #define ICurrentWorkingDirectory_Release(p) (p)->lpVtbl->Release(p)
671 /*** ICurrentWorkingDirectory methods ***/
672 #define ICurrentWorkingDirectory_GetDirectory(p,a,b) (p)->lpVtbl->GetDirectory(p,a,b)
673 #define ICurrentWorkingDirectory_SetDirectory(p,a) (p)->lpVtbl->SetDirectory(p,a)
674 #endif
675
676 /* IACList interface */
677 #define INTERFACE IACList
678 DECLARE_INTERFACE_(IACList,IUnknown)
679 {
680 /*** IUnknown methods ***/
681 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
682 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
683 STDMETHOD_(ULONG,Release) (THIS) PURE;
684 /*** IACList methods ***/
685 STDMETHOD(Expand)(THIS_ _In_ LPCOLESTR str) PURE;
686 };
687 #undef INTERFACE
688
689 #if !defined(__cplusplus) || defined(CINTERFACE)
690 /*** IUnknown methods ***/
691 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
692 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
693 #define IACList_Release(p) (p)->lpVtbl->Release(p)
694 /*** IACList methods ***/
695 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
696 #endif
697
698 /* IACList2 interface */
699
700 #define ACLO_NONE 0x00000000
701 #define ACLO_CURRENTDIR 0x00000001
702 #define ACLO_MYCOMPUTER 0x00000002
703 #define ACLO_DESKTOP 0x00000004
704 #define ACLO_FAVORITES 0x00000008
705 #define ACLO_FILESYSONLY 0x00000010
706 #define ACLO_FILESYSDIRS 0x00000020
707
708 #define INTERFACE IACList2
709 DECLARE_INTERFACE_(IACList2,IACList)
710 {
711 /*** IUnknown methods ***/
712 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
713 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
714 STDMETHOD_(ULONG,Release) (THIS) PURE;
715 /*** IACList methods ***/
716 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
717 /*** IACList2 methods ***/
718 STDMETHOD(SetOptions)(THIS_ DWORD dwFlag) PURE;
719 STDMETHOD(GetOptions)(THIS_ _Out_ DWORD* pdwFlag) PURE;
720 };
721 #undef INTERFACE
722
723 #if !defined(__cplusplus) || defined(CINTERFACE)
724 /*** IUnknown methods ***/
725 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
726 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
727 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
728 /*** IACList2 methods ***/
729 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
730 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
731 #endif
732
733 /****************************************************************************
734 * IShellFolderViewCB interface
735 */
736
737 #define INTERFACE IShellFolderViewCB
738 DECLARE_INTERFACE_(IShellFolderViewCB,IUnknown)
739 {
740 /*** IUnknown methods ***/
741 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
742 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
743 STDMETHOD_(ULONG,Release)(THIS) PURE;
744 /*** IShellFolderViewCB methods ***/
745 STDMETHOD(MessageSFVCB)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam) PURE;
746 };
747 #undef INTERFACE
748
749 #if !defined(__cplusplus) || defined(CINTERFACE)
750 /*** IUnknown methods ***/
751 #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
752 #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
753 #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
754 /*** IShellFolderViewCB methods ***/
755 #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
756 #endif
757
758 /****************************************************************************
759 * IShellFolderView interface
760 */
761
762 #include <pshpack8.h>
763
764 typedef struct _ITEMSPACING
765 {
766 int cxSmall;
767 int cySmall;
768 int cxLarge;
769 int cyLarge;
770 } ITEMSPACING;
771
772 #include <poppack.h>
773
774 #define INTERFACE IShellFolderView
775 DEFINE_GUID(IID_IShellFolderView,0x37a378c0,0xf82d,0x11ce,0xae,0x65,0x08,0x00,0x2b,0x2e,0x12,0x62);
776 DECLARE_INTERFACE_(IShellFolderView, IUnknown)
777 {
778 /*** IUnknown methods ***/
779 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
780 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
781 STDMETHOD_(ULONG,Release) (THIS) PURE;
782
783 /*** IShellFolderView methods ***/
784 STDMETHOD(Rearrange) (THIS_ LPARAM lParamSort) PURE;
785 STDMETHOD(GetArrangeParam) (THIS_ _Out_ LPARAM *plParamSort) PURE;
786 STDMETHOD(ArrangeGrid) (THIS) PURE;
787 STDMETHOD(AutoArrange) (THIS) PURE;
788 STDMETHOD(GetAutoArrange) (THIS) PURE;
789 STDMETHOD(AddObject) (THIS_ _In_ PITEMID_CHILD pidl, _Out_ UINT *puItem) PURE;
790 STDMETHOD(GetObject) (THIS_ _Outptr_ PITEMID_CHILD *ppidl, UINT uItem) PURE;
791 STDMETHOD(RemoveObject) (THIS_ _In_opt_ PITEMID_CHILD pidl, _Out_ UINT *puItem) PURE;
792 STDMETHOD(GetObjectCount) (THIS_ _Out_ UINT *puCount) PURE;
793 STDMETHOD(SetObjectCount) (THIS_ UINT uCount, UINT dwFlags) PURE;
794 STDMETHOD(UpdateObject) (THIS_ _In_ PITEMID_CHILD pidlOld, _In_ PITEMID_CHILD pidlNew, _Out_ UINT *puItem) PURE;
795 STDMETHOD(RefreshObject) (THIS_ _In_ PITEMID_CHILD pidl, _Out_ UINT *puItem) PURE;
796 STDMETHOD(SetRedraw) (THIS_ BOOL bRedraw) PURE;
797 STDMETHOD(GetSelectedCount) (THIS_ _Out_ UINT *puSelected) PURE;
798 STDMETHOD(GetSelectedObjects) (THIS_ _Outptr_result_buffer_(*puItems) PCUITEMID_CHILD **pppidl, _Out_ UINT *puItems) PURE;
799 STDMETHOD(IsDropOnSource) (THIS_ _In_opt_ IDropTarget *pDropTarget) PURE;
800 STDMETHOD(GetDragPoint) (THIS_ _Out_ POINT *ppt) PURE;
801 STDMETHOD(GetDropPoint) (THIS_ _Out_ POINT *ppt) PURE;
802 STDMETHOD(MoveIcons) (THIS_ _In_ IDataObject *pDataObject) PURE;
803 STDMETHOD(SetItemPos) (THIS_ _In_ PCUITEMID_CHILD pidl, _In_ POINT *ppt) PURE;
804 STDMETHOD(IsBkDropTarget) (THIS_ _In_opt_ IDropTarget *pDropTarget) PURE;
805 STDMETHOD(SetClipboard) (THIS_ BOOL bMove) PURE;
806 STDMETHOD(SetPoints) (THIS_ _In_ IDataObject *pDataObject) PURE;
807 STDMETHOD(GetItemSpacing) (THIS_ _Out_ ITEMSPACING *pSpacing) PURE;
808 STDMETHOD(SetCallback) (THIS_ _In_opt_ IShellFolderViewCB* pNewCB, _Outptr_result_maybenull_ IShellFolderViewCB** ppOldCB) PURE;
809 STDMETHOD(Select) ( THIS_ UINT dwFlags ) PURE;
810 STDMETHOD(QuerySupport) (THIS_ _Inout_ UINT * pdwSupport) PURE;
811 STDMETHOD(SetAutomationObject)(THIS_ _In_opt_ IDispatch* pdisp) PURE;
812 };
813 #undef INTERFACE
814
815 #if !defined(__cplusplus) || defined(CINTERFACE)
816 /*** IUnknown methods ***/
817 #define IShellFolderView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
818 #define IShellFolderView_AddRef(p) (p)->lpVtbl->AddRef(p)
819 #define IShellFolderView_Release(p) (p)->lpVtbl->Release(p)
820 /*** IShellFolderView methods ***/
821 #define IShellFolderView_Rearrange(p,a) (p)->lpVtbl->Rearrange(p,a)
822 #define IShellFolderView_GetArrangeParam(p,a) (p)->lpVtbl->GetArrangeParam(p,a)
823 #define IShellFolderView_ArrangeGrid(p) (p)->lpVtbl->ArrangeGrid(p)
824 #define IShellFolderView_AutoArrange(p) (p)->lpVtbl->AutoArrange(p)
825 #define IShellFolderView_GetAutoArrange(p) (p)->lpVtbl->GetAutoArrange(p)
826 #define IShellFolderView_AddObject(p,a,b) (p)->lpVtbl->AddObject(p,a,b)
827 #define IShellFolderView_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
828 #define IShellFolderView_RemoveObject(p,a,b) (p)->lpVtbl->RemoveObject(p,a,b)
829 #define IShellFolderView_GetObjectCount(p,a) (p)->lpVtbl->GetObjectCount(p,a)
830 #define IShellFolderView_SetObjectCount(p,a,b) (p)->lpVtbl->SetObjectCount(p,a,b)
831 #define IShellFolderView_UpdateObject(p,a,b,c) (p)->lpVtbl->UpdateObject(p,a,b,c)
832 #define IShellFolderView_RefreshObject(p,a,b) (p)->lpVtbl->RefreshObject(p,a,b)
833 #define IShellFolderView_SetRedraw(p,a) (p)->lpVtbl->SetRedraw(p,a)
834 #define IShellFolderView_GetSelectedCount(p,a) (p)->lpVtbl->GetSelectedCount(p,a)
835 #define IShellFolderView_GetSelectedObjects(p,a,b) (p)->lpVtbl->GetSelectedObjects(p,a,b)
836 #define IShellFolderView_IsDropOnSource(p,a) (p)->lpVtbl->IsDropOnSource(p,a)
837 #define IShellFolderView_GetDragPoint(p,a) (p)->lpVtbl->GetDragPoint(p,a)
838 #define IShellFolderView_GetDropPoint(p,a) (p)->lpVtbl->GetDropPoint(p,a)
839 #define IShellFolderView_MoveIcons(p,a) (p)->lpVtbl->MoveIcons(p,a)
840 #define IShellFolderView_SetItemPos(p,a,b) (p)->lpVtbl->SetItemPos(p,a,b)
841 #define IShellFolderView_DropTarget(p,a) (p)->lpVtbl->DropTarget(p,a)
842 #define IShellFolderView_SetClipboard(p,a) (p)->lpVtbl->SetClipboard(p,a)
843 #define IShellFolderView_SetPoints(p,a) (p)->lpVtbl->SetPoints(p,a)
844 #define IShellFolderView_GetItemSpacing(p,a) (p)->lpVtbl->GetItemSpacing(p,a)
845 #define IShellFolderView_SetCallback(p,a) (p)->lpVtbl->SetCallback(p,a)
846 #define IShellFolderView_Select(p,a) (p)->lpVtbl->Select(p,a)
847 #define IShellFolderView_QuerySupport(p,a) (p)->lpVtbl->QuerySupport(p,a)
848 #define IShellFolderView_SetAutomationObject(p,a) (p)->lpVtbl->SetAutomationObject(p,a)
849 #endif
850
851 /* IProgressDialog interface */
852 #define PROGDLG_NORMAL 0x00000000
853 #define PROGDLG_MODAL 0x00000001
854 #define PROGDLG_AUTOTIME 0x00000002
855 #define PROGDLG_NOTIME 0x00000004
856 #define PROGDLG_NOMINIMIZE 0x00000008
857 #define PROGDLG_NOPROGRESSBAR 0x00000010
858 #define PROGDLG_MARQUEEPROGRESS 0x00000020
859 #define PROGDLG_NOCANCEL 0x00000040
860
861 #define PDTIMER_RESET 0x00000001
862 #define PDTIMER_PAUSE 0x00000002
863 #define PDTIMER_RESUME 0x00000003
864
865 #define INTERFACE IProgressDialog
866 DECLARE_INTERFACE_(IProgressDialog,IUnknown)
867 {
868 /*** IUnknown methods ***/
869 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
870 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
871 STDMETHOD_(ULONG,Release) (THIS) PURE;
872 /*** IProgressDialog methods ***/
873 STDMETHOD(StartProgressDialog)(THIS_ _In_opt_ HWND hwndParent, _In_opt_ IUnknown *punkEnableModeless, DWORD dwFlags, _Reserved_ LPCVOID reserved) PURE;
874 STDMETHOD(StopProgressDialog)(THIS) PURE;
875 STDMETHOD(SetTitle)(THIS_ _In_ LPCWSTR pwzTitle) PURE;
876 STDMETHOD(SetAnimation)(THIS_ _In_opt_ HINSTANCE hInstance, UINT uiResourceId) PURE;
877 STDMETHOD_(BOOL,HasUserCancelled)(THIS) PURE;
878 STDMETHOD(SetProgress)(THIS_ DWORD dwCompleted, DWORD dwTotal) PURE;
879 STDMETHOD(SetProgress64)(THIS_ ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
880 STDMETHOD(SetLine)(THIS_ DWORD dwLineNum, _In_ LPCWSTR pwzString, BOOL bPath, _Reserved_ LPCVOID reserved) PURE;
881 STDMETHOD(SetCancelMsg)(THIS_ _In_ LPCWSTR pwzCancelMsg, _Reserved_ LPCVOID reserved) PURE;
882 STDMETHOD(Timer)(THIS_ DWORD dwTimerAction, _Reserved_ LPCVOID reserved) PURE;
883 };
884 #undef INTERFACE
885
886 #if !defined(__cplusplus) || defined(CINTERFACE)
887 /*** IUnknown methods ***/
888 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
889 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
890 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
891 /*** IProgressDialog methods ***/
892 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
893 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
894 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
895 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
896 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
897 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
898 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
899 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
900 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
901 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
902 #endif
903
904
905 /* IDeskBarClient interface */
906 #define INTERFACE IDeskBarClient
907 DECLARE_INTERFACE_(IDeskBarClient,IOleWindow)
908 {
909 /*** IUnknown methods ***/
910 STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
911 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
912 STDMETHOD_(ULONG,Release)(THIS) PURE;
913 /*** IOleWindow methods ***/
914 STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND*) PURE;
915 STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL) PURE;
916 /*** IDeskBarClient methods ***/
917 STDMETHOD_(HRESULT,SetDeskBarSite)(THIS_ _In_opt_ IUnknown*) PURE;
918 STDMETHOD_(HRESULT,SetModeDBC)(THIS_ DWORD) PURE;
919 STDMETHOD_(HRESULT,UIActivateDBC)(THIS_ DWORD) PURE;
920 STDMETHOD_(HRESULT,GetSize)(THIS_ DWORD, _Out_ LPRECT) PURE;
921 };
922 #undef INTERFACE
923
924 #if !defined(__cplusplus) || defined(CINTERFACE)
925 /*** IUnknown methods ***/
926 #define IDeskBarClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
927 #define IDeskBarClient_AddRef(p) (p)->lpVtbl->AddRef(p)
928 #define IDeskBarClient_Release(p) (p)->lpVtbl->Release(p)
929 /*** IOleWindow methods ***/
930 #define IDeskBarClient_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a)
931 #define IDeskBarClient_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a)
932 /*** IOleWindow IDeskBarClient ***/
933 #define IDeskBarClient_SetDeskBarSite(p,a) (p)->lpVtbl->SetDeskBarSite(p,a)
934 #define IDeskBarClient_SetModeDBC(p,a) (p)->lpVtbl->SetModeDBC(p,a)
935 #define IDeskBarClient_UIActivateDBC(p,a) (p)->lpVtbl->UIActivateDBC(p,a)
936 #define IDeskBarClient_GetSize(p,a,b) (p)->lpVtbl->GetSize(p,a,b)
937 #endif
938
939 #define DBC_GS_IDEAL 0
940 #define DBC_GS_SIZEDOWN 1
941
942 #define DBC_HIDE 0
943 #define DBC_SHOW 1
944 #define DBC_SHOWOBSCURE 2
945
946
947 /****************************************************************************
948 * SHAddToRecentDocs API
949 */
950 #define SHARD_PIDL 0x00000001L
951 #define SHARD_PATHA 0x00000002L
952 #define SHARD_PATHW 0x00000003L
953 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
954
955 void WINAPI SHAddToRecentDocs(UINT, _In_opt_ LPCVOID);
956
957 /****************************************************************************
958 * SHBrowseForFolder API
959 */
960 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
961
962 #include <pshpack8.h>
963
964 typedef struct tagBROWSEINFOA {
965 HWND hwndOwner;
966 LPCITEMIDLIST pidlRoot;
967 LPSTR pszDisplayName;
968 LPCSTR lpszTitle;
969 UINT ulFlags;
970 BFFCALLBACK lpfn;
971 LPARAM lParam;
972 INT iImage;
973 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
974
975 typedef struct tagBROWSEINFOW {
976 HWND hwndOwner;
977 LPCITEMIDLIST pidlRoot;
978 LPWSTR pszDisplayName;
979 LPCWSTR lpszTitle;
980 UINT ulFlags;
981 BFFCALLBACK lpfn;
982 LPARAM lParam;
983 INT iImage;
984 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
985
986 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
987 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
988 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
989
990 #include <poppack.h>
991
992 /* Browsing for directory. */
993 #define BIF_RETURNONLYFSDIRS 0x0001
994 #define BIF_DONTGOBELOWDOMAIN 0x0002
995 #define BIF_STATUSTEXT 0x0004
996 #define BIF_RETURNFSANCESTORS 0x0008
997 #define BIF_EDITBOX 0x0010
998 #define BIF_VALIDATE 0x0020
999 #define BIF_NEWDIALOGSTYLE 0x0040
1000 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
1001 #define BIF_BROWSEINCLUDEURLS 0x0080
1002 #define BIF_UAHINT 0x0100
1003 #define BIF_NONEWFOLDERBUTTON 0x0200
1004 #define BIF_NOTRANSLATETARGETS 0x0400
1005
1006 #define BIF_BROWSEFORCOMPUTER 0x1000
1007 #define BIF_BROWSEFORPRINTER 0x2000
1008 #define BIF_BROWSEINCLUDEFILES 0x4000
1009 #define BIF_SHAREABLE 0x8000
1010
1011 /* message from browser */
1012 #define BFFM_INITIALIZED 1
1013 #define BFFM_SELCHANGED 2
1014 #define BFFM_VALIDATEFAILEDA 3
1015 #define BFFM_VALIDATEFAILEDW 4
1016 #define BFFM_IUNKNOWN 5
1017
1018 /* messages to browser */
1019 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
1020 #define BFFM_ENABLEOK (WM_USER+101)
1021 #define BFFM_SETSELECTIONA (WM_USER+102)
1022 #define BFFM_SETSELECTIONW (WM_USER+103)
1023 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
1024 #define BFFM_SETOKTEXT (WM_USER+105)
1025 #define BFFM_SETEXPANDED (WM_USER+106)
1026
1027 LPITEMIDLIST WINAPI SHBrowseForFolderA(_In_ LPBROWSEINFOA lpbi);
1028 LPITEMIDLIST WINAPI SHBrowseForFolderW(_In_ LPBROWSEINFOW lpbi);
1029 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
1030
1031 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
1032 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
1033 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
1034
1035 /**********************************************************************
1036 * SHCreateShellFolderViewEx API
1037 */
1038
1039 typedef HRESULT
1040 (CALLBACK *LPFNVIEWCALLBACK)(
1041 _In_ IShellView* dwUser,
1042 _In_ IShellFolder* pshf,
1043 _In_ HWND hWnd,
1044 UINT uMsg,
1045 WPARAM wParam,
1046 LPARAM lParam);
1047
1048 #include <pshpack8.h>
1049
1050 typedef struct _CSFV
1051 {
1052 UINT cbSize;
1053 IShellFolder* pshf;
1054 IShellView* psvOuter;
1055 LPCITEMIDLIST pidl;
1056 LONG lEvents;
1057 LPFNVIEWCALLBACK pfnCallback;
1058 FOLDERVIEWMODE fvm;
1059 } CSFV, *LPCSFV;
1060
1061 #include <poppack.h>
1062
1063 HRESULT
1064 WINAPI
1065 SHCreateShellFolderViewEx(
1066 _In_ LPCSFV pshfvi,
1067 _Outptr_ IShellView **ppshv);
1068
1069 /* SHCreateShellFolderViewEx callback messages */
1070 #define SFVM_MERGEMENU 1
1071 #define SFVM_INVOKECOMMAND 2
1072 #define SFVM_GETHELPTEXT 3
1073 #define SFVM_GETTOOLTIPTEXT 4
1074 #define SFVM_GETBUTTONINFO 5
1075 #define SFVM_GETBUTTONS 6
1076 #define SFVM_INITMENUPOPUP 7
1077 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
1078 #define SFVM_DRAWMENUITEM 9 /* undocumented */
1079 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
1080 #define SFVM_EXITMENULOOP 11 /* undocumented */
1081 #define SFVM_VIEWRELEASE 12 /* undocumented */
1082 #define SFVM_GETNAMELENGTH 13 /* undocumented */
1083 #define SFVM_FSNOTIFY 14
1084 #define SFVM_WINDOWCREATED 15
1085 #define SFVM_WINDOWCLOSING 16 /* undocumented */
1086 #define SFVM_LISTREFRESHED 17 /* undocumented */
1087 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
1088 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
1089 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
1090 #define SFVM_GETDETAILSOF 23
1091 #define SFVM_COLUMNCLICK 24
1092 #define SFVM_QUERYFSNOTIFY 25
1093 #define SFVM_DEFITEMCOUNT 26
1094 #define SFVM_DEFVIEWMODE 27
1095 #define SFVM_UNMERGEFROMMENU 28
1096 #define SFVM_ADDINGOBJECT 29 /* undocumented */
1097 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
1098 #define SFVM_UPDATESTATUSBAR 31
1099 #define SFVM_BACKGROUNDENUM 32
1100 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
1101 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
1102 #define SFVM_CANSELECTALL 35 /* undocumented */
1103 #define SFVM_DIDDRAGDROP 36
1104 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
1105 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
1106 #define SFVM_SETISFV 39
1107 #define SFVM_GETEXTVIEWS 40 /* undocumented */
1108 #define SFVM_THISIDLIST 41
1109 #define SFVM_ADDPROPERTYPAGES 47
1110 #define SFVM_BACKGROUNDENUMDONE 48
1111 #define SFVM_GETNOTIFY 49
1112 #define SFVM_GETSORTDEFAULTS 53
1113 #define SFVM_SIZE 57
1114 #define SFVM_GETZONE 58
1115 #define SFVM_GETPANE 59
1116 #define SFVM_GETHELPTOPIC 63
1117 #define SFVM_GETANIMATION 68
1118 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
1119 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
1120 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
1121 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
1122 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
1123 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
1124 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
1125 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
1126
1127 #include <pshpack8.h>
1128
1129 typedef struct _SFV_CREATE
1130 {
1131 UINT cbSize;
1132 IShellFolder *pshf;
1133 IShellView *psvOuter;
1134 IShellFolderViewCB *psfvcb;
1135 } SFV_CREATE;
1136
1137 #include <poppack.h>
1138
1139 HRESULT
1140 WINAPI
1141 SHCreateShellFolderView(
1142 _In_ const SFV_CREATE *pscfv,
1143 _Outptr_ IShellView **ppsv);
1144
1145 /* Types and definitions for the SFM_* parameters */
1146 #include <pshpack8.h>
1147
1148 #define QCMINFO_PLACE_BEFORE 0
1149 #define QCMINFO_PLACE_AFTER 1
1150 typedef struct _QCMINFO_IDMAP_PLACEMENT
1151 {
1152 UINT id;
1153 UINT fFlags;
1154 } QCMINFO_IDMAP_PLACEMENT;
1155
1156 typedef struct _QCMINFO_IDMAP
1157 {
1158 UINT nMaxIds;
1159 QCMINFO_IDMAP_PLACEMENT pIdList[1];
1160 } QCMINFO_IDMAP;
1161
1162 typedef struct _QCMINFO
1163 {
1164 HMENU hmenu;
1165 UINT indexMenu;
1166 UINT idCmdFirst;
1167 UINT idCmdLast;
1168 QCMINFO_IDMAP const* pIdMap;
1169 } QCMINFO, *LPQCMINFO;
1170
1171 #define TBIF_DEFAULT 0x00000000
1172 #define TBIF_APPEND 0x00000000
1173 #define TBIF_PREPEND 0x00000001
1174 #define TBIF_REPLACE 0x00000002
1175 #define TBIF_INTERNETBAR 0x00010000
1176 #define TBIF_STANDARDTOOLBAR 0x00020000
1177 #define TBIF_NOTOOLBAR 0x00030000
1178
1179 typedef struct _TBINFO
1180 {
1181 UINT cbuttons;
1182 UINT uFlags;
1183 } TBINFO, *LPTBINFO;
1184
1185 #include <poppack.h>
1186
1187 /****************************************************************************
1188 * SHShellFolderView_Message API
1189 */
1190
1191 LRESULT
1192 WINAPI
1193 SHShellFolderView_Message(
1194 _In_ HWND hwndCabinet,
1195 UINT uMessage,
1196 LPARAM lParam);
1197
1198 /* SHShellFolderView_Message messages */
1199 #define SFVM_REARRANGE 0x0001
1200 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
1201 #define SFVM_ADDOBJECT 0x0003
1202 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
1203 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
1204 #define SFVM_REMOVEOBJECT 0x0006
1205 #define SFVM_UPDATEOBJECT 0x0007
1206 #define SFVM_SETREDRAW 0x0008 /* undocumented */
1207 #define SFVM_GETSELECTEDOBJECTS 0x0009
1208 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
1209 #define SFVM_MOVEICONS 0x000B /* undocumented */
1210 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
1211 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
1212 #define SFVM_SETITEMPOS 0x000E
1213 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
1214 #define SFVM_SETCLIPBOARD 0x0010
1215 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
1216 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
1217 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
1218 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
1219 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
1220 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
1221 #define SFVM_SETPOINTS 0x0017
1222
1223 /****************************************************************************
1224 * SHGetDataFromIDList API
1225 */
1226 #define SHGDFIL_FINDDATA 1
1227 #define SHGDFIL_NETRESOURCE 2
1228 #define SHGDFIL_DESCRIPTIONID 3
1229
1230 #define SHDID_ROOT_REGITEM 1
1231 #define SHDID_FS_FILE 2
1232 #define SHDID_FS_DIRECTORY 3
1233 #define SHDID_FS_OTHER 4
1234 #define SHDID_COMPUTER_DRIVE35 5
1235 #define SHDID_COMPUTER_DRIVE525 6
1236 #define SHDID_COMPUTER_REMOVABLE 7
1237 #define SHDID_COMPUTER_FIXED 8
1238 #define SHDID_COMPUTER_NETDRIVE 9
1239 #define SHDID_COMPUTER_CDROM 10
1240 #define SHDID_COMPUTER_RAMDISK 11
1241 #define SHDID_COMPUTER_OTHER 12
1242 #define SHDID_NET_DOMAIN 13
1243 #define SHDID_NET_SERVER 14
1244 #define SHDID_NET_SHARE 15
1245 #define SHDID_NET_RESTOFNET 16
1246 #define SHDID_NET_OTHER 17
1247 #define SHDID_COMPUTER_IMAGING 18
1248 #define SHDID_COMPUTER_AUDIO 19
1249 #define SHDID_COMPUTER_SHAREDDOCS 20
1250
1251 #include <pshpack8.h>
1252
1253 typedef struct _SHDESCRIPTIONID
1254 { DWORD dwDescriptionId;
1255 CLSID clsid;
1256 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
1257
1258 #include <poppack.h>
1259
1260 HRESULT
1261 WINAPI
1262 SHGetDataFromIDListA(
1263 _In_ LPSHELLFOLDER psf,
1264 _In_ LPCITEMIDLIST pidl,
1265 int nFormat,
1266 _Out_writes_bytes_(cb) LPVOID pv,
1267 int cb);
1268
1269 HRESULT
1270 WINAPI
1271 SHGetDataFromIDListW(
1272 _In_ LPSHELLFOLDER psf,
1273 _In_ LPCITEMIDLIST pidl,
1274 int nFormat,
1275 _Out_writes_bytes_(cb) LPVOID pv,
1276 int cb);
1277
1278 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
1279
1280 LPITEMIDLIST
1281 WINAPI
1282 SHCloneSpecialIDList(
1283 _Reserved_ HWND hwnd,
1284 _In_ int csidl,
1285 _In_ BOOL fCreate);
1286
1287 _Success_(return != 0)
1288 BOOL
1289 WINAPI
1290 SHGetSpecialFolderPathA(
1291 _Reserved_ HWND hwndOwner,
1292 _Out_writes_(MAX_PATH) LPSTR szPath,
1293 _In_ int nFolder,
1294 _In_ BOOL bCreate);
1295
1296 _Success_(return != 0)
1297 BOOL
1298 WINAPI
1299 SHGetSpecialFolderPathW(
1300 _Reserved_ HWND hwndOwner,
1301 _Out_writes_(MAX_PATH) LPWSTR szPath,
1302 _In_ int nFolder,
1303 _In_ BOOL bCreate);
1304
1305 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
1306
1307 _Check_return_ HRESULT WINAPI SHGetMalloc(_Outptr_ LPMALLOC *lpmal);
1308
1309 /**********************************************************************
1310 * SHGetSetSettings ()
1311 */
1312
1313 typedef struct
1314 {
1315 BOOL fShowAllObjects : 1;
1316 BOOL fShowExtensions : 1;
1317 BOOL fNoConfirmRecycle : 1;
1318
1319 BOOL fShowSysFiles : 1;
1320 BOOL fShowCompColor : 1;
1321 BOOL fDoubleClickInWebView : 1;
1322 BOOL fDesktopHTML : 1;
1323 BOOL fWin95Classic : 1;
1324 BOOL fDontPrettyPath : 1;
1325 BOOL fShowAttribCol : 1;
1326 BOOL fMapNetDrvBtn : 1;
1327 BOOL fShowInfoTip : 1;
1328 BOOL fHideIcons : 1;
1329 BOOL fWebView : 1;
1330 BOOL fFilter : 1;
1331 BOOL fShowSuperHidden : 1;
1332 BOOL fNoNetCrawling : 1;
1333
1334 UINT :15; /* Required for proper binary layout with gcc */
1335 DWORD dwWin95Unused;
1336 UINT uWin95Unused;
1337 LONG lParamSort;
1338 int iSortDirection;
1339 UINT version;
1340 UINT uNotUsed;
1341 BOOL fSepProcess: 1;
1342 BOOL fStartPanelOn: 1;
1343 BOOL fShowStartPage: 1;
1344 UINT fSpareFlags : 13;
1345 UINT :15; /* Required for proper binary layout with gcc */
1346 } SHELLSTATE, *LPSHELLSTATE;
1347
1348 /**********************************************************************
1349 * SHGetSettings ()
1350 */
1351 typedef struct
1352 { BOOL fShowAllObjects : 1;
1353 BOOL fShowExtensions : 1;
1354 BOOL fNoConfirmRecycle : 1;
1355 BOOL fShowSysFiles : 1;
1356
1357 BOOL fShowCompColor : 1;
1358 BOOL fDoubleClickInWebView : 1;
1359 BOOL fDesktopHTML : 1;
1360 BOOL fWin95Classic : 1;
1361
1362 BOOL fDontPrettyPath : 1;
1363 BOOL fShowAttribCol : 1;
1364 BOOL fMapNetDrvBtn : 1;
1365 BOOL fShowInfoTip : 1;
1366
1367 BOOL fHideIcons : 1;
1368 UINT fRestFlags : 3;
1369 UINT :15; /* Required for proper binary layout with gcc */
1370 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
1371
1372 VOID WINAPI SHGetSettings(_Out_ LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
1373
1374 #define SSF_SHOWALLOBJECTS 0x0001
1375 #define SSF_SHOWEXTENSIONS 0x0002
1376 #define SSF_SHOWCOMPCOLOR 0x0008
1377 #define SSF_SHOWSYSFILES 0x0020
1378 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
1379 #define SSF_SHOWATTRIBCOL 0x0100
1380 #define SSF_DESKTOPHTML 0x0200
1381 #define SSF_WIN95CLASSIC 0x0400
1382 #define SSF_DONTPRETTYPATH 0x0800
1383 #define SSF_SHOWINFOTIP 0x2000
1384 #define SSF_MAPNETDRVBUTTON 0x1000
1385 #define SSF_NOCONFIRMRECYCLE 0x8000
1386 #define SSF_HIDEICONS 0x4000
1387
1388 /****************************************************************************
1389 * SHRestricted API
1390 */
1391 typedef enum RESTRICTIONS
1392 {
1393 REST_NONE = 0x00000000,
1394 REST_NORUN = 0x00000001,
1395 REST_NOCLOSE = 0x00000002,
1396 REST_NOSAVESET = 0x00000004,
1397 REST_NOFILEMENU = 0x00000008,
1398 REST_NOSETFOLDERS = 0x00000010,
1399 REST_NOSETTASKBAR = 0x00000020,
1400 REST_NODESKTOP = 0x00000040,
1401 REST_NOFIND = 0x00000080,
1402 REST_NODRIVES = 0x00000100,
1403 REST_NODRIVEAUTORUN = 0x00000200,
1404 REST_NODRIVETYPEAUTORUN = 0x00000400,
1405 REST_NONETHOOD = 0x00000800,
1406 REST_STARTBANNER = 0x00001000,
1407 REST_RESTRICTRUN = 0x00002000,
1408 REST_NOPRINTERTABS = 0x00004000,
1409 REST_NOPRINTERDELETE = 0x00008000,
1410 REST_NOPRINTERADD = 0x00010000,
1411 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
1412 REST_MYDOCSONNET = 0x00040000,
1413 REST_NOEXITTODOS = 0x00080000,
1414 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
1415 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
1416 REST_NOCOMMONGROUPS = 0x00400000,
1417 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
1418 REST_NOWEB = 0x01000000,
1419 REST_NOTRAYCONTEXTMENU = 0x02000000,
1420 REST_NOVIEWCONTEXTMENU = 0x04000000,
1421 REST_NONETCONNECTDISCONNECT = 0x08000000,
1422 REST_STARTMENULOGOFF = 0x10000000,
1423 REST_NOSETTINGSASSIST = 0x20000000,
1424 REST_NOINTERNETICON = 0x40000001,
1425 REST_NORECENTDOCSHISTORY,
1426 REST_NORECENTDOCSMENU,
1427 REST_NOACTIVEDESKTOP,
1428 REST_NOACTIVEDESKTOPCHANGES,
1429 REST_NOFAVORITESMENU,
1430 REST_CLEARRECENTDOCSONEXIT,
1431 REST_CLASSICSHELL,
1432 REST_NOCUSTOMIZEWEBVIEW,
1433
1434 REST_NOHTMLWALLPAPER = 0x40000010,
1435 REST_NOCHANGINGWALLPAPER,
1436 REST_NODESKCOMP,
1437 REST_NOADDDESKCOMP,
1438 REST_NODELDESKCOMP,
1439 REST_NOCLOSEDESKCOMP,
1440 REST_NOCLOSE_DRAGDROPBAND,
1441 REST_NOMOVINGBAND,
1442 REST_NOEDITDESKCOMP,
1443 REST_NORESOLVESEARCH,
1444 REST_NORESOLVETRACK,
1445 REST_FORCECOPYACLWITHFILE,
1446 #if (NTDDI_VERSION < NTDDI_LONGHORN)
1447 REST_NOLOGO3CHANNELNOTIFY = 0x4000001C,
1448 #endif
1449 REST_NOFORGETSOFTWAREUPDATE = 0x4000001D,
1450 REST_NOSETACTIVEDESKTOP,
1451 REST_NOUPDATEWINDOWS,
1452 REST_NOCHANGESTARMENU, /* 0x40000020 */
1453 REST_NOFOLDEROPTIONS,
1454 REST_HASFINDCOMPUTERS,
1455 REST_INTELLIMENUS,
1456 REST_RUNDLGMEMCHECKBOX,
1457 REST_ARP_ShowPostSetup,
1458 REST_NOCSC,
1459 REST_NOCONTROLPANEL,
1460 REST_ENUMWORKGROUP,
1461 REST_ARP_NOARP,
1462 REST_ARP_NOREMOVEPAGE,
1463 REST_ARP_NOADDPAGE,
1464 REST_ARP_NOWINSETUPPAGE,
1465 REST_GREYMSIADS,
1466 REST_NOCHANGEMAPPEDDRIVELABEL,
1467 REST_NOCHANGEMAPPEDDRIVECOMMENT,
1468 REST_MaxRecentDocs, /* 0x40000030 */
1469 REST_NONETWORKCONNECTIONS,
1470 REST_FORCESTARTMENULOGOFF,
1471 REST_NOWEBVIEW,
1472 REST_NOCUSTOMIZETHISFOLDER,
1473 REST_NOENCRYPTION,
1474
1475 REST_ALLOWFRENCHENCRYPTION, /* not documented */
1476
1477 REST_DONTSHOWSUPERHIDDEN,
1478 REST_NOSHELLSEARCHBUTTON,
1479 REST_NOHARDWARETAB,
1480 REST_NORUNASINSTALLPROMPT,
1481 REST_PROMPTRUNASINSTALLNETPATH,
1482 REST_NOMANAGEMYCOMPUTERVERB,
1483 REST_NORECENTDOCSNETHOOD,
1484 REST_DISALLOWRUN,
1485 REST_NOWELCOMESCREEN,
1486 REST_RESTRICTCPL, /* 0x40000040 */
1487 REST_DISALLOWCPL,
1488 REST_NOSMBALLOONTIP,
1489 REST_NOSMHELP,
1490 REST_NOWINKEYS,
1491 REST_NOENCRYPTONMOVE,
1492 REST_NOLOCALMACHINERUN,
1493 REST_NOCURRENTUSERRUN,
1494 REST_NOLOCALMACHINERUNONCE,
1495 REST_NOCURRENTUSERRUNONCE,
1496 REST_FORCEACTIVEDESKTOPON,
1497 REST_NOCOMPUTERSNEARME,
1498 REST_NOVIEWONDRIVE,
1499 REST_NONETCRAWL,
1500 REST_NOSHAREDDOCUMENTS,
1501 REST_NOSMMYDOCS,
1502 REST_NOSMMYPICS, /* 0x40000050 */
1503 REST_ALLOWBITBUCKDRIVES,
1504 REST_NONLEGACYSHELLMODE,
1505 REST_NOCONTROLPANELBARRICADE,
1506 REST_NOSTARTPAGE,
1507 REST_NOAUTOTRAYNOTIFY,
1508 REST_NOTASKGROUPING,
1509 REST_NOCDBURNING,
1510 REST_MYCOMPNOPROP,
1511 REST_MYDOCSNOPROP,
1512 REST_NOSTARTPANEL,
1513 REST_NODISPLAYAPPEARANCEPAGE,
1514 REST_NOTHEMESTAB,
1515 REST_NOVISUALSTYLECHOICE,
1516 REST_NOSIZECHOICE,
1517 REST_NOCOLORCHOICE,
1518 REST_SETVISUALSTYLE, /* 0x40000060 */
1519 REST_STARTRUNNOHOMEPATH,
1520 REST_NOUSERNAMEINSTARTPANEL,
1521 REST_NOMYCOMPUTERICON,
1522 REST_NOSMNETWORKPLACES,
1523 REST_NOSMPINNEDLIST,
1524 REST_NOSMMYMUSIC,
1525 REST_NOSMEJECTPC,
1526 REST_NOSMMOREPROGRAMS,
1527 REST_NOSMMFUPROGRAMS,
1528 REST_NOTRAYITEMSDISPLAY,
1529 REST_NOTOOLBARSONTASKBAR,
1530 /* 0x4000006C
1531 0x4000006D
1532 0x4000006E */
1533 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
1534 REST_HIDECLOCK, /* 0x40000070 */
1535 REST_NOLOWDISKSPACECHECKS,
1536 REST_NOENTIRENETWORK,
1537 REST_NODESKTOPCLEANUP,
1538 REST_BITBUCKNUKEONDELETE,
1539 REST_BITBUCKCONFIRMDELETE,
1540 REST_BITBUCKNOPROP,
1541 REST_NODISPBACKGROUND,
1542 REST_NODISPSCREENSAVEPG,
1543 REST_NODISPSETTINGSPG,
1544 REST_NODISPSCREENSAVEPREVIEW,
1545 REST_NODISPLAYCPL,
1546 REST_HIDERUNASVERB,
1547 REST_NOTHUMBNAILCACHE,
1548 REST_NOSTRCMPLOGICAL,
1549 REST_NOPUBLISHWIZARD,
1550 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
1551 REST_NOWEBSERVICES,
1552 REST_ALLOWUNHASHEDWEBVIEW,
1553 REST_ALLOWLEGACYWEBVIEW,
1554 REST_REVERTWEBVIEWSECURITY,
1555
1556 REST_INHERITCONSOLEHANDLES = 0x40000086,
1557
1558 REST_NODISCONNECT = 0x41000001,
1559 REST_NOSECURITY,
1560 REST_NOFILEASSOCIATE, /* 0x41000003 */
1561 } RESTRICTIONS;
1562
1563 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
1564
1565 /****************************************************************************
1566 * SHChangeNotify API
1567 */
1568 typedef struct _SHChangeNotifyEntry
1569 {
1570 LPCITEMIDLIST pidl;
1571 BOOL fRecursive;
1572 } SHChangeNotifyEntry;
1573
1574 #define SHCNE_RENAMEITEM 0x00000001
1575 #define SHCNE_CREATE 0x00000002
1576 #define SHCNE_DELETE 0x00000004
1577 #define SHCNE_MKDIR 0x00000008
1578 #define SHCNE_RMDIR 0x00000010
1579 #define SHCNE_MEDIAINSERTED 0x00000020
1580 #define SHCNE_MEDIAREMOVED 0x00000040
1581 #define SHCNE_DRIVEREMOVED 0x00000080
1582 #define SHCNE_DRIVEADD 0x00000100
1583 #define SHCNE_NETSHARE 0x00000200
1584 #define SHCNE_NETUNSHARE 0x00000400
1585 #define SHCNE_ATTRIBUTES 0x00000800
1586 #define SHCNE_UPDATEDIR 0x00001000
1587 #define SHCNE_UPDATEITEM 0x00002000
1588 #define SHCNE_SERVERDISCONNECT 0x00004000
1589 #define SHCNE_UPDATEIMAGE 0x00008000
1590 #define SHCNE_DRIVEADDGUI 0x00010000
1591 #define SHCNE_RENAMEFOLDER 0x00020000
1592 #define SHCNE_FREESPACE 0x00040000
1593
1594 #define SHCNE_EXTENDED_EVENT 0x04000000
1595 #define SHCNE_ASSOCCHANGED 0x08000000
1596 #define SHCNE_DISKEVENTS 0x0002381F
1597 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1598 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1599 #define SHCNE_INTERRUPT 0x80000000
1600
1601 #define SHCNEE_ORDERCHANGED 0x0002L
1602 #define SHCNEE_MSI_CHANGE 0x0004L
1603 #define SHCNEE_MSI_UNINSTALL 0x0005L
1604
1605 #define SHCNF_IDLIST 0x0000
1606 #define SHCNF_PATHA 0x0001
1607 #define SHCNF_PRINTERA 0x0002
1608 #define SHCNF_DWORD 0x0003
1609 #define SHCNF_PATHW 0x0005
1610 #define SHCNF_PRINTERW 0x0006
1611 #define SHCNF_TYPE 0x00FF
1612 #define SHCNF_FLUSH 0x1000
1613 #define SHCNF_FLUSHNOWAIT 0x3000
1614 #define SHCNF_NOTIFYRECURSIVE 0x10000
1615
1616 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1617 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1618
1619 #define SHCNRF_InterruptLevel 0x0001
1620 #define SHCNRF_ShellLevel 0x0002
1621 #define SHCNRF_RecursiveInterrupt 0x1000
1622 #define SHCNRF_NewDelivery 0x8000
1623
1624 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
1625
1626 typedef enum {
1627 SLDF_DEFAULT = 0x00000000,
1628 SLDF_HAS_ID_LIST = 0x00000001,
1629 SLDF_HAS_LINK_INFO = 0x00000002,
1630 SLDF_HAS_NAME = 0x00000004,
1631 SLDF_HAS_RELPATH = 0x00000008,
1632 SLDF_HAS_WORKINGDIR = 0x00000010,
1633 SLDF_HAS_ARGS = 0x00000020,
1634 SLDF_HAS_ICONLOCATION = 0x00000040,
1635 SLDF_UNICODE = 0x00000080,
1636 SLDF_FORCE_NO_LINKINFO = 0x00000100,
1637 SLDF_HAS_EXP_SZ = 0x00000200,
1638 SLDF_RUN_IN_SEPARATE = 0x00000400,
1639 #if (NTDDI_VERSION < NTDDI_LONGHORN)
1640 SLDF_HAS_LOGO3ID = 0x00000800,
1641 #endif
1642 SLDF_HAS_DARWINID = 0x00001000,
1643 SLDF_RUNAS_USER = 0x00002000,
1644 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
1645 SLDF_NO_PIDL_ALIAS = 0x00008000,
1646 SLDF_FORCE_UNCNAME = 0x00010000,
1647 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
1648 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
1649 SLDF_FORCE_NO_LINKTRACK = 0x00040000,
1650 SLDF_ENABLE_TARGET_METADATA = 0x00080000,
1651 SLDF_DISABLE_LINK_PATH_TRACKING = 0x00100000,
1652 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING = 0x00200000,
1653 #if (NTDDI_VERSION >= NTDDI_WIN7)
1654 SLDF_NO_KF_ALIAS = 0x00400000,
1655 SLDF_ALLOW_LINK_TO_LINK = 0x00800000,
1656 SLDF_UNALIAS_ON_SAVE = 0x01000000,
1657 SLDF_PREFER_ENVIRONMENT_PATH = 0x02000000,
1658 SLDF_KEEP_LOCAL_IDLIST_FOR_UNC_TARGET = 0x04000000,
1659 #if (NTDDI_VERSION >= NTDDI_WIN8)
1660 SLDF_PERSIST_VOLUME_ID_RELATIVE = 0x08000000,
1661 SLDF_VALID = 0x0ffff7ff, /* Windows 8 */
1662 #else
1663 SLDF_VALID = 0x07fff7ff, /* Windows 7 */
1664 #endif
1665 #else
1666 SLDF_VALID = 0x003ff7ff, /* Windows Vista */
1667 #endif
1668 #endif
1669 SLDF_RESERVED = 0x80000000,
1670 } SHELL_LINK_DATA_FLAGS;
1671
1672 typedef struct tagDATABLOCKHEADER
1673 {
1674 DWORD cbSize;
1675 DWORD dwSignature;
1676 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
1677
1678 #ifdef LF_FACESIZE
1679 typedef struct {
1680 DATABLOCK_HEADER dbh;
1681 WORD wFillAttribute;
1682 WORD wPopupFillAttribute;
1683 COORD dwScreenBufferSize;
1684 COORD dwWindowSize;
1685 COORD dwWindowOrigin;
1686 DWORD nFont;
1687 DWORD nInputBufferSize;
1688 COORD dwFontSize;
1689 UINT uFontFamily;
1690 UINT uFontWeight;
1691 WCHAR FaceName[LF_FACESIZE];
1692 UINT uCursorSize;
1693 BOOL bFullScreen;
1694 BOOL bQuickEdit;
1695 BOOL bInsertMode;
1696 BOOL bAutoPosition;
1697 UINT uHistoryBufferSize;
1698 UINT uNumberOfHistoryBuffers;
1699 BOOL bHistoryNoDup;
1700 COLORREF ColorTable[16];
1701 } NT_CONSOLE_PROPS, *LPNT_CONSOLE_PROPS;
1702 #endif
1703
1704 typedef struct {
1705 DATABLOCK_HEADER dbh;
1706 UINT uCodePage;
1707 } NT_FE_CONSOLE_PROPS, *LPNT_FE_CONSOLE_PROPS;
1708
1709 typedef struct {
1710 DWORD cbSize;
1711 DWORD dwSignature;
1712 CHAR szTarget[MAX_PATH];
1713 WCHAR szwTarget[MAX_PATH];
1714 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
1715
1716 typedef struct {
1717 DATABLOCK_HEADER dbh;
1718 CHAR szDarwinID[MAX_PATH];
1719 WCHAR szwDarwinID[MAX_PATH];
1720 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
1721
1722 typedef struct {
1723 DWORD cbSize;
1724 DWORD dwSignature;
1725 DWORD idSpecialFolder;
1726 DWORD cbOffset;
1727 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
1728
1729 typedef struct {
1730 DWORD cbSize;
1731 DWORD dwSignature;
1732 BYTE abPropertyStorage[1];
1733 } EXP_PROPERTYSTORAGE;
1734
1735 #define EXP_SZ_LINK_SIG 0xA0000001 /* EXP_SZ_LINK */
1736 #define NT_CONSOLE_PROPS_SIG 0xA0000002 /* NT_CONSOLE_PROPS */
1737 #define NT_FE_CONSOLE_PROPS_SIG 0xA0000004 /* NT_FE_CONSOLE_PROPS */
1738 #define EXP_SPECIAL_FOLDER_SIG 0xA0000005 /* EXP_SPECIAL_FOLDER */
1739 #define EXP_DARWIN_ID_SIG 0xA0000006 /* EXP_DARWIN_LINK */
1740 #if (NTDDI_VERSION < NTDDI_LONGHORN)
1741 #define EXP_LOGO3_ID_SIG 0xA0000007 /* EXP_DARWIN_LINK, for Logo3 / MS Internet Component Download (MSICD) shortcuts; old SDKs only (deprecated) */
1742 #endif
1743 #define EXP_SZ_ICON_SIG 0xA0000007 /* EXP_SZ_LINK */
1744 #define EXP_PROPERTYSTORAGE_SIG 0xA0000009 /* EXP_PROPERTYSTORAGE */
1745
1746 typedef struct _SHChangeDWORDAsIDList {
1747 USHORT cb;
1748 DWORD dwItem1;
1749 DWORD dwItem2;
1750 USHORT cbZero;
1751 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
1752
1753 typedef struct _SHChangeProductKeyAsIDList {
1754 USHORT cb;
1755 WCHAR wszProductKey[39];
1756 USHORT cbZero;
1757 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
1758
1759 ULONG
1760 WINAPI
1761 SHChangeNotifyRegister(
1762 _In_ HWND hwnd,
1763 int fSources,
1764 LONG fEvents,
1765 UINT wMsg,
1766 int cEntries,
1767 _In_ SHChangeNotifyEntry *pshcne);
1768
1769 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
1770
1771 HANDLE
1772 WINAPI
1773 SHChangeNotification_Lock(
1774 _In_ HANDLE hChangeNotification,
1775 DWORD dwProcessId,
1776 _Outptr_opt_result_buffer_(2)_Outptr_opt_result_buffer_(2) LPITEMIDLIST **pppidl,
1777 _Out_opt_ LONG *plEvent);
1778
1779 BOOL WINAPI SHChangeNotification_Unlock(_In_ HANDLE hLock);
1780
1781 HRESULT
1782 WINAPI
1783 SHGetRealIDL(
1784 _In_ IShellFolder *psf,
1785 _In_ LPCITEMIDLIST pidlSimple,
1786 _Outptr_ LPITEMIDLIST * ppidlReal);
1787
1788 /****************************************************************************
1789 * SHCreateDirectory API
1790 */
1791 int WINAPI SHCreateDirectory(_In_opt_ HWND, _In_ LPCWSTR);
1792
1793 int
1794 WINAPI
1795 SHCreateDirectoryExA(
1796 _In_opt_ HWND,
1797 _In_ LPCSTR,
1798 _In_opt_ LPSECURITY_ATTRIBUTES);
1799
1800 int
1801 WINAPI
1802 SHCreateDirectoryExW(
1803 _In_opt_ HWND,
1804 _In_ LPCWSTR,
1805 _In_opt_ LPSECURITY_ATTRIBUTES);
1806
1807 #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
1808
1809 /****************************************************************************
1810 * SHGetSpecialFolderLocation API
1811 */
1812 _Check_return_
1813 HRESULT
1814 WINAPI
1815 SHGetSpecialFolderLocation(
1816 _Reserved_ HWND hwndOwner,
1817 _In_ int nFolder,
1818 _Outptr_ LPITEMIDLIST *ppidl);
1819
1820 HRESULT
1821 WINAPI
1822 SHGetFolderLocation(
1823 _Reserved_ HWND hwndOwner,
1824 _In_ int nFolder,
1825 _In_opt_ HANDLE hToken,
1826 _In_ DWORD dwReserved,
1827 _Outptr_ LPITEMIDLIST *ppidl);
1828
1829 /****************************************************************************
1830 * SHGetFolderPath API
1831 */
1832 typedef enum {
1833 SHGFP_TYPE_CURRENT = 0,
1834 SHGFP_TYPE_DEFAULT = 1
1835 } SHGFP_TYPE;
1836
1837 HRESULT
1838 WINAPI
1839 SHGetFolderPathA(
1840 _Reserved_ HWND hwnd,
1841 _In_ int nFolder,
1842 _In_opt_ HANDLE hToken,
1843 _In_ DWORD dwFlags,
1844 _Out_writes_(MAX_PATH) LPSTR pszPath);
1845
1846 HRESULT
1847 WINAPI
1848 SHGetFolderPathW(
1849 _Reserved_ HWND hwnd,
1850 _In_ int nFolder,
1851 _In_opt_ HANDLE hToken,
1852 _In_ DWORD dwFlags,
1853 _Out_writes_(MAX_PATH) LPWSTR pszPath);
1854
1855 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1856
1857 #define CSIDL_DESKTOP 0x0000
1858 #define CSIDL_INTERNET 0x0001
1859 #define CSIDL_PROGRAMS 0x0002
1860 #define CSIDL_CONTROLS 0x0003
1861 #define CSIDL_PRINTERS 0x0004
1862 #define CSIDL_PERSONAL 0x0005
1863 #define CSIDL_FAVORITES 0x0006
1864 #define CSIDL_STARTUP 0x0007
1865 #define CSIDL_RECENT 0x0008
1866 #define CSIDL_SENDTO 0x0009
1867 #define CSIDL_BITBUCKET 0x000a
1868 #define CSIDL_STARTMENU 0x000b
1869 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1870 #define CSIDL_MYMUSIC 0x000d
1871 #define CSIDL_MYVIDEO 0x000e
1872 #define CSIDL_DESKTOPDIRECTORY 0x0010
1873 #define CSIDL_DRIVES 0x0011
1874 #define CSIDL_NETWORK 0x0012
1875 #define CSIDL_NETHOOD 0x0013
1876 #define CSIDL_FONTS 0x0014
1877 #define CSIDL_TEMPLATES 0x0015
1878 #define CSIDL_COMMON_STARTMENU 0x0016
1879 #define CSIDL_COMMON_PROGRAMS 0X0017
1880 #define CSIDL_COMMON_STARTUP 0x0018
1881 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1882 #define CSIDL_APPDATA 0x001a
1883 #define CSIDL_PRINTHOOD 0x001b
1884 #define CSIDL_LOCAL_APPDATA 0x001c
1885 #define CSIDL_ALTSTARTUP 0x001d
1886 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1887 #define CSIDL_COMMON_FAVORITES 0x001f
1888 #define CSIDL_INTERNET_CACHE 0x0020
1889 #define CSIDL_COOKIES 0x0021
1890 #define CSIDL_HISTORY 0x0022
1891 #define CSIDL_COMMON_APPDATA 0x0023
1892 #define CSIDL_WINDOWS 0x0024
1893 #define CSIDL_SYSTEM 0x0025
1894 #define CSIDL_PROGRAM_FILES 0x0026
1895 #define CSIDL_MYPICTURES 0x0027
1896 #define CSIDL_PROFILE 0x0028
1897 #define CSIDL_SYSTEMX86 0x0029
1898 #define CSIDL_PROGRAM_FILESX86 0x002a
1899 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1900 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1901 #define CSIDL_COMMON_TEMPLATES 0x002d
1902 #define CSIDL_COMMON_DOCUMENTS 0x002e
1903 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1904 #define CSIDL_ADMINTOOLS 0x0030
1905 #define CSIDL_CONNECTIONS 0x0031
1906 #define CSIDL_COMMON_MUSIC 0x0035
1907 #define CSIDL_COMMON_PICTURES 0x0036
1908 #define CSIDL_COMMON_VIDEO 0x0037
1909 #define CSIDL_RESOURCES 0x0038
1910 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1911 #define CSIDL_COMMON_OEM_LINKS 0x003a
1912 #define CSIDL_CDBURN_AREA 0x003b
1913 #define CSIDL_COMPUTERSNEARME 0x003d
1914 #define CSIDL_PROFILES 0x003e
1915 #define CSIDL_FOLDER_MASK 0x00ff
1916 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1917 #define CSIDL_FLAG_NO_ALIAS 0x1000
1918 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1919 #define CSIDL_FLAG_CREATE 0x8000
1920
1921 #define CSIDL_FLAG_MASK 0xff00
1922
1923 /****************************************************************************
1924 * SHGetDesktopFolder API
1925 */
1926 _Check_return_ HRESULT WINAPI SHGetDesktopFolder(_Outptr_ IShellFolder * *);
1927
1928 /****************************************************************************
1929 * SHBindToParent API
1930 */
1931 HRESULT
1932 WINAPI
1933 SHBindToParent(
1934 _In_ LPCITEMIDLIST pidl,
1935 _In_ REFIID riid,
1936 _Outptr_ LPVOID *ppv,
1937 _Outptr_opt_ LPCITEMIDLIST *ppidlLast);
1938
1939 /****************************************************************************
1940 * SHDefExtractIcon API
1941 */
1942 HRESULT
1943 WINAPI
1944 SHDefExtractIconA(
1945 _In_ LPCSTR pszIconFile,
1946 int iIndex,
1947 UINT uFlags,
1948 _Out_opt_ HICON* phiconLarge,
1949 _Out_opt_ HICON* phiconSmall,
1950 UINT nIconSize);
1951
1952 HRESULT
1953 WINAPI
1954 SHDefExtractIconW(
1955 _In_ LPCWSTR pszIconFile,
1956 int iIndex,
1957 UINT uFlags,
1958 _Out_opt_ HICON* phiconLarge,
1959 _Out_opt_ HICON* phiconSmall,
1960 UINT nIconSize);
1961
1962 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1963
1964 /*
1965 * DROPFILES for CF_HDROP and CF_PRINTERS
1966 */
1967 typedef struct _DROPFILES
1968 {
1969 DWORD pFiles;
1970 POINT pt;
1971 BOOL fNC;
1972 BOOL fWide;
1973 } DROPFILES, *LPDROPFILES;
1974
1975 /*
1976 * Properties of a file in the clipboard
1977 */
1978 typedef struct _FILEDESCRIPTORA {
1979 DWORD dwFlags;
1980 CLSID clsid;
1981 SIZEL sizel;
1982 POINTL pointl;
1983 DWORD dwFileAttributes;
1984 FILETIME ftCreationTime;
1985 FILETIME ftLastAccessTime;
1986 FILETIME ftLastWriteTime;
1987 DWORD nFileSizeHigh;
1988 DWORD nFileSizeLow;
1989 CHAR cFileName[MAX_PATH];
1990 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1991
1992 typedef struct _FILEDESCRIPTORW {
1993 DWORD dwFlags;
1994 CLSID clsid;
1995 SIZEL sizel;
1996 POINTL pointl;
1997 DWORD dwFileAttributes;
1998 FILETIME ftCreationTime;
1999 FILETIME ftLastAccessTime;
2000 FILETIME ftLastWriteTime;
2001 DWORD nFileSizeHigh;
2002 DWORD nFileSizeLow;
2003 WCHAR cFileName[MAX_PATH];
2004 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
2005
2006 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
2007 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
2008
2009 /*
2010 * CF_FILEGROUPDESCRIPTOR clipboard format
2011 */
2012 typedef struct _FILEGROUPDESCRIPTORA {
2013 UINT cItems;
2014 FILEDESCRIPTORA fgd[1];
2015 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
2016
2017 typedef struct _FILEGROUPDESCRIPTORW {
2018 UINT cItems;
2019 FILEDESCRIPTORW fgd[1];
2020 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
2021
2022 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
2023 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
2024
2025 /****************************************************************************
2026 * Cabinet functions
2027 */
2028
2029 typedef struct {
2030 WORD cLength;
2031 WORD nVersion;
2032 BOOL fFullPathTitle:1;
2033 BOOL fSaveLocalView:1;
2034 BOOL fNotShell:1;
2035 BOOL fSimpleDefault:1;
2036 BOOL fDontShowDescBar:1;
2037 BOOL fNewWindowMode:1;
2038 BOOL fShowCompColor:1;
2039 BOOL fDontPrettyNames:1;
2040 BOOL fAdminsCreateCommonGroups:1;
2041 UINT fUnusedFlags:7;
2042 UINT :15; /* Required for proper binary layout with gcc */
2043 UINT fMenuEnumFilter;
2044 } CABINETSTATE, *LPCABINETSTATE;
2045
2046 #define CABINETSTATE_VERSION 2
2047
2048 BOOL
2049 WINAPI
2050 ReadCabinetState(
2051 _Out_writes_bytes_(cLength) CABINETSTATE *,
2052 int cLength);
2053
2054 BOOL WINAPI WriteCabinetState(_In_ CABINETSTATE *);
2055
2056 /****************************************************************************
2057 * Path Manipulation Routines
2058 */
2059
2060 /* PathProcessCommand flags */
2061 #define PPCF_ADDQUOTES 0x01
2062 #define PPCF_INCLUDEARGS 0x02
2063 #define PPCF_ADDARGUMENTS 0x03
2064 #define PPCF_NODIRECTORIES 0x10
2065 #define PPCF_DONTRESOLVE 0x20
2066 #define PPCF_FORCEQUALIFY 0x40
2067 #define PPCF_LONGESTPOSSIBLE 0x80
2068
2069 /* PathResolve flags */
2070 #define PRF_VERIFYEXISTS 0x01
2071 #define PRF_EXECUTABLE 0x02
2072 #define PRF_TRYPROGRAMEXTENSIONS (PRF_EXECUTABLE | PRF_VERIFYEXISTS)
2073 #define PRF_FIRSTDIRDEF 0x04
2074 #define PRF_DONTFINDLNK 0x08 // Used when PRF_TRYPROGRAMEXTENSIONS is specified
2075 #if (NTDDI_VERSION >= NTDDI_WINXPSP2)
2076 #define PRF_REQUIREABSOLUTE 0x10
2077 #endif
2078
2079 VOID WINAPI PathGetShortPath(_Inout_updates_(MAX_PATH) LPWSTR pszPath);
2080
2081 LONG
2082 WINAPI
2083 PathProcessCommand(
2084 _In_ LPCWSTR,
2085 _Out_writes_(cchDest) LPWSTR,
2086 int cchDest,
2087 DWORD);
2088
2089 _Success_(return != 0)
2090 BOOL
2091 WINAPI
2092 PathYetAnotherMakeUniqueName(
2093 _Out_writes_(MAX_PATH) LPWSTR,
2094 _In_ LPCWSTR,
2095 _In_opt_ LPCWSTR,
2096 _In_opt_ LPCWSTR);
2097
2098 /****************************************************************************
2099 * Drag And Drop Routines
2100 */
2101
2102 /* DAD_AutoScroll sample structure */
2103 #define NUM_POINTS 3
2104 typedef struct
2105 {
2106 int iNextSample;
2107 DWORD dwLastScroll;
2108 BOOL bFull;
2109 POINT pts[NUM_POINTS];
2110 DWORD dwTimes[NUM_POINTS];
2111 } AUTO_SCROLL_DATA;
2112
2113 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
2114 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
2115 BOOL WINAPI DAD_DragEnterEx2(_In_ HWND, POINT, _In_opt_ IDataObject*);
2116 BOOL WINAPI DAD_DragMove(POINT);
2117 BOOL WINAPI DAD_DragLeave(void);
2118 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,const POINT*);
2119
2120 HRESULT
2121 WINAPI
2122 SHDoDragDrop(
2123 _In_opt_ HWND,
2124 _In_ IDataObject*,
2125 _In_opt_ IDropSource*,
2126 _In_ DWORD,
2127 _Out_ LPDWORD);
2128
2129 /****************************************************************************
2130 * Internet shortcut properties
2131 */
2132
2133 #define PID_IS_URL 2
2134 #define PID_IS_NAME 4
2135 #define PID_IS_WORKINGDIR 5
2136 #define PID_IS_HOTKEY 6
2137 #define PID_IS_SHOWCMD 7
2138 #define PID_IS_ICONINDEX 8
2139 #define PID_IS_ICONFILE 9
2140 #define PID_IS_WHATSNEW 10
2141 #define PID_IS_AUTHOR 11
2142 #define PID_IS_DESCRIPTION 12
2143 #define PID_IS_COMMENT 13
2144
2145
2146 LPITEMIDLIST WINAPI ILAppendID(_In_opt_ LPITEMIDLIST, _In_ LPCSHITEMID, BOOL);
2147 LPITEMIDLIST WINAPI ILClone(_In_ LPCITEMIDLIST);
2148 LPITEMIDLIST WINAPI ILCloneFirst(_In_ LPCITEMIDLIST);
2149 LPITEMIDLIST WINAPI ILCreateFromPathA(_In_ LPCSTR);
2150 LPITEMIDLIST WINAPI ILCreateFromPathW(_In_ LPCWSTR);
2151 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
2152 LPITEMIDLIST WINAPI ILCombine(_In_opt_ LPCITEMIDLIST, _In_opt_ LPCITEMIDLIST);
2153 LPITEMIDLIST WINAPI ILFindChild(_In_ LPCITEMIDLIST, _In_ LPCITEMIDLIST);
2154 LPITEMIDLIST WINAPI ILFindLastID(_In_ LPCITEMIDLIST);
2155 void WINAPI ILFree(_In_opt_ LPITEMIDLIST);
2156 LPITEMIDLIST WINAPI ILGetNext(_In_opt_ LPCITEMIDLIST);
2157 UINT WINAPI ILGetSize(_In_opt_ LPCITEMIDLIST);
2158 BOOL WINAPI ILIsEqual(_In_ LPCITEMIDLIST, _In_ LPCITEMIDLIST);
2159 BOOL WINAPI ILIsParent(_In_ LPCITEMIDLIST, _In_ LPCITEMIDLIST, BOOL);
2160 HRESULT WINAPI ILLoadFromStream(_In_ LPSTREAM, _Inout_ LPITEMIDLIST*);
2161 BOOL WINAPI ILRemoveLastID(_Inout_opt_ LPITEMIDLIST);
2162 HRESULT WINAPI ILSaveToStream(_In_ LPSTREAM, _In_ LPCITEMIDLIST);
2163
2164
2165 #include <poppack.h>
2166
2167
2168 /* menu merging */
2169 #define MM_ADDSEPARATOR 0x00000001L
2170 #define MM_SUBMENUSHAVEIDS 0x00000002L
2171 #define MM_DONTREMOVESEPS 0x00000004L
2172
2173 UINT
2174 WINAPI
2175 Shell_MergeMenus(
2176 _In_ HMENU hmDst,
2177 _In_ HMENU hmSrc,
2178 UINT uInsert,
2179 UINT uIDAdjust,
2180 UINT uIDAdjustMax,
2181 ULONG uFlags);
2182
2183
2184 /****************************************************************************
2185 * SHCreateDefaultContextMenu API
2186 */
2187
2188 typedef struct
2189 {
2190 HWND hwnd;
2191 IContextMenuCB *pcmcb;
2192 PCIDLIST_ABSOLUTE pidlFolder;
2193 IShellFolder *psf;
2194 UINT cidl;
2195 PCUITEMID_CHILD_ARRAY apidl;
2196 IUnknown *punkAssociationInfo;
2197 UINT cKeys;
2198 const HKEY *aKeys;
2199 }DEFCONTEXTMENU;
2200
2201 HRESULT
2202 WINAPI
2203 SHCreateDefaultContextMenu(
2204 _In_ const DEFCONTEXTMENU *,
2205 _In_ REFIID,
2206 _Outptr_ void **ppv);
2207
2208 typedef HRESULT
2209 (CALLBACK * LPFNDFMCALLBACK)(
2210 _In_opt_ IShellFolder*,
2211 _In_opt_ HWND,
2212 _In_opt_ IDataObject*,
2213 UINT,
2214 WPARAM,
2215 LPARAM);
2216
2217 HRESULT
2218 WINAPI
2219 CDefFolderMenu_Create2(
2220 _In_opt_ PCIDLIST_ABSOLUTE,
2221 _In_opt_ HWND,
2222 UINT cidl,
2223 _In_reads_opt_(cidl) PCUITEMID_CHILD_ARRAY,
2224 _In_opt_ IShellFolder*,
2225 _In_opt_ LPFNDFMCALLBACK,
2226 UINT nKeys,
2227 _In_reads_opt_(nKeys) const HKEY *,
2228 _Outptr_ IContextMenu **);
2229
2230 #define DFM_MERGECONTEXTMENU 1
2231 #define DFM_INVOKECOMMAND 2
2232 #define DFM_INVOKECOMMANDEX 12
2233 #define DFM_GETDEFSTATICID 14
2234
2235 #define DFM_CMD_DELETE ((UINT)-1)
2236 #define DFM_CMD_MOVE ((UINT)-2)
2237 #define DFM_CMD_COPY ((UINT)-3)
2238 #define DFM_CMD_LINK ((UINT)-4)
2239 #define DFM_CMD_PROPERTIES ((UINT)-5)
2240 #define DFM_CMD_NEWFOLDER ((UINT)-6)
2241 #define DFM_CMD_PASTE ((UINT)-7)
2242 #define DFM_CMD_VIEWLIST ((UINT)-8)
2243 #define DFM_CMD_VIEWDETAILS ((UINT)-9)
2244 #define DFM_CMD_PASTELINK ((UINT)-10)
2245 #define DFM_CMD_PASTESPECIAL ((UINT)-11)
2246 #define DFM_CMD_MODALPROP ((UINT)-12)
2247 #define DFM_CMD_RENAME ((UINT)-13)
2248
2249 /****************************************************************************
2250 * SHCreateDefaultExtractIcon API
2251 */
2252
2253 HRESULT WINAPI
2254 SHCreateDefaultExtractIcon(
2255 REFIID riid,
2256 void **ppv);
2257 /****************************************************************************
2258 * SHCreateDataObject API
2259 */
2260
2261 HRESULT WINAPI SHCreateDataObject(
2262 _In_opt_ PCIDLIST_ABSOLUTE pidlFolder,
2263 _In_ UINT cidl,
2264 _In_reads_opt_(cidl) PCUITEMID_CHILD_ARRAY apidl,
2265 _In_opt_ IDataObject *pdtInner,
2266 _In_ REFIID riid,
2267 _Outptr_ void **ppv);
2268
2269 /****************************************************************************
2270 * CIDLData_CreateFromIDArray API
2271 */
2272
2273 HRESULT WINAPI CIDLData_CreateFromIDArray(
2274 _In_ PCIDLIST_ABSOLUTE pidlFolder,
2275 _In_ UINT cidl,
2276 _In_reads_opt_(cidl) PCUIDLIST_RELATIVE_ARRAY apidl,
2277 _Outptr_ IDataObject **ppdtobj);
2278
2279 /****************************************************************************
2280 * SHOpenWithDialog
2281 */
2282
2283 enum tagOPEN_AS_INFO_FLAGS
2284 {
2285 OAIF_ALLOW_REGISTRATION = 1,
2286 OAIF_REGISTER_EXT = 2,
2287 OAIF_EXEC = 4,
2288 OAIF_FORCE_REGISTRATION = 8,
2289 #if (NTDDI_VERSION >= NTDDI_VISTA)
2290 OAIF_HIDE_REGISTRATION = 32,
2291 OAIF_URL_PROTOCOL = 64,
2292 #endif
2293 };
2294 typedef int OPEN_AS_INFO_FLAGS;
2295
2296
2297 typedef struct tagOPENASINFO {
2298 LPCWSTR pcszFile;
2299 LPCWSTR pcszClass;
2300 OPEN_AS_INFO_FLAGS oaifInFlags;
2301 } OPENASINFO;
2302
2303 HRESULT
2304 WINAPI
2305 SHOpenWithDialog(
2306 _In_opt_ HWND hwndParent,
2307 _In_ const OPENASINFO *poainfo);
2308
2309 #define INTERFACE IShellIconOverlayIdentifier
2310
2311 DECLARE_INTERFACE_(IShellIconOverlayIdentifier, IUnknown)
2312 {
2313 STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
2314 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
2315 STDMETHOD_(ULONG,Release) (THIS) PURE;
2316
2317 STDMETHOD (IsMemberOf)(THIS_ _In_ LPCWSTR pwszPath, DWORD dwAttrib) PURE;
2318 STDMETHOD (GetOverlayInfo)(THIS_ _Out_writes_(cchMax) LPWSTR pwszIconFile, int cchMax, _Out_ int * pIndex, _Out_ DWORD * pdwFlags) PURE;
2319 STDMETHOD (GetPriority)(THIS_ _Out_ int * pIPriority) PURE;
2320 };
2321
2322 #if !defined(__cplusplus) || defined(CINTERFACE)
2323 /*** IUnknown methods ***/
2324 #define IShellIconOverlayIdentifier_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2325 #define IShellIconOverlayIdentifier_AddRef(p) (p)->lpVtbl->AddRef(p)
2326 #define IShellIconOverlayIdentifier_Release(p) (p)->lpVtbl->Release(p)
2327 /*** IShellIconOverlayIdentifier methods ***/
2328 #define IShellIconOverlayIdentifier_IsMemberOf(p,a,b) (p)->lpVtbl->IsMemberOf(p,a,b)
2329 #define IShellIconOverlayIdentifier_GetOverlayInfo(p,a,b,c,d) (p)->lpVtbl->GetOverlayInfo(p,a,b,c,d)
2330 #define IShellIconOverlayIdentifier_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a)
2331 #endif
2332
2333 #define ISIOI_ICONFILE 0x00000001
2334 #define ISIOI_ICONINDEX 0x00000002
2335
2336 #undef INTERFACE
2337
2338 /****************************************************************************
2339 * Travel log
2340 */
2341
2342 #define TLOG_BACK -1
2343 #define TLOG_FORE 1
2344
2345 #define TLMENUF_INCLUDECURRENT 0x00000001
2346 #define TLMENUF_CHECKCURRENT (TLMENUF_INCLUDECURRENT | 0x00000002)
2347 #define TLMENUF_BACK 0x00000010 // Default
2348 #define TLMENUF_FORE 0x00000020
2349 #define TLMENUF_BACKANDFORTH (TLMENUF_BACK | TLMENUF_FORE | TLMENUF_INCLUDECURRENT)
2350
2351 /*****************************************************************************
2352 * IDockingWindowSite interface
2353 */
2354 #define INTERFACE IDockingWindowSite
2355 DECLARE_INTERFACE_(IDockingWindowSite, IOleWindow)
2356 {
2357 // *** IUnknown methods ***
2358 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
2359 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
2360 STDMETHOD_(ULONG,Release)(THIS) PURE;
2361
2362 // *** IOleWindow methods ***
2363 STDMETHOD(GetWindow)(THIS_ HWND *lphwnd) PURE;
2364 STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE;
2365
2366 // *** IDockingWindowSite methods ***
2367 STDMETHOD(GetBorderDW)(THIS_ _In_ IUnknown *punkObj, _Out_ LPRECT prcBorder) PURE;
2368 STDMETHOD(RequestBorderSpaceDW)(THIS_ _In_ IUnknown *punkObj, _In_ LPCBORDERWIDTHS pbw) PURE;
2369 STDMETHOD(SetBorderSpaceDW)(THIS_ _In_ IUnknown *punkObj, _In_ LPCBORDERWIDTHS pbw) PURE;
2370 };
2371 #undef INTERFACE
2372
2373 #if !defined(__cplusplus) || defined(CINTERFACE)
2374 /*** IUnknown methods ***/
2375 #define IDockingWindowSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2376 #define IDockingWindowSite_AddRef(p) (p)->lpVtbl->AddRef(p)
2377 #define IDockingWindowSite_Release(p) (p)->lpVtbl->Release(p)
2378 /*** IOleWindow methods ***/
2379 #define IDockingWindowSite_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a)
2380 #define IDockingWindowSite_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a)
2381 /*** IDockingWindowSite methods ***/
2382 #define IDockingWindowSite_GetBorderDW(p,a,b) (p)->lpVtbl->GetBorderDW(p,a,b)
2383 #define IDockingWindowSite_RequestBorderSpaceDW(p,a,b) (p)->lpVtbl->RequestBorderSpaceDW(p,a,b)
2384 #define IDockingWindowSite_SetBorderSpaceDW(p,a,b) (p)->lpVtbl->SetBorderSpaceDW(p,a,b)
2385 #endif
2386
2387 typedef void (CALLBACK *PFNASYNCICONTASKBALLBACK)(LPCITEMIDLIST pidl, LPVOID pvData, LPVOID pvHint, INT iIconIndex, INT iOpenIconIndex);
2388
2389 /*****************************************************************************
2390 * Control Panel functions
2391 */
2392 LRESULT WINAPI CallCPLEntry16(HINSTANCE hMod, FARPROC pFunc, HWND dw3, UINT dw4, LPARAM dw5, LPARAM dw6);
2393
2394 #ifdef __cplusplus
2395 } /* extern "C" */
2396 #endif /* defined(__cplusplus) */
2397
2398 #endif /* __WINE_SHLOBJ_H */