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