ReactOS  0.4.14-dev-57-g333b8f1
shlobj.h
Go to the documentation of this file.
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 #include <pshpack8.h>
45 
46 typedef struct
47 {
50  SHELLVIEWID* pvid;
64 
65 typedef struct
66 {
69  SHELLVIEWID* pvid;
83 
84 #include <poppack.h>
85 
86 #define FCS_READ 0x00000001
87 #define FCS_FORCEWRITE 0x00000002
88 
89 #define FCSM_ICONFILE 0x00000010
90 
91 #ifndef HPSXA_DEFINED
92 #define HPSXA_DEFINED
93 DECLARE_HANDLE(HPSXA);
94 #endif
95 
96 typedef enum
97 {
98  KF_FLAG_DEFAULT = 0x00000000,
99  KF_FLAG_SIMPLE_IDLIST = 0x00000100,
101  KF_FLAG_DEFAULT_PATH = 0x00000400,
102  KF_FLAG_INIT = 0x00000800,
103  KF_FLAG_NO_ALIAS = 0x00001000,
104  KF_FLAG_DONT_UNEXPAND = 0x00002000,
105  KF_FLAG_DONT_VERIFY = 0x00004000,
106  KF_FLAG_CREATE = 0x00008000,
108  KF_FLAG_ALIAS_ONLY = 0x80000000
110 
111 typedef int GPFIDL_FLAGS;
112 
113 UINT
114 WINAPI
116  _In_ HPSXA,
118  LPARAM);
119 
121 
122 HRESULT
123 WINAPI
126  _In_opt_ const CLSID*,
128  _In_ REFIID,
129  _Outptr_ LPVOID*);
130 
134 
135 HRESULT
136 WINAPI
141  _Outptr_ IShellItem**);
142 
145 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
146 
147 HRESULT
148 WINAPI
150  _In_ UINT cfmt,
151  _In_reads_(cfmt) const FORMATETC *,
153 
158 
159 BOOL
160 WINAPI
162  _In_opt_ HWND,
163  _Inout_updates_(cchFilePath) LPWSTR,
164  UINT cchFilePath,
166  _In_ LPCWSTR,
168  _In_opt_ LPCWSTR);
169 
171 
173 
174 HRESULT
175 WINAPI
178  _In_ int,
180  _In_ DWORD,
182 
183 HRESULT
184 WINAPI
187  _In_ int,
189  _In_ DWORD,
192 
193 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir);
194 
195 _Success_(return != 0)
196 BOOL
197 WINAPI
201 
202 _Success_(return != 0)
203 BOOL
204 WINAPI
208 
209 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
210 
212 
213 HRESULT
214 WINAPI
216  _In_ LPCWSTR,
218  _Inout_opt_ DWORD*);
219 
221 
222 HRESULT
223 WINAPI
225  _In_ LPCWSTR,
228  _In_ SFGAOF,
229  _Out_opt_ SFGAOF*);
230 
231 HRESULT
232 WINAPI
234  _In_opt_ HWND,
236  _In_ LPCSTR, DWORD);
237 
238 HRESULT
239 WINAPI
241  _In_opt_ HWND,
243  _In_ LPCWSTR, DWORD);
244 
245 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite);
246 
247 UINT
248 WINAPI
250  _In_ HPSXA,
251  UINT,
253  LPARAM);
254 
256 
257 int
258 WINAPI
262  _Out_opt_ int*);
263 
267 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
268 
269 INT
270 WINAPI
272  _In_opt_ HWND,
273  _Inout_updates_(cchIconPath) LPWSTR,
274  UINT cchIconPath,
275  _Inout_opt_ int *);
276 
277 HRESULT
278 WINAPI
280  _In_ HWND hwnd,
282 
285 int WINAPI DriveType(int);
286 int WINAPI RealDriveType(int, BOOL);
287 int WINAPI IsNetDrive(int);
289 
290 #define KF_FLAG_DEFAULT_PATH 0x00000400
291 
292 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formattable */
293 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was cancelled */
294 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formattable */
295 
296 /* SHFormatDrive flags */
297 #define SHFMT_ID_DEFAULT 0xFFFF
298 #define SHFMT_OPT_FULL 1
299 #define SHFMT_OPT_SYSONLY 2
300 
301 /* SHPathPrepareForWrite flags */
302 #define SHPPFW_NONE 0x00000000
303 #define SHPPFW_DIRCREATE 0x00000001
304 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
305 #define SHPPFW_ASKDIRCREATE 0x00000002
306 #define SHPPFW_IGNOREFILENAME 0x00000004
307 #define SHPPFW_NOWRITECHECK 0x00000008
308 #define SHPPFW_MEDIACHECKONLY 0x00000010
309 
310 /* SHObjectProperties flags */
311 #define SHOP_PRINTERNAME 0x01
312 #define SHOP_FILEPATH 0x02
313 #define SHOP_VOLUMEGUID 0x04
314 
315 BOOL
316 WINAPI
318  _In_opt_ HWND,
319  _In_ DWORD,
320  _In_ LPCWSTR,
321  _In_opt_ LPCWSTR);
322 
323 #define PCS_FATAL 0x80000000
324 #define PCS_REPLACEDCHAR 0x00000001
325 #define PCS_REMOVEDCHAR 0x00000002
326 #define PCS_TRUNCATED 0x00000004
327 #define PCS_PATHTOOLONG 0x00000008
328 
330 
331 /*****************************************************************************
332  * IContextMenu interface
333  */
334 
335 
336 /* DATAOBJECT_InitShellIDList*/
337 #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
338 #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
339 #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
340 /* DATAOBJECT_InitFileGroupDesc */
341 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
342 /* DATAOBJECT_InitFileContents*/
343 #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
344 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
345 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
346 #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
347 #define CFSTR_SHELLURLA "UniformResourceLocator"
348 #define CFSTR_INETURLA CFSTR_SHELLURLA
349 #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
350 #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
351 #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
352 #define CFSTR_INDRAGLOOPA "InShellDragLoop"
353 #define CFSTR_DRAGCONTEXTA "DragContext"
354 #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
355 #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
356 #define CFSTR_TARGETCLSIDA "TargetCLSID"
357 #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
358 #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
359 
360 #if defined(__GNUC__)
361 # define CFSTR_SHELLIDLISTW \
362  (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
363 # define CFSTR_SHELLIDLISTOFFSETW \
364  (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
365 # define CFSTR_NETRESOURCESW \
366  (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
367 # define CFSTR_FILEDESCRIPTORW \
368  (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
369 # define CFSTR_FILECONTENTSW \
370  (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
371 # define CFSTR_FILENAMEW \
372  (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
373 # define CFSTR_FILENAMEMAPW \
374  (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
375 # define CFSTR_PRINTERGROUPW \
376  (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
377 # define CFSTR_SHELLURLW \
378  (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 }
379 # define CFSTR_INETURLW \
380  (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 }
381 # define CFSTR_PREFERREDDROPEFFECTW \
382  (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
383 # define CFSTR_PERFORMEDDROPEFFECTW \
384  (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
385 # define CFSTR_PASTESUCCEEDEDW \
386  (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
387 # define CFSTR_INDRAGLOOPW \
388  (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
389 # define CFSTR_DRAGCONTEXTW \
390  (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
391 # define CFSTR_MOUNTEDVOLUMEW \
392  (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
393 # define CFSTR_PERSISTEDDATAOBJECTW \
394  (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
395 # define CFSTR_TARGETCLSIDW \
396  (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
397 # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
398  (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
399  ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
400 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
401  (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
402  ' ','D','r','o','p','E','f','f','e','c','t',0 }
403 #elif defined(_MSC_VER)
404 # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
405 # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
406 # define CFSTR_NETRESOURCESW L"Net Resource"
407 # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
408 # define CFSTR_FILECONTENTSW L"FileContents"
409 # define CFSTR_FILENAMEW L"FileNameW"
410 # define CFSTR_FILENAMEMAPW L"FileNameMapW"
411 # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
412 # define CFSTR_SHELLURLW L"UniformResourceLocator"
413 # define CFSTR_INETURLW L"UniformResourceLocatorW"
414 # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
415 # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
416 # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
417 # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
418 # define CFSTR_DRAGCONTEXTW L"DragContext"
419 # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
420 # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
421 # define CFSTR_TARGETCLSIDW L"TargetCLSID"
422 # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
423 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
424 #else
425 static const WCHAR CFSTR_SHELLIDLISTW[] =
426  { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
428  { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
429 static const WCHAR CFSTR_NETRESOURCESW[] =
430  { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
431 static const WCHAR CFSTR_FILEDESCRIPTORW[] =
432  { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
433 static const WCHAR CFSTR_FILECONTENTSW[] =
434  { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
435 static const WCHAR CFSTR_FILENAMEW[] =
436  { 'F','i','l','e','N','a','m','e','W',0 };
437 static const WCHAR CFSTR_FILENAMEMAPW[] =
438  { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
439 static const WCHAR CFSTR_PRINTERGROUPW[] =
440  { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
441 static const WCHAR CFSTR_SHELLURLW[] =
442  { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
443 static const WCHAR CFSTR_INETURLW[] =
444  { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
446  { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
448  { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
449 static const WCHAR CFSTR_PASTESUCCEEDEDW[] =
450  { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
451 static const WCHAR CFSTR_INDRAGLOOPW[] =
452  { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
453 static const WCHAR CFSTR_DRAGCONTEXTW[] =
454  { 'D','r','a','g','C','o','n','t','e','x','t',0 };
455 static const WCHAR CFSTR_MOUNTEDVOLUMEW[] =
456  { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
458  { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
459 static const WCHAR CFSTR_TARGETCLSIDW[] =
460  { 'T','a','r','g','e','t','C','L','S','I','D',0 };
462  { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
463  ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
465  { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
466  ' ','D','r','o','p','E','f','f','e','c','t',0 };
467 #endif
468 
469 #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
470 #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
471 #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
472 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
473 #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
474 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
475 #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
476 #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
477 #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
478 #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
479 #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
480 #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
481 #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
482 #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
483 #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
484 #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
485 #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
486 #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
487 #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
488 #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
489 
490 typedef struct
492  UINT aoffset[1];
493 } CIDA, *LPIDA;
494 
495 /************************************************************************
496 * IShellView interface
497 */
498 
499 #define FCIDM_SHVIEWFIRST 0x0000
500 /* undocumented */
501 #define FCIDM_SHVIEW_ARRANGE 0x7001
502 #define FCIDM_SHVIEW_DELETE 0x7011
503 #define FCIDM_SHVIEW_PROPERTIES 0x7013
504 #define FCIDM_SHVIEW_CUT 0x7018
505 #define FCIDM_SHVIEW_COPY 0x7019
506 #define FCIDM_SHVIEW_INSERT 0x701A
507 #define FCIDM_SHVIEW_UNDO 0x701B
508 #define FCIDM_SHVIEW_INSERTLINK 0x701C
509 #define FCIDM_SHVIEW_COPYTO 0x701E
510 #define FCIDM_SHVIEW_MOVETO 0x701F
511 #define FCIDM_SHVIEW_SELECTALL 0x7021
512 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
513 
514 #define FCIDM_SHVIEW_BIGICON 0x7029
515 #define FCIDM_SHVIEW_SMALLICON 0x702A
516 #define FCIDM_SHVIEW_LISTVIEW 0x702B
517 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
518 /* 0x7030-0x703f are used by the shellbrowser */
519 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
520 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
521 
522 #define FCIDM_SHVIEW_HELP 0x7041
523 #define FCIDM_SHVIEW_RENAME 0x7050
524 #define FCIDM_SHVIEW_CREATELINK 0x7051
525 #define FCIDM_SHVIEW_NEWLINK 0x7052
526 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
527 
528 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
529 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
530 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
531 
532 #define FCIDM_SHVIEWLAST 0x7fff
533 #define FCIDM_BROWSERFIRST 0xA000
534 /* undocumented toolbar items from stddlg's*/
535 #define FCIDM_TB_UPFOLDER 0xA001
536 #define FCIDM_TB_NEWFOLDER 0xA002
537 #define FCIDM_TB_SMALLICON 0xA003
538 #define FCIDM_TB_REPORTVIEW 0xA004
539 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
540 
541 #define FCIDM_BROWSERLAST 0xbf00
542 #define FCIDM_GLOBALFIRST 0x8000
543 #define FCIDM_GLOBALLAST 0x9fff
544 
545 /*
546 * Global submenu IDs and separator IDs
547 */
548 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
549 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
550 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
551 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
552 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
553 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
554 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
555 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
556 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
557 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
558 
559 /* control IDs known to the view */
560 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
561 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
562 
563 #define INTERFACE IShellDetails
565 {
566  /*** IUnknown methods ***/
570  /*** IShellDetails methods ***/
571  STDMETHOD(GetDetailsOf)(THIS_ _In_opt_ PCUITEMID_CHILD pidl, UINT iColumn, _Out_ SHELLDETAILS *pDetails) PURE;
572  STDMETHOD(ColumnClick)(THIS_ UINT iColumn) PURE;
573 };
574 #undef INTERFACE
575 
576 #if !defined(__cplusplus) || defined(CINTERFACE)
577 /*** IUnknown methods ***/
578 #define IShellDetails_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
579 #define IShellDetails_AddRef(p) (p)->lpVtbl->AddRef(p)
580 #define IShellDetails_Release(p) (p)->lpVtbl->Release(p)
581 /*** IShellDetails methods ***/
582 #define IShellDetails_GetDetailsOf(p,a,b,c) (p)->lpVtbl->GetDetailsOf(p,a,b,c)
583 #define IShellDetails_ColumnClick(p,a) (p)->lpVtbl->ColumnClick(p,a)
584 #endif
585 
586 /* IQueryInfo interface */
587 #define INTERFACE IQueryInfo
589 {
590  /*** IUnknown methods ***/
594  /*** IQueryInfo methods ***/
596  STDMETHOD(GetInfoFlags)(THIS_ _Out_ DWORD* lpFlags) PURE;
597 };
598 #undef INTERFACE
599 
600 #if !defined(__cplusplus) || defined(CINTERFACE)
601 /*** IUnknown methods ***/
602 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
603 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
604 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
605 /*** IQueryInfo methods ***/
606 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
607 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
608 #endif
609 
610 /* IInputObject interface */
611 #define INTERFACE IInputObject
613 {
614  /*** IUnknown methods ***/
618  /*** IInputObject methods ***/
619  STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
620  STDMETHOD(HasFocusIO)(THIS) PURE;
621  STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
622 };
623 #undef INTERFACE
624 
625 #if !defined(__cplusplus) || defined(CINTERFACE)
626 /*** IUnknown methods ***/
627 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
628 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
629 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
630 /*** IInputObject methods ***/
631 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
632 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
633 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
634 #endif
635 
636 /* IInputObjectSite interface */
637 #define INTERFACE IInputObjectSite
638 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
639 {
640  /*** IUnknown methods ***/
644  /*** IInputObjectSite methods ***/
645  STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
646 };
647 #undef INTERFACE
648 
649 #if !defined(__cplusplus) || defined(CINTERFACE)
650 /*** IUnknown methods ***/
651 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
652 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
653 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
654 /*** IInputObject methods ***/
655 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
656 #endif
657 
658 /* IObjMgr interface */
659 #define INTERFACE IObjMgr
661 {
662  /*** IUnknown methods ***/
666  /*** IObjMgr methods ***/
669 };
670 #undef INTERFACE
671 
672 #if !defined(__cplusplus) || defined(CINTERFACE)
673 /*** IUnknown methods ***/
674 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
675 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
676 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
677 /*** IObjMgr methods ***/
678 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
679 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
680 #endif
681 
682 /* ICurrentWorkingDirectory interface */
683 #define INTERFACE ICurrentWorkingDirectory
684 DECLARE_INTERFACE_(ICurrentWorkingDirectory,IUnknown)
685 {
686  /*** IUnknown methods ***/
690  /*** ICurrentWorkingDirectory methods ***/
691  STDMETHOD(GetDirectory)(THIS_ _Out_writes_(cchSize) PWSTR pwzPath, DWORD cchSize) PURE;
692  STDMETHOD(SetDirectory)(THIS_ _In_ PCWSTR pwzPath) PURE;
693 };
694 #undef INTERFACE
695 
696 #if !defined(__cplusplus) || defined(CINTERFACE)
697 /*** IUnknown methods ***/
698 #define ICurrentWorkingDirectory_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
699 #define ICurrentWorkingDirectory_AddRef(p) (p)->lpVtbl->AddRef(p)
700 #define ICurrentWorkingDirectory_Release(p) (p)->lpVtbl->Release(p)
701 /*** ICurrentWorkingDirectory methods ***/
702 #define ICurrentWorkingDirectory_GetDirectory(p,a,b) (p)->lpVtbl->GetDirectory(p,a,b)
703 #define ICurrentWorkingDirectory_SetDirectory(p,a) (p)->lpVtbl->SetDirectory(p,a)
704 #endif
705 
706 /* IACList interface */
707 #define INTERFACE IACList
709 {
710  /*** IUnknown methods ***/
714  /*** IACList methods ***/
715  STDMETHOD(Expand)(THIS_ _In_ LPCOLESTR str) PURE;
716 };
717 #undef INTERFACE
718 
719 #if !defined(__cplusplus) || defined(CINTERFACE)
720 /*** IUnknown methods ***/
721 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
722 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
723 #define IACList_Release(p) (p)->lpVtbl->Release(p)
724 /*** IACList methods ***/
725 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
726 #endif
727 
728 /* IACList2 interface */
729 
730 #define ACLO_NONE 0x00000000
731 #define ACLO_CURRENTDIR 0x00000001
732 #define ACLO_MYCOMPUTER 0x00000002
733 #define ACLO_DESKTOP 0x00000004
734 #define ACLO_FAVORITES 0x00000008
735 #define ACLO_FILESYSONLY 0x00000010
736 #define ACLO_FILESYSDIRS 0x00000020
737 
738 #define INTERFACE IACList2
739 DECLARE_INTERFACE_(IACList2,IACList)
740 {
741  /*** IUnknown methods ***/
745  /*** IACList methods ***/
746  STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
747  /*** IACList2 methods ***/
748  STDMETHOD(SetOptions)(THIS_ DWORD dwFlag) PURE;
749  STDMETHOD(GetOptions)(THIS_ _Out_ DWORD* pdwFlag) PURE;
750 };
751 #undef INTERFACE
752 
753 #if !defined(__cplusplus) || defined(CINTERFACE)
754 /*** IUnknown methods ***/
755 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
756 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
757 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
758 /*** IACList2 methods ***/
759 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
760 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
761 #endif
762 
763 /****************************************************************************
764  * IShellFolderViewCB interface
765  */
766 
767 #define INTERFACE IShellFolderViewCB
768 DECLARE_INTERFACE_(IShellFolderViewCB,IUnknown)
769 {
770  /*** IUnknown methods ***/
774  /*** IShellFolderViewCB methods ***/
775  STDMETHOD(MessageSFVCB)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam) PURE;
776 };
777 #undef INTERFACE
778 
779 #if !defined(__cplusplus) || defined(CINTERFACE)
780 /*** IUnknown methods ***/
781 #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
782 #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
783 #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
784 /*** IShellFolderViewCB methods ***/
785 #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
786 #endif
787 
788 /****************************************************************************
789  * IShellFolderView interface
790  */
791 
792 #include <pshpack8.h>
793 
794 typedef struct _ITEMSPACING
795 {
796  int cxSmall;
797  int cySmall;
798  int cxLarge;
799  int cyLarge;
800 } ITEMSPACING;
801 
802 #include <poppack.h>
803 
804 #define INTERFACE IShellFolderView
805 DEFINE_GUID(IID_IShellFolderView,0x37a378c0,0xf82d,0x11ce,0xae,0x65,0x08,0x00,0x2b,0x2e,0x12,0x62);
806 DECLARE_INTERFACE_(IShellFolderView, IUnknown)
807 {
808  /*** IUnknown methods ***/
812 
813  /*** IShellFolderView methods ***/
814  STDMETHOD(Rearrange) (THIS_ LPARAM lParamSort) PURE;
815  STDMETHOD(GetArrangeParam) (THIS_ _Out_ LPARAM *plParamSort) PURE;
816  STDMETHOD(ArrangeGrid) (THIS) PURE;
817  STDMETHOD(AutoArrange) (THIS) PURE;
818  STDMETHOD(GetAutoArrange) (THIS) PURE;
819  STDMETHOD(AddObject) (THIS_ _In_ PITEMID_CHILD pidl, _Out_ UINT *puItem) PURE;
821  STDMETHOD(RemoveObject) (THIS_ _In_opt_ PITEMID_CHILD pidl, _Out_ UINT *puItem) PURE;
822  STDMETHOD(GetObjectCount) (THIS_ _Out_ UINT *puCount) PURE;
823  STDMETHOD(SetObjectCount) (THIS_ UINT uCount, UINT dwFlags) PURE;
824  STDMETHOD(UpdateObject) (THIS_ _In_ PITEMID_CHILD pidlOld, _In_ PITEMID_CHILD pidlNew, _Out_ UINT *puItem) PURE;
825  STDMETHOD(RefreshObject) (THIS_ _In_ PITEMID_CHILD pidl, _Out_ UINT *puItem) PURE;
826  STDMETHOD(SetRedraw) (THIS_ BOOL bRedraw) PURE;
827  STDMETHOD(GetSelectedCount) (THIS_ _Out_ UINT *puSelected) PURE;
828  STDMETHOD(GetSelectedObjects) (THIS_ _Outptr_result_buffer_(*puItems) PCUITEMID_CHILD **pppidl, _Out_ UINT *puItems) PURE;
829  STDMETHOD(IsDropOnSource) (THIS_ _In_opt_ IDropTarget *pDropTarget) PURE;
830  STDMETHOD(GetDragPoint) (THIS_ _Out_ POINT *ppt) PURE;
831  STDMETHOD(GetDropPoint) (THIS_ _Out_ POINT *ppt) PURE;
832  STDMETHOD(MoveIcons) (THIS_ _In_ IDataObject *pDataObject) PURE;
833  STDMETHOD(SetItemPos) (THIS_ _In_ PCUITEMID_CHILD pidl, _In_ POINT *ppt) PURE;
834  STDMETHOD(IsBkDropTarget) (THIS_ _In_opt_ IDropTarget *pDropTarget) PURE;
835  STDMETHOD(SetClipboard) (THIS_ BOOL bMove) PURE;
836  STDMETHOD(SetPoints) (THIS_ _In_ IDataObject *pDataObject) PURE;
837  STDMETHOD(GetItemSpacing) (THIS_ _Out_ ITEMSPACING *pSpacing) PURE;
838  STDMETHOD(SetCallback) (THIS_ _In_opt_ IShellFolderViewCB* pNewCB, _Outptr_result_maybenull_ IShellFolderViewCB** ppOldCB) PURE;
839  STDMETHOD(Select) ( THIS_ UINT dwFlags ) PURE;
840  STDMETHOD(QuerySupport) (THIS_ _Inout_ UINT * pdwSupport) PURE;
841  STDMETHOD(SetAutomationObject)(THIS_ _In_opt_ IDispatch* pdisp) PURE;
842 };
843 #undef INTERFACE
844 
845 #if !defined(__cplusplus) || defined(CINTERFACE)
846 /*** IUnknown methods ***/
847 #define IShellFolderView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
848 #define IShellFolderView_AddRef(p) (p)->lpVtbl->AddRef(p)
849 #define IShellFolderView_Release(p) (p)->lpVtbl->Release(p)
850 /*** IShellFolderView methods ***/
851 #define IShellFolderView_Rearrange(p,a) (p)->lpVtbl->Rearrange(p,a)
852 #define IShellFolderView_GetArrangeParam(p,a) (p)->lpVtbl->GetArrangeParam(p,a)
853 #define IShellFolderView_ArrangeGrid(p) (p)->lpVtbl->ArrangeGrid(p)
854 #define IShellFolderView_AutoArrange(p) (p)->lpVtbl->AutoArrange(p)
855 #define IShellFolderView_GetAutoArrange(p) (p)->lpVtbl->GetAutoArrange(p)
856 #define IShellFolderView_AddObject(p,a,b) (p)->lpVtbl->AddObject(p,a,b)
857 #define IShellFolderView_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
858 #define IShellFolderView_RemoveObject(p,a,b) (p)->lpVtbl->RemoveObject(p,a,b)
859 #define IShellFolderView_GetObjectCount(p,a) (p)->lpVtbl->GetObjectCount(p,a)
860 #define IShellFolderView_SetObjectCount(p,a,b) (p)->lpVtbl->SetObjectCount(p,a,b)
861 #define IShellFolderView_UpdateObject(p,a,b,c) (p)->lpVtbl->UpdateObject(p,a,b,c)
862 #define IShellFolderView_RefreshObject(p,a,b) (p)->lpVtbl->RefreshObject(p,a,b)
863 #define IShellFolderView_SetRedraw(p,a) (p)->lpVtbl->SetRedraw(p,a)
864 #define IShellFolderView_GetSelectedCount(p,a) (p)->lpVtbl->GetSelectedCount(p,a)
865 #define IShellFolderView_GetSelectedObjects(p,a,b) (p)->lpVtbl->GetSelectedObjects(p,a,b)
866 #define IShellFolderView_IsDropOnSource(p,a) (p)->lpVtbl->IsDropOnSource(p,a)
867 #define IShellFolderView_GetDragPoint(p,a) (p)->lpVtbl->GetDragPoint(p,a)
868 #define IShellFolderView_GetDropPoint(p,a) (p)->lpVtbl->GetDropPoint(p,a)
869 #define IShellFolderView_MoveIcons(p,a) (p)->lpVtbl->MoveIcons(p,a)
870 #define IShellFolderView_SetItemPos(p,a,b) (p)->lpVtbl->SetItemPos(p,a,b)
871 #define IShellFolderView_DropTarget(p,a) (p)->lpVtbl->DropTarget(p,a)
872 #define IShellFolderView_SetClipboard(p,a) (p)->lpVtbl->SetClipboard(p,a)
873 #define IShellFolderView_SetPoints(p,a) (p)->lpVtbl->SetPoints(p,a)
874 #define IShellFolderView_GetItemSpacing(p,a) (p)->lpVtbl->GetItemSpacing(p,a)
875 #define IShellFolderView_SetCallback(p,a) (p)->lpVtbl->SetCallback(p,a)
876 #define IShellFolderView_Select(p,a) (p)->lpVtbl->Select(p,a)
877 #define IShellFolderView_QuerySupport(p,a) (p)->lpVtbl->QuerySupport(p,a)
878 #define IShellFolderView_SetAutomationObject(p,a) (p)->lpVtbl->SetAutomationObject(p,a)
879 #endif
880 
881 /* IProgressDialog interface */
882 #define PROGDLG_NORMAL 0x00000000
883 #define PROGDLG_MODAL 0x00000001
884 #define PROGDLG_AUTOTIME 0x00000002
885 #define PROGDLG_NOTIME 0x00000004
886 #define PROGDLG_NOMINIMIZE 0x00000008
887 #define PROGDLG_NOPROGRESSBAR 0x00000010
888 #define PROGDLG_MARQUEEPROGRESS 0x00000020
889 #define PROGDLG_NOCANCEL 0x00000040
890 
891 #define PDTIMER_RESET 0x00000001
892 #define PDTIMER_PAUSE 0x00000002
893 #define PDTIMER_RESUME 0x00000003
894 
895 #define INTERFACE IProgressDialog
896 DECLARE_INTERFACE_(IProgressDialog,IUnknown)
897 {
898  /*** IUnknown methods ***/
902  /*** IProgressDialog methods ***/
903  STDMETHOD(StartProgressDialog)(THIS_ _In_opt_ HWND hwndParent, _In_opt_ IUnknown *punkEnableModeless, DWORD dwFlags, _Reserved_ LPCVOID reserved) PURE;
904  STDMETHOD(StopProgressDialog)(THIS) PURE;
905  STDMETHOD(SetTitle)(THIS_ _In_ LPCWSTR pwzTitle) PURE;
906  STDMETHOD(SetAnimation)(THIS_ _In_opt_ HINSTANCE hInstance, UINT uiResourceId) PURE;
907  STDMETHOD_(BOOL,HasUserCancelled)(THIS) PURE;
908  STDMETHOD(SetProgress)(THIS_ DWORD dwCompleted, DWORD dwTotal) PURE;
909  STDMETHOD(SetProgress64)(THIS_ ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
910  STDMETHOD(SetLine)(THIS_ DWORD dwLineNum, _In_ LPCWSTR pwzString, BOOL bPath, _Reserved_ LPCVOID reserved) PURE;
911  STDMETHOD(SetCancelMsg)(THIS_ _In_ LPCWSTR pwzCancelMsg, _Reserved_ LPCVOID reserved) PURE;
913 };
914 #undef INTERFACE
915 
916 #if !defined(__cplusplus) || defined(CINTERFACE)
917 /*** IUnknown methods ***/
918 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
919 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
920 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
921 /*** IProgressDialog methods ***/
922 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
923 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
924 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
925 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
926 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
927 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
928 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
929 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
930 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
931 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
932 #endif
933 
934 
935 /* IDeskBarClient interface */
936 #define INTERFACE IDeskBarClient
938 {
939  /*** IUnknown methods ***/
943  /*** IOleWindow methods ***/
945  STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL) PURE;
946  /*** IDeskBarClient methods ***/
947  STDMETHOD_(HRESULT,SetDeskBarSite)(THIS_ _In_opt_ IUnknown*) PURE;
948  STDMETHOD_(HRESULT,SetModeDBC)(THIS_ DWORD) PURE;
949  STDMETHOD_(HRESULT,UIActivateDBC)(THIS_ DWORD) PURE;
951 };
952 #undef INTERFACE
953 
954 #if !defined(__cplusplus) || defined(CINTERFACE)
955 /*** IUnknown methods ***/
956 #define IDeskBarClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
957 #define IDeskBarClient_AddRef(p) (p)->lpVtbl->AddRef(p)
958 #define IDeskBarClient_Release(p) (p)->lpVtbl->Release(p)
959 /*** IOleWindow methods ***/
960 #define IDeskBarClient_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a)
961 #define IDeskBarClient_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a)
962 /*** IOleWindow IDeskBarClient ***/
963 #define IDeskBarClient_SetDeskBarSite(p,a) (p)->lpVtbl->SetDeskBarSite(p,a)
964 #define IDeskBarClient_SetModeDBC(p,a) (p)->lpVtbl->SetModeDBC(p,a)
965 #define IDeskBarClient_UIActivateDBC(p,a) (p)->lpVtbl->UIActivateDBC(p,a)
966 #define IDeskBarClient_GetSize(p,a,b) (p)->lpVtbl->GetSize(p,a,b)
967 #endif
968 
969 #define DBC_GS_IDEAL 0
970 #define DBC_GS_SIZEDOWN 1
971 
972 #define DBC_HIDE 0
973 #define DBC_SHOW 1
974 #define DBC_SHOWOBSCURE 2
975 
976 
977 /* As indicated by the documentation for IActiveDesktop,
978  you must include wininet.h before shlobj.h */
979 #ifdef _WINE_WININET_H_
980 
981 
982 /* Structs are taken from msdn, and not verified!
983  Only stuff needed to make it compile are here, no flags or anything */
984 
985 typedef struct _tagWALLPAPEROPT
986 {
987  DWORD dwSize;
988  DWORD dwStyle;
989 } WALLPAPEROPT;
990 
991 typedef WALLPAPEROPT *LPWALLPAPEROPT;
992 typedef const WALLPAPEROPT *LPCWALLPAPEROPT;
993 
994 typedef struct _tagCOMPONENTSOPT
995 {
996  DWORD dwSize;
997  BOOL fEnableComponents;
998  BOOL fActiveDesktop;
999 } COMPONENTSOPT;
1000 
1001 typedef COMPONENTSOPT *LPCOMPONENTSOPT;
1002 typedef const COMPONENTSOPT *LPCCOMPONENTSOPT;
1003 
1004 
1005 typedef struct _tagCOMPPOS
1006 {
1007  DWORD dwSize;
1008  int iLeft;
1009  int iTop;
1010  DWORD dwWidth;
1011  DWORD dwHeight;
1012  int izIndex;
1013  BOOL fCanResize;
1014  BOOL fCanResizeX;
1015  BOOL fCanResizeY;
1016  int iPreferredLeftPercent;
1017  int iPreferredTopPercent;
1018 } COMPPOS;
1019 
1020 typedef struct _tagCOMPSTATEINFO
1021 {
1022  DWORD dwSize;
1023  int iLeft;
1024  int iTop;
1025  DWORD dwWidth;
1026  DWORD dwHeight;
1027  DWORD dwItemState;
1028 } COMPSTATEINFO;
1029 
1030 typedef struct _tagCOMPONENT
1031 {
1032  DWORD dwSize;
1033  DWORD dwID;
1034  int iComponentType;
1035  BOOL fChecked;
1036  BOOL fDirty;
1037  BOOL fNoScroll;
1038  COMPPOS cpPos;
1040  WCHAR wszSource[INTERNET_MAX_URL_LENGTH];
1041  WCHAR wszSubscribedURL[INTERNET_MAX_URL_LENGTH];
1042  DWORD dwCurItemState;
1043  COMPSTATEINFO csiOriginal;
1044  COMPSTATEINFO csiRestored;
1045 } COMPONENT;
1046 
1047 typedef COMPONENT *LPCOMPONENT;
1048 typedef const COMPONENT *LPCCOMPONENT;
1049 
1050 #pragma push_macro("AddDesktopItem")
1051 #undef AddDesktopItem
1052 
1053 /* IDeskBarClient interface */
1054 #define INTERFACE IActiveDesktop
1055 DECLARE_INTERFACE_(IActiveDesktop, IUnknown)
1056 {
1057  /*** IUnknown methods ***/
1061 
1062  /*** IActiveDesktop methods ***/
1064  STDMETHOD(GetWallpaper)(THIS_ PWSTR pwszWallpaper, UINT cchWallpaper, DWORD dwFlags) PURE;
1066  STDMETHOD(GetWallpaperOptions)(THIS_ LPWALLPAPEROPT pwpo, DWORD dwReserved) PURE;
1067  STDMETHOD(SetWallpaperOptions)(THIS_ LPCWALLPAPEROPT pwpo, DWORD dwReserved) PURE;
1068  STDMETHOD(GetPattern)(THIS_ PWSTR pwszPattern, UINT cchPattern, DWORD dwReserved) PURE;
1069  STDMETHOD(SetPattern)(THIS_ PCWSTR pwszPattern, DWORD dwReserved) PURE;
1070  STDMETHOD(GetDesktopItemOptions)(THIS_ LPCOMPONENTSOPT pco, DWORD dwReserved) PURE;
1071  STDMETHOD(SetDesktopItemOptions)(THIS_ LPCCOMPONENTSOPT pco, DWORD dwReserved) PURE;
1072  STDMETHOD(AddDesktopItem)(THIS_ LPCCOMPONENT pcomp, DWORD dwReserved) PURE;
1073  STDMETHOD(AddDesktopItemWithUI)(THIS_ HWND hwnd, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
1074  STDMETHOD(ModifyDesktopItem)(THIS_ LPCCOMPONENT pcomp, DWORD dwFlags) PURE;
1075  STDMETHOD(RemoveDesktopItem)(THIS_ LPCCOMPONENT pcomp, DWORD dwReserved) PURE;
1076  STDMETHOD(GetDesktopItemCount)(THIS_ int *pcItems, DWORD dwReserved) PURE;
1077  STDMETHOD(GetDesktopItem)(THIS_ int nComponent, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
1078  STDMETHOD(GetDesktopItemByID)(THIS_ ULONG_PTR dwID, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
1079  STDMETHOD(GenerateDesktopItemHtml)(THIS_ PCWSTR pwszFileName, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
1080  STDMETHOD(AddUrl)(THIS_ HWND hwnd, PCWSTR pszSource, LPCOMPONENT pcomp, DWORD dwFlags) PURE;
1081  STDMETHOD(GetDesktopItemBySource)(THIS_ PCWSTR pwszSource, LPCOMPONENT pcomp, DWORD dwReserved) PURE;
1082 };
1083 #undef INTERFACE
1084 
1085 #pragma pop_macro("AddDesktopItem")
1086 
1087 #endif
1088 
1089 /****************************************************************************
1090 * SHAddToRecentDocs API
1091 */
1092 #define SHARD_PIDL 0x00000001L
1093 #define SHARD_PATHA 0x00000002L
1094 #define SHARD_PATHW 0x00000003L
1095 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
1096 
1098 
1099 /****************************************************************************
1100  * SHBrowseForFolder API
1101  */
1103 
1104 #include <pshpack8.h>
1105 
1106 typedef struct tagBROWSEINFOA {
1116 
1117 typedef struct tagBROWSEINFOW {
1127 
1128 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
1129 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
1130 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
1131 
1132 #include <poppack.h>
1133 
1134 /* Browsing for directory. */
1135 #define BIF_RETURNONLYFSDIRS 0x0001
1136 #define BIF_DONTGOBELOWDOMAIN 0x0002
1137 #define BIF_STATUSTEXT 0x0004
1138 #define BIF_RETURNFSANCESTORS 0x0008
1139 #define BIF_EDITBOX 0x0010
1140 #define BIF_VALIDATE 0x0020
1141 #define BIF_NEWDIALOGSTYLE 0x0040
1142 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
1143 #define BIF_BROWSEINCLUDEURLS 0x0080
1144 #define BIF_UAHINT 0x0100
1145 #define BIF_NONEWFOLDERBUTTON 0x0200
1146 #define BIF_NOTRANSLATETARGETS 0x0400
1147 
1148 #define BIF_BROWSEFORCOMPUTER 0x1000
1149 #define BIF_BROWSEFORPRINTER 0x2000
1150 #define BIF_BROWSEINCLUDEFILES 0x4000
1151 #define BIF_SHAREABLE 0x8000
1152 
1153 /* message from browser */
1154 #define BFFM_INITIALIZED 1
1155 #define BFFM_SELCHANGED 2
1156 #define BFFM_VALIDATEFAILEDA 3
1157 #define BFFM_VALIDATEFAILEDW 4
1158 #define BFFM_IUNKNOWN 5
1159 
1160 /* messages to browser */
1161 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
1162 #define BFFM_ENABLEOK (WM_USER+101)
1163 #define BFFM_SETSELECTIONA (WM_USER+102)
1164 #define BFFM_SETSELECTIONW (WM_USER+103)
1165 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
1166 #define BFFM_SETOKTEXT (WM_USER+105)
1167 #define BFFM_SETEXPANDED (WM_USER+106)
1168 
1171 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
1172 
1173 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
1174 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
1175 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
1176 
1177 /**********************************************************************
1178  * SHCreateShellFolderViewEx API
1179  */
1180 
1181 typedef HRESULT
1183  _In_ IShellView* dwUser,
1184  _In_ IShellFolder* pshf,
1185  _In_ HWND hWnd,
1186  UINT uMsg,
1187  WPARAM wParam,
1188  LPARAM lParam);
1189 
1190 #include <pshpack8.h>
1191 
1192 typedef struct _CSFV
1193 {
1201 } CSFV, *LPCSFV;
1202 
1203 #include <poppack.h>
1204 
1205 HRESULT
1206 WINAPI
1208  _In_ LPCSFV pshfvi,
1209  _Outptr_ IShellView **ppshv);
1210 
1211 /* SHCreateShellFolderViewEx callback messages */
1212 #define SFVM_MERGEMENU 1
1213 #define SFVM_INVOKECOMMAND 2
1214 #define SFVM_GETHELPTEXT 3
1215 #define SFVM_GETTOOLTIPTEXT 4
1216 #define SFVM_GETBUTTONINFO 5
1217 #define SFVM_GETBUTTONS 6
1218 #define SFVM_INITMENUPOPUP 7
1219 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
1220 #define SFVM_DRAWMENUITEM 9 /* undocumented */
1221 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
1222 #define SFVM_EXITMENULOOP 11 /* undocumented */
1223 #define SFVM_VIEWRELEASE 12 /* undocumented */
1224 #define SFVM_GETNAMELENGTH 13 /* undocumented */
1225 #define SFVM_FSNOTIFY 14
1226 #define SFVM_WINDOWCREATED 15
1227 #define SFVM_WINDOWCLOSING 16 /* undocumented */
1228 #define SFVM_LISTREFRESHED 17 /* undocumented */
1229 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
1230 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
1231 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
1232 #define SFVM_GETDETAILSOF 23
1233 #define SFVM_COLUMNCLICK 24
1234 #define SFVM_QUERYFSNOTIFY 25
1235 #define SFVM_DEFITEMCOUNT 26
1236 #define SFVM_DEFVIEWMODE 27
1237 #define SFVM_UNMERGEFROMMENU 28
1238 #define SFVM_ADDINGOBJECT 29 /* undocumented */
1239 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
1240 #define SFVM_UPDATESTATUSBAR 31
1241 #define SFVM_BACKGROUNDENUM 32
1242 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
1243 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
1244 #define SFVM_CANSELECTALL 35 /* undocumented */
1245 #define SFVM_DIDDRAGDROP 36
1246 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
1247 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
1248 #define SFVM_SETISFV 39
1249 #define SFVM_GETEXTVIEWS 40 /* undocumented */
1250 #define SFVM_THISIDLIST 41
1251 #define SFVM_ADDPROPERTYPAGES 47
1252 #define SFVM_BACKGROUNDENUMDONE 48
1253 #define SFVM_GETNOTIFY 49
1254 #define SFVM_GETSORTDEFAULTS 53
1255 #define SFVM_SIZE 57
1256 #define SFVM_GETZONE 58
1257 #define SFVM_GETPANE 59
1258 #define SFVM_GETHELPTOPIC 63
1259 #define SFVM_GETANIMATION 68
1260 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
1261 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
1262 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
1263 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
1264 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
1265 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
1266 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
1267 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
1268 
1269 #include <pshpack8.h>
1270 
1271 typedef struct _SFV_CREATE
1272 {
1276  IShellFolderViewCB *psfvcb;
1277 } SFV_CREATE;
1278 
1279 #include <poppack.h>
1280 
1281 HRESULT
1282 WINAPI
1284  _In_ const SFV_CREATE *pscfv,
1285  _Outptr_ IShellView **ppsv);
1286 
1287 /* Types and definitions for the SFM_* parameters */
1288 #include <pshpack8.h>
1289 
1290 #define QCMINFO_PLACE_BEFORE 0
1291 #define QCMINFO_PLACE_AFTER 1
1293 {
1297 
1298 typedef struct _QCMINFO_IDMAP
1299 {
1302 } QCMINFO_IDMAP;
1303 
1304 typedef struct _QCMINFO
1305 {
1311 } QCMINFO, *LPQCMINFO;
1312 
1313 #define TBIF_DEFAULT 0x00000000
1314 #define TBIF_APPEND 0x00000000
1315 #define TBIF_PREPEND 0x00000001
1316 #define TBIF_REPLACE 0x00000002
1317 #define TBIF_INTERNETBAR 0x00010000
1318 #define TBIF_STANDARDTOOLBAR 0x00020000
1319 #define TBIF_NOTOOLBAR 0x00030000
1320 
1321 typedef struct _TBINFO
1322 {
1325 } TBINFO, *LPTBINFO;
1326 
1327 #include <poppack.h>
1328 
1329 /****************************************************************************
1330 * SHShellFolderView_Message API
1331 */
1332 
1333 LRESULT
1334 WINAPI
1336  _In_ HWND hwndCabinet,
1337  UINT uMessage,
1338  LPARAM lParam);
1339 
1340 /* SHShellFolderView_Message messages */
1341 #define SFVM_REARRANGE 0x0001
1342 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
1343 #define SFVM_ADDOBJECT 0x0003
1344 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
1345 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
1346 #define SFVM_REMOVEOBJECT 0x0006
1347 #define SFVM_UPDATEOBJECT 0x0007
1348 #define SFVM_SETREDRAW 0x0008 /* undocumented */
1349 #define SFVM_GETSELECTEDOBJECTS 0x0009
1350 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
1351 #define SFVM_MOVEICONS 0x000B /* undocumented */
1352 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
1353 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
1354 #define SFVM_SETITEMPOS 0x000E
1355 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
1356 #define SFVM_SETCLIPBOARD 0x0010
1357 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
1358 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
1359 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
1360 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
1361 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
1362 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
1363 #define SFVM_SETPOINTS 0x0017
1364 
1365 /****************************************************************************
1366 * SHGetDataFromIDList API
1367 */
1368 #define SHGDFIL_FINDDATA 1
1369 #define SHGDFIL_NETRESOURCE 2
1370 #define SHGDFIL_DESCRIPTIONID 3
1371 
1372 #define SHDID_ROOT_REGITEM 1
1373 #define SHDID_FS_FILE 2
1374 #define SHDID_FS_DIRECTORY 3
1375 #define SHDID_FS_OTHER 4
1376 #define SHDID_COMPUTER_DRIVE35 5
1377 #define SHDID_COMPUTER_DRIVE525 6
1378 #define SHDID_COMPUTER_REMOVABLE 7
1379 #define SHDID_COMPUTER_FIXED 8
1380 #define SHDID_COMPUTER_NETDRIVE 9
1381 #define SHDID_COMPUTER_CDROM 10
1382 #define SHDID_COMPUTER_RAMDISK 11
1383 #define SHDID_COMPUTER_OTHER 12
1384 #define SHDID_NET_DOMAIN 13
1385 #define SHDID_NET_SERVER 14
1386 #define SHDID_NET_SHARE 15
1387 #define SHDID_NET_RESTOFNET 16
1388 #define SHDID_NET_OTHER 17
1389 #define SHDID_COMPUTER_IMAGING 18
1390 #define SHDID_COMPUTER_AUDIO 19
1391 #define SHDID_COMPUTER_SHAREDDOCS 20
1392 
1393 #include <pshpack8.h>
1394 
1395 typedef struct _SHDESCRIPTIONID
1399 
1400 #include <poppack.h>
1401 
1402 HRESULT
1403 WINAPI
1405  _In_ LPSHELLFOLDER psf,
1406  _In_ LPCITEMIDLIST pidl,
1407  int nFormat,
1409  int cb);
1410 
1411 HRESULT
1412 WINAPI
1414  _In_ LPSHELLFOLDER psf,
1415  _In_ LPCITEMIDLIST pidl,
1416  int nFormat,
1418  int cb);
1419 
1420 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
1421 
1423 WINAPI
1426  _In_ int csidl,
1427  _In_ BOOL fCreate);
1428 
1429 _Success_(return != 0)
1430 BOOL
1431 WINAPI
1433  _Reserved_ HWND hwndOwner,
1436  _In_ BOOL bCreate);
1437 
1438 _Success_(return != 0)
1439 BOOL
1440 WINAPI
1442  _Reserved_ HWND hwndOwner,
1444  _In_ int nFolder,
1445  _In_ BOOL bCreate);
1446 
1447 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
1448 
1450 
1451 /**********************************************************************
1452  * SHGetSetSettings ()
1453  */
1454 
1455 typedef struct
1456 {
1460 
1475 
1476  UINT :15; /* Required for proper binary layout with gcc */
1487  UINT :15; /* Required for proper binary layout with gcc */
1489 
1490 VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet);
1491 
1492 /**********************************************************************
1493  * SHGetSettings ()
1494  */
1495 typedef struct
1500 
1505 
1510 
1513  UINT :15; /* Required for proper binary layout with gcc */
1515 
1517 
1518 #define SSF_SHOWALLOBJECTS 0x0001
1519 #define SSF_SHOWEXTENSIONS 0x0002
1520 #define SSF_SHOWCOMPCOLOR 0x0008
1521 #define SSF_SHOWSYSFILES 0x0020
1522 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
1523 #define SSF_SHOWATTRIBCOL 0x0100
1524 #define SSF_DESKTOPHTML 0x0200
1525 #define SSF_WIN95CLASSIC 0x0400
1526 #define SSF_DONTPRETTYPATH 0x0800
1527 #define SSF_SHOWINFOTIP 0x2000
1528 #define SSF_MAPNETDRVBUTTON 0x1000
1529 #define SSF_NOCONFIRMRECYCLE 0x8000
1530 #define SSF_HIDEICONS 0x4000
1531 #define SSF_SHOWSUPERHIDDEN 0x00040000
1532 #define SSF_SEPPROCESS 0x00080000
1533 
1534 /****************************************************************************
1535 * SHRestricted API
1536 */
1537 typedef enum RESTRICTIONS
1538 {
1539  REST_NONE = 0x00000000,
1540  REST_NORUN = 0x00000001,
1541  REST_NOCLOSE = 0x00000002,
1542  REST_NOSAVESET = 0x00000004,
1543  REST_NOFILEMENU = 0x00000008,
1544  REST_NOSETFOLDERS = 0x00000010,
1545  REST_NOSETTASKBAR = 0x00000020,
1546  REST_NODESKTOP = 0x00000040,
1547  REST_NOFIND = 0x00000080,
1548  REST_NODRIVES = 0x00000100,
1549  REST_NODRIVEAUTORUN = 0x00000200,
1551  REST_NONETHOOD = 0x00000800,
1552  REST_STARTBANNER = 0x00001000,
1553  REST_RESTRICTRUN = 0x00002000,
1554  REST_NOPRINTERTABS = 0x00004000,
1555  REST_NOPRINTERDELETE = 0x00008000,
1556  REST_NOPRINTERADD = 0x00010000,
1558  REST_MYDOCSONNET = 0x00040000,
1559  REST_NOEXITTODOS = 0x00080000,
1562  REST_NOCOMMONGROUPS = 0x00400000,
1564  REST_NOWEB = 0x01000000,
1568  REST_STARTMENULOGOFF = 0x10000000,
1570  REST_NOINTERNETICON = 0x40000001,
1579 
1580  REST_NOHTMLWALLPAPER = 0x40000010,
1592 #if (NTDDI_VERSION < NTDDI_LONGHORN)
1593  REST_NOLOGO3CHANNELNOTIFY = 0x4000001C,
1594 #endif
1598  REST_NOCHANGESTARMENU, /* 0x40000020 */
1614  REST_MaxRecentDocs, /* 0x40000030 */
1620 
1621  REST_ALLOWFRENCHENCRYPTION, /* not documented */
1622 
1632  REST_RESTRICTCPL, /* 0x40000040 */
1648  REST_NOSMMYPICS, /* 0x40000050 */
1664  REST_SETVISUALSTYLE, /* 0x40000060 */
1676  /* 0x4000006C
1677  0x4000006D
1678  0x4000006E */
1680  REST_HIDECLOCK, /* 0x40000070 */
1696  REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
1701 
1703 
1704  REST_NODISCONNECT = 0x41000001,
1706  REST_NOFILEASSOCIATE, /* 0x41000003 */
1707 } RESTRICTIONS;
1708 
1710 
1711 /****************************************************************************
1712 * SHChangeNotify API
1713 */
1714 typedef struct _SHChangeNotifyEntry
1715 {
1719 
1720 #define SHCNE_RENAMEITEM 0x00000001
1721 #define SHCNE_CREATE 0x00000002
1722 #define SHCNE_DELETE 0x00000004
1723 #define SHCNE_MKDIR 0x00000008
1724 #define SHCNE_RMDIR 0x00000010
1725 #define SHCNE_MEDIAINSERTED 0x00000020
1726 #define SHCNE_MEDIAREMOVED 0x00000040
1727 #define SHCNE_DRIVEREMOVED 0x00000080
1728 #define SHCNE_DRIVEADD 0x00000100
1729 #define SHCNE_NETSHARE 0x00000200
1730 #define SHCNE_NETUNSHARE 0x00000400
1731 #define SHCNE_ATTRIBUTES 0x00000800
1732 #define SHCNE_UPDATEDIR 0x00001000
1733 #define SHCNE_UPDATEITEM 0x00002000
1734 #define SHCNE_SERVERDISCONNECT 0x00004000
1735 #define SHCNE_UPDATEIMAGE 0x00008000
1736 #define SHCNE_DRIVEADDGUI 0x00010000
1737 #define SHCNE_RENAMEFOLDER 0x00020000
1738 #define SHCNE_FREESPACE 0x00040000
1739 
1740 #define SHCNE_EXTENDED_EVENT 0x04000000
1741 #define SHCNE_ASSOCCHANGED 0x08000000
1742 #define SHCNE_DISKEVENTS 0x0002381F
1743 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1744 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1745 #define SHCNE_INTERRUPT 0x80000000
1746 
1747 #define SHCNEE_ORDERCHANGED 0x0002L
1748 #define SHCNEE_MSI_CHANGE 0x0004L
1749 #define SHCNEE_MSI_UNINSTALL 0x0005L
1750 
1751 #define SHCNF_IDLIST 0x0000
1752 #define SHCNF_PATHA 0x0001
1753 #define SHCNF_PRINTERA 0x0002
1754 #define SHCNF_DWORD 0x0003
1755 #define SHCNF_PATHW 0x0005
1756 #define SHCNF_PRINTERW 0x0006
1757 #define SHCNF_TYPE 0x00FF
1758 #define SHCNF_FLUSH 0x1000
1759 #define SHCNF_FLUSHNOWAIT 0x3000
1760 #define SHCNF_NOTIFYRECURSIVE 0x10000
1761 
1762 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1763 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1764 
1765 #define SHCNRF_InterruptLevel 0x0001
1766 #define SHCNRF_ShellLevel 0x0002
1767 #define SHCNRF_RecursiveInterrupt 0x1000
1768 #define SHCNRF_NewDelivery 0x8000
1769 
1770 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
1771 
1772 typedef enum {
1773  SLDF_DEFAULT = 0x00000000,
1774  SLDF_HAS_ID_LIST = 0x00000001,
1775  SLDF_HAS_LINK_INFO = 0x00000002,
1776  SLDF_HAS_NAME = 0x00000004,
1777  SLDF_HAS_RELPATH = 0x00000008,
1778  SLDF_HAS_WORKINGDIR = 0x00000010,
1779  SLDF_HAS_ARGS = 0x00000020,
1781  SLDF_UNICODE = 0x00000080,
1783  SLDF_HAS_EXP_SZ = 0x00000200,
1784  SLDF_RUN_IN_SEPARATE = 0x00000400,
1785 #if (NTDDI_VERSION < NTDDI_LONGHORN)
1786  SLDF_HAS_LOGO3ID = 0x00000800,
1787 #endif
1788  SLDF_HAS_DARWINID = 0x00001000,
1789  SLDF_RUNAS_USER = 0x00002000,
1790  SLDF_HAS_EXP_ICON_SZ = 0x00004000,
1791  SLDF_NO_PIDL_ALIAS = 0x00008000,
1792  SLDF_FORCE_UNCNAME = 0x00010000,
1794 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
1799 #if (NTDDI_VERSION >= NTDDI_WIN7)
1800  SLDF_NO_KF_ALIAS = 0x00400000,
1802  SLDF_UNALIAS_ON_SAVE = 0x01000000,
1805 #if (NTDDI_VERSION >= NTDDI_WIN8)
1807  SLDF_VALID = 0x0ffff7ff, /* Windows 8 */
1808 #else
1809  SLDF_VALID = 0x07fff7ff, /* Windows 7 */
1810 #endif
1811 #else
1812  SLDF_VALID = 0x003ff7ff, /* Windows Vista */
1813 #endif
1814 #endif
1815  SLDF_RESERVED = 0x80000000,
1817 
1818 typedef struct tagDATABLOCKHEADER
1819 {
1823 
1824 #ifdef LF_FACESIZE
1825 typedef struct {
1826  DATABLOCK_HEADER dbh;
1827  WORD wFillAttribute;
1828  WORD wPopupFillAttribute;
1829  COORD dwScreenBufferSize;
1830  COORD dwWindowSize;
1831  COORD dwWindowOrigin;
1832  DWORD nFont;
1833  DWORD nInputBufferSize;
1834  COORD dwFontSize;
1835  UINT uFontFamily;
1836  UINT uFontWeight;
1837  WCHAR FaceName[LF_FACESIZE];
1838  UINT uCursorSize;
1839  BOOL bFullScreen;
1840  BOOL bQuickEdit;
1841  BOOL bInsertMode;
1842  BOOL bAutoPosition;
1843  UINT uHistoryBufferSize;
1844  UINT uNumberOfHistoryBuffers;
1845  BOOL bHistoryNoDup;
1846  COLORREF ColorTable[16];
1847 } NT_CONSOLE_PROPS, *LPNT_CONSOLE_PROPS;
1848 #endif
1849 
1850 typedef struct {
1854 
1855 typedef struct {
1858  CHAR szTarget[MAX_PATH];
1859  WCHAR szwTarget[MAX_PATH];
1861 
1862 typedef struct {
1864  CHAR szDarwinID[MAX_PATH];
1865  WCHAR szwDarwinID[MAX_PATH];
1867 
1868 typedef struct {
1874 
1875 typedef struct {
1878  BYTE abPropertyStorage[1];
1880 
1881 #define EXP_SZ_LINK_SIG 0xA0000001 /* EXP_SZ_LINK */
1882 #define NT_CONSOLE_PROPS_SIG 0xA0000002 /* NT_CONSOLE_PROPS */
1883 #define NT_FE_CONSOLE_PROPS_SIG 0xA0000004 /* NT_FE_CONSOLE_PROPS */
1884 #define EXP_SPECIAL_FOLDER_SIG 0xA0000005 /* EXP_SPECIAL_FOLDER */
1885 #define EXP_DARWIN_ID_SIG 0xA0000006 /* EXP_DARWIN_LINK */
1886 #if (NTDDI_VERSION < NTDDI_LONGHORN)
1887 #define EXP_LOGO3_ID_SIG 0xA0000007 /* EXP_DARWIN_LINK, for Logo3 / MS Internet Component Download (MSICD) shortcuts; old SDKs only (deprecated) */
1888 #endif
1889 #define EXP_SZ_ICON_SIG 0xA0000007 /* EXP_SZ_LINK */
1890 #define EXP_PROPERTYSTORAGE_SIG 0xA0000009 /* EXP_PROPERTYSTORAGE */
1891 
1892 typedef struct _SHChangeDWORDAsIDList {
1898 
1904 
1905 ULONG
1906 WINAPI
1908  _In_ HWND hwnd,
1909  int fSources,
1910  LONG fEvents,
1911  UINT wMsg,
1912  int cEntries,
1913  _In_ SHChangeNotifyEntry *pshcne);
1914 
1916 
1917 HANDLE
1918 WINAPI
1920  _In_ HANDLE hChangeNotification,
1921  DWORD dwProcessId,
1923  _Out_opt_ LONG *plEvent);
1924 
1926 
1927 HRESULT
1928 WINAPI
1929 SHGetRealIDL(
1930  _In_ IShellFolder *psf,
1931  _In_ LPCITEMIDLIST pidlSimple,
1932  _Outptr_ LPITEMIDLIST * ppidlReal);
1933 
1934 /****************************************************************************
1935 * SHCreateDirectory API
1936 */
1938 
1939 int
1940 WINAPI
1942  _In_opt_ HWND,
1943  _In_ LPCSTR,
1945 
1946 int
1947 WINAPI
1949  _In_opt_ HWND,
1950  _In_ LPCWSTR,
1952 
1953 #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
1954 
1955 /****************************************************************************
1956 * SHGetSpecialFolderLocation API
1957 */
1959 HRESULT
1960 WINAPI
1962  _Reserved_ HWND hwndOwner,
1963  _In_ int nFolder,
1964  _Outptr_ LPITEMIDLIST *ppidl);
1965 
1966 HRESULT
1967 WINAPI
1969  _Reserved_ HWND hwndOwner,
1970  _In_ int nFolder,
1971  _In_opt_ HANDLE hToken,
1973  _Outptr_ LPITEMIDLIST *ppidl);
1974 
1975 /****************************************************************************
1976 * SHGetFolderPath API
1977 */
1978 typedef enum {
1981 } SHGFP_TYPE;
1982 
1983 HRESULT
1984 WINAPI
1987  _In_ int nFolder,
1988  _In_opt_ HANDLE hToken,
1989  _In_ DWORD dwFlags,
1990  _Out_writes_(MAX_PATH) LPSTR pszPath);
1991 
1992 HRESULT
1993 WINAPI
1996  _In_ int nFolder,
1997  _In_opt_ HANDLE hToken,
1998  _In_ DWORD dwFlags,
1999  _Out_writes_(MAX_PATH) LPWSTR pszPath);
2000 
2001 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
2002 
2003 #define CSIDL_DESKTOP 0x0000
2004 #define CSIDL_INTERNET 0x0001
2005 #define CSIDL_PROGRAMS 0x0002
2006 #define CSIDL_CONTROLS 0x0003
2007 #define CSIDL_PRINTERS 0x0004
2008 #define CSIDL_PERSONAL 0x0005
2009 #define CSIDL_FAVORITES 0x0006
2010 #define CSIDL_STARTUP 0x0007
2011 #define CSIDL_RECENT 0x0008
2012 #define CSIDL_SENDTO 0x0009
2013 #define CSIDL_BITBUCKET 0x000a
2014 #define CSIDL_STARTMENU 0x000b
2015 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
2016 #define CSIDL_MYMUSIC 0x000d
2017 #define CSIDL_MYVIDEO 0x000e
2018 #define CSIDL_DESKTOPDIRECTORY 0x0010
2019 #define CSIDL_DRIVES 0x0011
2020 #define CSIDL_NETWORK 0x0012
2021 #define CSIDL_NETHOOD 0x0013
2022 #define CSIDL_FONTS 0x0014
2023 #define CSIDL_TEMPLATES 0x0015
2024 #define CSIDL_COMMON_STARTMENU 0x0016
2025 #define CSIDL_COMMON_PROGRAMS 0X0017
2026 #define CSIDL_COMMON_STARTUP 0x0018
2027 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
2028 #define CSIDL_APPDATA 0x001a
2029 #define CSIDL_PRINTHOOD 0x001b
2030 #define CSIDL_LOCAL_APPDATA 0x001c
2031 #define CSIDL_ALTSTARTUP 0x001d
2032 #define CSIDL_COMMON_ALTSTARTUP 0x001e
2033 #define CSIDL_COMMON_FAVORITES 0x001f
2034 #define CSIDL_INTERNET_CACHE 0x0020
2035 #define CSIDL_COOKIES 0x0021
2036 #define CSIDL_HISTORY 0x0022
2037 #define CSIDL_COMMON_APPDATA 0x0023
2038 #define CSIDL_WINDOWS 0x0024
2039 #define CSIDL_SYSTEM 0x0025
2040 #define CSIDL_PROGRAM_FILES 0x0026
2041 #define CSIDL_MYPICTURES 0x0027
2042 #define CSIDL_PROFILE 0x0028
2043 #define CSIDL_SYSTEMX86 0x0029
2044 #define CSIDL_PROGRAM_FILESX86 0x002a
2045 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
2046 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
2047 #define CSIDL_COMMON_TEMPLATES 0x002d
2048 #define CSIDL_COMMON_DOCUMENTS 0x002e
2049 #define CSIDL_COMMON_ADMINTOOLS 0x002f
2050 #define CSIDL_ADMINTOOLS 0x0030
2051 #define CSIDL_CONNECTIONS 0x0031
2052 #define CSIDL_COMMON_MUSIC 0x0035
2053 #define CSIDL_COMMON_PICTURES 0x0036
2054 #define CSIDL_COMMON_VIDEO 0x0037
2055 #define CSIDL_RESOURCES 0x0038
2056 #define CSIDL_RESOURCES_LOCALIZED 0x0039
2057 #define CSIDL_COMMON_OEM_LINKS 0x003a
2058 #define CSIDL_CDBURN_AREA 0x003b
2059 #define CSIDL_COMPUTERSNEARME 0x003d
2060 #define CSIDL_PROFILES 0x003e
2061 #define CSIDL_FOLDER_MASK 0x00ff
2062 #define CSIDL_FLAG_PER_USER_INIT 0x0800
2063 #define CSIDL_FLAG_NO_ALIAS 0x1000
2064 #define CSIDL_FLAG_DONT_VERIFY 0x4000
2065 #define CSIDL_FLAG_CREATE 0x8000
2066 
2067 #define CSIDL_FLAG_MASK 0xff00
2068 
2069 /****************************************************************************
2070  * SHGetDesktopFolder API
2071  */
2073 
2074 /****************************************************************************
2075  * SHBindToParent API
2076  */
2077 HRESULT
2078 WINAPI
2080  _In_ LPCITEMIDLIST pidl,
2081  _In_ REFIID riid,
2082  _Outptr_ LPVOID *ppv,
2083  _Outptr_opt_ LPCITEMIDLIST *ppidlLast);
2084 
2085 /****************************************************************************
2086 * SHDefExtractIcon API
2087 */
2088 HRESULT
2089 WINAPI
2091  _In_ LPCSTR pszIconFile,
2092  int iIndex,
2093  UINT uFlags,
2094  _Out_opt_ HICON* phiconLarge,
2095  _Out_opt_ HICON* phiconSmall,
2096  UINT nIconSize);
2097 
2098 HRESULT
2099 WINAPI
2101  _In_ LPCWSTR pszIconFile,
2102  int iIndex,
2103  UINT uFlags,
2104  _Out_opt_ HICON* phiconLarge,
2105  _Out_opt_ HICON* phiconSmall,
2106  UINT nIconSize);
2107 
2108 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
2109 
2110 /*
2111  * DROPFILES for CF_HDROP and CF_PRINTERS
2112  */
2113 typedef struct _DROPFILES
2114 {
2120 
2121 /*
2122  * Properties of a file in the clipboard
2123  */
2124 typedef struct _FILEDESCRIPTORA {
2137 
2138 typedef struct _FILEDESCRIPTORW {
2151 
2152 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
2153 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
2154 
2155 /*
2156  * CF_FILEGROUPDESCRIPTOR clipboard format
2157  */
2162 
2163 typedef struct _FILEGROUPDESCRIPTORW {
2167 
2168 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
2169 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
2170 
2171 /****************************************************************************
2172  * Cabinet functions
2173  */
2174 
2175 typedef struct {
2188  UINT :15; /* Required for proper binary layout with gcc */
2191 
2192 #define CABINETSTATE_VERSION 2
2193 
2194 BOOL
2195 WINAPI
2197  _Out_writes_bytes_(cLength) CABINETSTATE *,
2198  int cLength);
2199 
2201 
2202 /****************************************************************************
2203  * Path Manipulation Routines
2204  */
2205 
2206 /* PathProcessCommand flags */
2207 #define PPCF_ADDQUOTES 0x01
2208 #define PPCF_INCLUDEARGS 0x02
2209 #define PPCF_ADDARGUMENTS 0x03
2210 #define PPCF_NODIRECTORIES 0x10
2211 #define PPCF_DONTRESOLVE 0x20
2212 #define PPCF_FORCEQUALIFY 0x40
2213 #define PPCF_LONGESTPOSSIBLE 0x80
2214 
2215 /* PathResolve flags */
2216 #define PRF_VERIFYEXISTS 0x01
2217 #define PRF_EXECUTABLE 0x02
2218 #define PRF_TRYPROGRAMEXTENSIONS (PRF_EXECUTABLE | PRF_VERIFYEXISTS)
2219 #define PRF_FIRSTDIRDEF 0x04
2220 #define PRF_DONTFINDLNK 0x08 // Used when PRF_TRYPROGRAMEXTENSIONS is specified
2221 #if (NTDDI_VERSION >= NTDDI_WINXPSP2)
2222 #define PRF_REQUIREABSOLUTE 0x10
2223 #endif
2224 
2226 
2227 LONG
2228 WINAPI
2230  _In_ LPCWSTR,
2231  _Out_writes_(cchDest) LPWSTR,
2232  int cchDest,
2233  DWORD);
2234 
2235 _Success_(return != 0)
2236 BOOL
2237 WINAPI
2241  _In_opt_ LPCWSTR,
2242  _In_opt_ LPCWSTR);
2243 
2244 /****************************************************************************
2245  * Drag And Drop Routines
2246  */
2247 
2248 /* DAD_AutoScroll sample structure */
2249 #define NUM_POINTS 3
2250 typedef struct
2251 {
2256  DWORD dwTimes[NUM_POINTS];
2258 
2263 BOOL WINAPI DAD_DragLeave(void);
2265 
2266 HRESULT
2267 WINAPI
2268 SHDoDragDrop(
2269  _In_opt_ HWND,
2270  _In_ IDataObject*,
2272  _In_ DWORD,
2273  _Out_ LPDWORD);
2274 
2275 /****************************************************************************
2276  * Internet shortcut properties
2277  */
2278 
2279 #define PID_IS_URL 2
2280 #define PID_IS_NAME 4
2281 #define PID_IS_WORKINGDIR 5
2282 #define PID_IS_HOTKEY 6
2283 #define PID_IS_SHOWCMD 7
2284 #define PID_IS_ICONINDEX 8
2285 #define PID_IS_ICONFILE 9
2286 #define PID_IS_WHATSNEW 10
2287 #define PID_IS_AUTHOR 11
2288 #define PID_IS_DESCRIPTION 12
2289 #define PID_IS_COMMENT 13
2290 
2291 
2297 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
2309 
2311 {
2312  return !(pidl && pidl->mkid.cb);
2313 }
2314 
2315 #include <poppack.h>
2316 
2317 
2318 /* menu merging */
2319 #define MM_ADDSEPARATOR 0x00000001L
2320 #define MM_SUBMENUSHAVEIDS 0x00000002L
2321 #define MM_DONTREMOVESEPS 0x00000004L
2322 
2323 UINT
2324 WINAPI
2326  _In_ HMENU hmDst,
2327  _In_ HMENU hmSrc,
2328  UINT uInsert,
2329  UINT uIDAdjust,
2330  UINT uIDAdjustMax,
2331  ULONG uFlags);
2332 
2333 
2334 /****************************************************************************
2335  * SHCreateDefaultContextMenu API
2336  */
2337 
2338 typedef struct
2339 {
2348  const HKEY *aKeys;
2350 
2351 HRESULT
2352 WINAPI
2354  _In_ const DEFCONTEXTMENU *,
2355  _In_ REFIID,
2356  _Outptr_ void **ppv);
2357 
2358 typedef HRESULT
2361  _In_opt_ HWND,
2363  UINT,
2364  WPARAM,
2365  LPARAM);
2366 
2367 HRESULT
2368 WINAPI
2371  _In_opt_ HWND,
2372  UINT cidl,
2376  UINT nKeys,
2377  _In_reads_opt_(nKeys) const HKEY *,
2378  _Outptr_ IContextMenu **);
2379 
2380 #define DFM_MERGECONTEXTMENU 1
2381 #define DFM_INVOKECOMMAND 2
2382 #define DFM_INVOKECOMMANDEX 12
2383 #define DFM_GETDEFSTATICID 14
2384 
2385 #define DFM_CMD_DELETE ((UINT)-1)
2386 #define DFM_CMD_MOVE ((UINT)-2)
2387 #define DFM_CMD_COPY ((UINT)-3)
2388 #define DFM_CMD_LINK ((UINT)-4)
2389 #define DFM_CMD_PROPERTIES ((UINT)-5)
2390 #define DFM_CMD_NEWFOLDER ((UINT)-6)
2391 #define DFM_CMD_PASTE ((UINT)-7)
2392 #define DFM_CMD_VIEWLIST ((UINT)-8)
2393 #define DFM_CMD_VIEWDETAILS ((UINT)-9)
2394 #define DFM_CMD_PASTELINK ((UINT)-10)
2395 #define DFM_CMD_PASTESPECIAL ((UINT)-11)
2396 #define DFM_CMD_MODALPROP ((UINT)-12)
2397 #define DFM_CMD_RENAME ((UINT)-13)
2398 
2399 /****************************************************************************
2400  * SHCreateDefaultExtractIcon API
2401  */
2402 
2405  REFIID riid,
2406  void **ppv);
2407 /****************************************************************************
2408  * SHCreateDataObject API
2409  */
2410 
2412  _In_opt_ PCIDLIST_ABSOLUTE pidlFolder,
2413  _In_ UINT cidl,
2415  _In_opt_ IDataObject *pdtInner,
2416  _In_ REFIID riid,
2417  _Outptr_ void **ppv);
2418 
2419 /****************************************************************************
2420  * CIDLData_CreateFromIDArray API
2421  */
2422 
2424  _In_ PCIDLIST_ABSOLUTE pidlFolder,
2425  _In_ UINT cidl,
2427  _Outptr_ IDataObject **ppdtobj);
2428 
2429 /****************************************************************************
2430  * SHOpenWithDialog
2431  */
2432 
2434 {
2439 #if (NTDDI_VERSION >= NTDDI_VISTA)
2442 #endif
2443 };
2445 
2446 
2447 typedef struct tagOPENASINFO {
2451 } OPENASINFO;
2452 
2453 HRESULT
2454 WINAPI
2457  _In_ const OPENASINFO *poainfo);
2458 
2459 #define INTERFACE IShellIconOverlayIdentifier
2460 
2461 DECLARE_INTERFACE_(IShellIconOverlayIdentifier, IUnknown)
2462 {
2466 
2467  STDMETHOD (IsMemberOf)(THIS_ _In_ LPCWSTR pwszPath, DWORD dwAttrib) PURE;
2468  STDMETHOD (GetOverlayInfo)(THIS_ _Out_writes_(cchMax) LPWSTR pwszIconFile, int cchMax, _Out_ int * pIndex, _Out_ DWORD * pdwFlags) PURE;
2469  STDMETHOD (GetPriority)(THIS_ _Out_ int * pIPriority) PURE;
2470 };
2471 
2472 #if !defined(__cplusplus) || defined(CINTERFACE)
2473 /*** IUnknown methods ***/
2474 #define IShellIconOverlayIdentifier_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2475 #define IShellIconOverlayIdentifier_AddRef(p) (p)->lpVtbl->AddRef(p)
2476 #define IShellIconOverlayIdentifier_Release(p) (p)->lpVtbl->Release(p)
2477 /*** IShellIconOverlayIdentifier methods ***/
2478 #define IShellIconOverlayIdentifier_IsMemberOf(p,a,b) (p)->lpVtbl->IsMemberOf(p,a,b)
2479 #define IShellIconOverlayIdentifier_GetOverlayInfo(p,a,b,c,d) (p)->lpVtbl->GetOverlayInfo(p,a,b,c,d)
2480 #define IShellIconOverlayIdentifier_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a)
2481 #endif
2482 
2483 #define ISIOI_ICONFILE 0x00000001
2484 #define ISIOI_ICONINDEX 0x00000002
2485 
2486 #undef INTERFACE
2487 
2488 /****************************************************************************
2489  * Travel log
2490  */
2491 
2492 #define TLOG_BACK -1
2493 #define TLOG_FORE 1
2494 
2495 #define TLMENUF_INCLUDECURRENT 0x00000001
2496 #define TLMENUF_CHECKCURRENT (TLMENUF_INCLUDECURRENT | 0x00000002)
2497 #define TLMENUF_BACK 0x00000010 // Default
2498 #define TLMENUF_FORE 0x00000020
2499 #define TLMENUF_BACKANDFORTH (TLMENUF_BACK | TLMENUF_FORE | TLMENUF_INCLUDECURRENT)
2500 
2501 /*****************************************************************************
2502  * IDockingWindowSite interface
2503  */
2504 #define INTERFACE IDockingWindowSite
2505 DECLARE_INTERFACE_(IDockingWindowSite, IOleWindow)
2506 {
2507  // *** IUnknown methods ***
2511 
2512  // *** IOleWindow methods ***
2513  STDMETHOD(GetWindow)(THIS_ HWND *lphwnd) PURE;
2514  STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE;
2515 
2516  // *** IDockingWindowSite methods ***
2517  STDMETHOD(GetBorderDW)(THIS_ _In_ IUnknown *punkObj, _Out_ LPRECT prcBorder) PURE;
2518  STDMETHOD(RequestBorderSpaceDW)(THIS_ _In_ IUnknown *punkObj, _In_ LPCBORDERWIDTHS pbw) PURE;
2519  STDMETHOD(SetBorderSpaceDW)(THIS_ _In_ IUnknown *punkObj, _In_ LPCBORDERWIDTHS pbw) PURE;
2520 };
2521 #undef INTERFACE
2522 
2523 #if !defined(__cplusplus) || defined(CINTERFACE)
2524 /*** IUnknown methods ***/
2525 #define IDockingWindowSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2526 #define IDockingWindowSite_AddRef(p) (p)->lpVtbl->AddRef(p)
2527 #define IDockingWindowSite_Release(p) (p)->lpVtbl->Release(p)
2528 /*** IOleWindow methods ***/
2529 #define IDockingWindowSite_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a)
2530 #define IDockingWindowSite_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a)
2531 /*** IDockingWindowSite methods ***/
2532 #define IDockingWindowSite_GetBorderDW(p,a,b) (p)->lpVtbl->GetBorderDW(p,a,b)
2533 #define IDockingWindowSite_RequestBorderSpaceDW(p,a,b) (p)->lpVtbl->RequestBorderSpaceDW(p,a,b)
2534 #define IDockingWindowSite_SetBorderSpaceDW(p,a,b) (p)->lpVtbl->SetBorderSpaceDW(p,a,b)
2535 #endif
2536 
2537 typedef void (CALLBACK *PFNASYNCICONTASKBALLBACK)(LPCITEMIDLIST pidl, LPVOID pvData, LPVOID pvHint, INT iIconIndex, INT iOpenIconIndex);
2538 
2539 #define ISFB_MASK_STATE 0x00000001
2540 #define ISFB_MASK_IDLIST 0x00000010
2541 
2542 #define ISFB_STATE_QLINKSMODE 0x00000020
2543 #define ISFB_STATE_NOSHOWTEXT 0x00000004
2544 
2545 #include <pshpack8.h>
2546 
2547 typedef struct {
2559 
2560 #include <poppack.h>
2561 
2562 #undef INTERFACE
2563 #define INTERFACE IShellFolderBand
2564 
2565 DECLARE_INTERFACE_(IShellFolderBand, IUnknown)
2566 {
2567  // *** IUnknown methods ***
2571 
2572  // *** IShellFolderBand Methods ***
2573  STDMETHOD(InitializeSFB)(THIS_ IShellFolder *psf, PCIDLIST_ABSOLUTE pidl) PURE;
2574  STDMETHOD(SetBandInfoSFB)(THIS_ PBANDINFOSFB pbi) PURE;
2575  STDMETHOD(GetBandInfoSFB)(THIS_ PBANDINFOSFB pbi) PURE;
2576 };
2577 #undef INTERFACE
2578 
2579 
2580 /*****************************************************************************
2581  * Control Panel functions
2582  */
2583 LRESULT WINAPI CallCPLEntry16(HINSTANCE hMod, FARPROC pFunc, HWND dw3, UINT dw4, LPARAM dw5, LPARAM dw6);
2584 
2585 #ifdef __cplusplus
2586 } /* extern "C" */
2587 #endif /* defined(__cplusplus) */
2588 
2589 #endif /* __WINE_SHLOBJ_H */
HRESULT WINAPI SHGetRealIDL(_In_ IShellFolder *psf, _In_ LPCITEMIDLIST pidlSimple, _Outptr_ LPITEMIDLIST *ppidlReal)
HRESULT WINAPI CDefFolderMenu_Create2(_In_opt_ PCIDLIST_ABSOLUTE, _In_opt_ HWND, UINT cidl, _In_reads_opt_(cidl) PCUITEMID_CHILD_ARRAY, _In_opt_ IShellFolder *, _In_opt_ LPFNDFMCALLBACK, UINT nKeys, _In_reads_opt_(nKeys) const HKEY *, _Outptr_ IContextMenu **)
UINT WINAPI ILGetSize(_In_opt_ LPCITEMIDLIST)
HRESULT WINAPI SHCreateQueryCancelAutoPlayMoniker(IMoniker **)
Definition: shellole.c:811
struct EXP_SZ_LINK * LPEXP_SZ_LINK
HRESULT WINAPI SHGetFolderPathAndSubDirW(_Reserved_ HWND, _In_ int, _In_opt_ HANDLE, _In_ DWORD, _In_opt_ LPCWSTR, _Out_writes_(MAX_PATH) LPWSTR)
struct tagBROWSEINFOA * PBROWSEINFOA
struct _DROPFILES * LPDROPFILES
#define _Outptr_opt_result_buffer_(size)
Definition: no_sal2.h:398
#define HRESULT
Definition: msvc.h:9
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
UINT idCmdLast
Definition: shlobj.h:1309
const uint16_t * PCWSTR
Definition: typedefs.h:55
QCMINFO_IDMAP const * pIdMap
Definition: shlobj.h:1310
return
Definition: dirsup.c:529
const PCUIDLIST_RELATIVE * PCUIDLIST_RELATIVE_ARRAY
Definition: shtypes.idl:58
int cxLarge
Definition: shlobj.h:798
HRESULT WINAPI ILSaveToStream(_In_ LPSTREAM, _In_ LPCITEMIDLIST)
static HICON
Definition: imagelist.c:84
UINT version
Definition: shlobj.h:1481
BOOL fNoNetCrawling
Definition: shlobj.h:1474
struct _CSFV CSFV
VOID WINAPI PathGetShortPath(_Inout_updates_(MAX_PATH) LPWSTR pszPath)
#define REFIID
Definition: guiddef.h:118
DWORD nFileSizeLow
Definition: shlobj.h:2134
BOOL WINAPI SHFindFiles(_In_opt_ LPCITEMIDLIST, _In_opt_ LPCITEMIDLIST)
struct NT_FE_CONSOLE_PROPS * LPNT_FE_CONSOLE_PROPS
UINT uWin95Unused
Definition: shlobj.h:1478
static const WCHAR CFSTR_INDRAGLOOPW[]
Definition: shlobj.h:451
#define LF_FACESIZE
Definition: dimm.idl:39
DWORD nFileSizeLow
Definition: shlobj.h:2148
DWORD idSpecialFolder
Definition: shlobj.h:1871
BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST pidl, LPSTR pszPath)
Definition: pidl.c:1264
static VOID SetWallpaper(PBACKGROUND_DATA pData)
Definition: background.c:1000
Definition: fci.c:115
HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY, LPCWSTR, UINT, IDataObject *)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
LPITEMIDLIST WINAPI SHBrowseForFolderW(_In_ LPBROWSEINFOW lpbi)
static const WCHAR wszFriendlyName[]
Definition: createdevenum.c:54
_Check_return_ HRESULT WINAPI SHGetSpecialFolderLocation(_Reserved_ HWND hwndOwner, _In_ int nFolder, _Outptr_ LPITEMIDLIST *ppidl)
UINT fRestFlags
Definition: shlobj.h:1512
BOOL fStartPanelOn
Definition: shlobj.h:1484
HRESULT WINAPI SHGetFolderPathA(_Reserved_ HWND hwnd, _In_ int nFolder, _In_opt_ HANDLE hToken, _In_ DWORD dwFlags, _Out_writes_(MAX_PATH) LPSTR pszPath)
UINT nMaxIds
Definition: shlobj.h:1300
#define THIS_
Definition: basetyps.h:65
LPITEMIDLIST WINAPI ILCreateFromPathA(_In_ LPCSTR)
tagOPEN_AS_INFO_FLAGS
Definition: shlobj.h:2433
BOOL fDesktopHTML
Definition: shlobj.h:1464
LPCWSTR pcszFile
Definition: shlobj.h:2448
IShellFolderViewCB * psfvcb
Definition: shlobj.h:1276
_In_ BOOLEAN Release
Definition: classpnp.h:929
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
UINT fUnusedFlags
Definition: shlobj.h:2187
struct _SHDESCRIPTIONID * LPSHDESCRIPTIONID
POINT pt
Definition: shlobj.h:2116
const HKEY * aKeys
Definition: shlobj.h:2348
static const WCHAR CFSTR_DRAGCONTEXTW[]
Definition: shlobj.h:453
DWORD nFileSizeHigh
Definition: shlobj.h:2147
BOOL fDesktopHTML
Definition: shlobj.h:1503
struct _FILEDESCRIPTORA FILEDESCRIPTORA
BOOL WINAPI GetFileNameFromBrowse(_In_opt_ HWND, _Inout_updates_(cchFilePath) LPWSTR, UINT cchFilePath, _In_opt_ LPCWSTR, _In_ LPCWSTR, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
#define THIS
Definition: basetyps.h:66
BOOL WINAPI SHObjectProperties(_In_opt_ HWND, _In_ DWORD, _In_ LPCWSTR, _In_opt_ LPCWSTR)
LPFNVIEWCALLBACK pfnCallback
Definition: shlobj.h:1199
interface IMalloc * LPMALLOC
Definition: objfwd.h:12
REFIID riid
Definition: precomp.h:44
uint16_t * PWSTR
Definition: typedefs.h:54
LPITEMIDLIST WINAPI ILCreateFromPathW(_In_ LPCWSTR)
BOOL ApplyChanges(HWND hwndDlg)
Definition: sounds.c:961
LPCITEMIDLIST pidlRoot
Definition: shlobj.h:1108
LPSTR pszWebViewTemplate
Definition: shlobj.h:51
#define __WINE_ALLOC_SIZE(x)
Definition: winnt_old.h:84
struct _QCMINFO_IDMAP_PLACEMENT QCMINFO_IDMAP_PLACEMENT
FILETIME ftLastAccessTime
Definition: shlobj.h:2131
BOOL fDontPrettyPath
Definition: shlobj.h:1506
int WINAPI IsNetDrive(int)
Definition: shlfileop.cpp:2001
HRESULT WINAPI SHGetDataFromIDListW(_In_ LPSHELLFOLDER psf, _In_ LPCITEMIDLIST pidl, int nFormat, _Out_writes_bytes_(cb) LPVOID pv, int cb)
BOOL fDontPrettyPath
Definition: shlobj.h:1466
INT WINAPI PickIconDlg(_In_opt_ HWND, _Inout_updates_(cchIconPath) LPWSTR, UINT cchIconPath, _Inout_opt_ int *)
#define _In_reads_(size)
Definition: no_sal2.h:228
BOOL fShowInfoTip
Definition: shlobj.h:1469
char CHAR
Definition: xmlstorage.h:175
static const WCHAR CFSTR_PRINTERGROUPW[]
Definition: shlobj.h:439
BOOL fShowSysFiles
Definition: shlobj.h:1499
Definition: shlobj.h:1192
BOOL fWin95Classic
Definition: shlobj.h:1465
LPWSTR pszWebViewTemplate
Definition: shlobj.h:70
#define INT
Definition: polytest.cpp:20
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
Definition: shtypes.idl:42
IContextMenuCB * pcmcb
Definition: shlobj.h:2341
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
Definition: pidl.c:1280
LONG lEvents
Definition: shlobj.h:1198
#define CALLBACK
Definition: compat.h:27
static const WCHAR CFSTR_PERFORMEDDROPEFFECTW[]
Definition: shlobj.h:447
BOOL fHideIcons
Definition: shlobj.h:1470
HWND hWnd
Definition: settings.c:17
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define _Outptr_
Definition: no_sal2.h:396
OPEN_AS_INFO_FLAGS oaifInFlags
Definition: shlobj.h:2450
HMENU hmenu
Definition: shlobj.h:1306
BOOL fShowStartPage
Definition: shlobj.h:1485
DWORD dwState
Definition: shlobj.h:2550
struct BANDINFOSFB * PBANDINFOSFB
HANDLE HWND
Definition: compat.h:13
_In_ int nFolder
Definition: shlobj.h:1435
IShellView * psvOuter
Definition: shlobj.h:1275
HWND hwndOwner
Definition: shlobj.h:1118
const ITEMID_CHILD UNALIGNED * PCUITEMID_CHILD
Definition: shtypes.idl:70
struct tagOPENASINFO OPENASINFO
static const WCHAR CFSTR_FILENAMEMAPW[]
Definition: shlobj.h:437
struct _CSFV * LPCSFV
static const WCHAR CFSTR_SHELLURLW[]
Definition: shlobj.h:441
HRESULT WINAPI SHCreateShellFolderView(_In_ const SFV_CREATE *pscfv, _Outptr_ IShellView **ppsv)
BOOL(CALLBACK * LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM)
Definition: prsht.h:309
struct _FILEGROUPDESCRIPTORW FILEGROUPDESCRIPTORW
#define _Check_return_
Definition: no_sal2.h:13
static BOOL Append(LPWSTR *ppszText, DWORD *pdwTextLen, LPCWSTR pszAppendText, DWORD dwAppendLen)
Definition: text.c:26
_Out_writes_(MAX_PATH) LPSTR)
interface IStream * LPSTREAM
Definition: objfwd.h:10
static int int const SCRIPT_CONTROL const SCRIPT_STATE SCRIPT_ITEM ULONG int * pcItems
Definition: usp10.c:62
UINT_PTR WPARAM
Definition: windef.h:207
BOOL WINAPI DAD_AutoScroll(HWND, AUTO_SCROLL_DATA *, const POINT *)
Definition: shellord.c:1143
BOOL fShowInfoTip
Definition: shlobj.h:1509
LPITEMIDLIST WINAPI ILFindChild(_In_ LPCITEMIDLIST, _In_ LPCITEMIDLIST)
UINT uFlags
Definition: api.c:60
NTSTATUS QueryInterface(IN PDEVICE_OBJECT DeviceObject, IN CONST GUID InterfaceType, IN LONG Size, IN LONG Version, OUT PVOID Interface)
Definition: fdo.c:532
UINT fSpareFlags
Definition: shlobj.h:1486
HRESULT WINAPI SHLoadOLE(LPARAM)
Definition: shellord.c:1330
_Check_return_ HRESULT WINAPI SHGetInstanceExplorer(_Outptr_ IUnknown **)
char * LPSTR
Definition: xmlstorage.h:182
DWORD WINAPI SHFormatDrive(_In_ HWND, UINT, UINT, UINT)
BOOL fMapNetDrvBtn
Definition: shlobj.h:1508
BOOL fNotShell
Definition: shlobj.h:2180
struct _SHChangeDWORDAsIDList SHChangeDWORDAsIDList
COLORREF crBtnLt
Definition: shlobj.h:2552
#define BOOL
Definition: nt_native.h:43
BOOL fDontPrettyNames
Definition: shlobj.h:2185
BOOL fShowSuperHidden
Definition: shlobj.h:1473
BFFCALLBACK lpfn
Definition: shlobj.h:1112
int cxSmall
Definition: shlobj.h:796
#define DWORD
Definition: nt_native.h:44
int32_t INT
Definition: typedefs.h:56
HRESULT WINAPI SHDefExtractIconW(_In_ LPCWSTR pszIconFile, int iIndex, UINT uFlags, _Out_opt_ HICON *phiconLarge, _Out_opt_ HICON *phiconSmall, UINT nIconSize)
WPARAM wParam
Definition: combotst.c:138
LPITEMIDLIST WINAPI ILCloneFirst(_In_ LPCITEMIDLIST)
INT WINAPI SHHandleUpdateImage(_In_ LPCITEMIDLIST)
LPCWSTR pcszClass
Definition: shlobj.h:2449
#define _In_opt_
Definition: no_sal2.h:213
#define STDMETHOD(m)
Definition: basetyps.h:62
LPITEMIDLIST WINAPI ILFindLastID(_In_ LPCITEMIDLIST)
FILEDESCRIPTORW fgd[1]
Definition: shlobj.h:2165
HRESULT WINAPI CIDLData_CreateFromIDArray(_In_ PCIDLIST_ABSOLUTE pidlFolder, _In_ UINT cidl, _In_reads_opt_(cidl) PCUIDLIST_RELATIVE_ARRAY apidl, _Outptr_ IDataObject **ppdtobj)
struct SHFOLDERCUSTOMSETTINGSW * LPSHFOLDERCUSTOMSETTINGSW
struct _FILEGROUPDESCRIPTORA FILEGROUPDESCRIPTORA
RESTRICTIONS
Definition: shlobj.h:1537
VOID WINAPI SHUpdateImageW(_In_ LPCWSTR, INT, UINT, INT)
void WINAPI SHAddToRecentDocs(UINT, _In_opt_ LPCVOID)
LPITEMIDLIST WINAPI ILCombine(_In_opt_ LPCITEMIDLIST, _In_opt_ LPCITEMIDLIST)
uint32_t ULONG_PTR
Definition: typedefs.h:63
BOOL fSepProcess
Definition: shlobj.h:1483
LPITEMIDLIST WINAPI ILAppendID(_In_opt_ LPITEMIDLIST, _In_ LPCSHITEMID, BOOL)
BOOL fFilter
Definition: shlobj.h:1472
_Success_(return !=0) BOOL WINAPI SHGetPathFromIDListA(_In_ LPCITEMIDLIST
Definition: fsctrl.c:3139
static const WCHAR CFSTR_PASTESUCCEEDEDW[]
Definition: shlobj.h:449
IShellView * psvOuter
Definition: shlobj.h:1196
WORD nVersion
Definition: shlobj.h:2177
static const WCHAR CFSTR_NETRESOURCESW[]
Definition: shlobj.h:429
BOOL fNoConfirmRecycle
Definition: shlobj.h:1498
HINSTANCE hInstance
Definition: charmap.c:20
BOOL WINAPI SHGetSpecialFolderPathA(HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate)
Definition: shellpath.c:2553
int iSortDirection
Definition: shlobj.h:1480
struct _ITEMSPACING ITEMSPACING
VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
Definition: shellord.c:198
IShellFolder * psf
Definition: shlobj.h:2343
BOOL WINAPI SHChangeNotification_Unlock(_In_ HANDLE hLock)
LPSTR pszDisplayName
Definition: shlobj.h:1109
const PCUITEMID_CHILD * PCUITEMID_CHILD_ARRAY
Definition: shtypes.idl:71
BOOL WINAPI DAD_DragMove(POINT)
Definition: shellord.c:1170
LONG WINAPI PathProcessCommand(_In_ LPCWSTR, _Out_writes_(cchDest) LPWSTR, int cchDest, DWORD)
HRESULT WINAPI ILLoadFromStream(_In_ LPSTREAM, _Inout_ LPITEMIDLIST *)
BOOL fShowAllObjects
Definition: shlobj.h:1457
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:90
#define DECL_WINELIB_TYPE_AW(type)
Definition: windef.h:386
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
BOOL fSaveLocalView
Definition: shlobj.h:2179
int cyLarge
Definition: shlobj.h:799
LPWSTR pszDisplayName
Definition: shlobj.h:1120
static LPUNKNOWN
Definition: ndr_ole.c:49
PIDLIST_ABSOLUTE pidl
Definition: shlobj.h:2557
UINT WINAPI SHAddFromPropSheetExtArray(_In_ HPSXA, _In_ LPFNADDPROPSHEETPAGE, LPARAM)
LPWSTR pszWebViewTemplateVersion
Definition: shlobj.h:72
DWORD WINAPI SHCLSIDFromStringA(_In_ LPCSTR, _Out_ CLSID *)
int WINAPI SHMapPIDLToSystemImageListIndex(_In_ IShellFolder *, _In_ LPCITEMIDLIST, _Out_opt_ int *)
r reserved
Definition: btrfs.c:2893
LPVOID WINAPI SHAlloc(SIZE_T) __WINE_ALLOC_SIZE(1)
Definition: shellole.c:309
struct _SHDESCRIPTIONID SHDESCRIPTIONID
static const WCHAR CFSTR_FILECONTENTSW[]
Definition: shlobj.h:433
BOOL fShowCompColor
Definition: shlobj.h:2184
const WCHAR * str
void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2)
Definition: changenotify.c:340
BOOL WINAPI ReadCabinetState(_Out_writes_bytes_(cLength) CABINETSTATE *, int cLength)
SHELL_LINK_DATA_FLAGS
Definition: shlobj.h:1772
FILETIME ftLastWriteTime
Definition: shlobj.h:2132
QCMINFO_IDMAP_PLACEMENT pIdList[1]
Definition: shlobj.h:1301
struct _FILEGROUPDESCRIPTORW * LPFILEGROUPDESCRIPTORW
_In_ ULONG _In_opt_ PVOID pvData
Definition: winddi.h:3748
static const WCHAR CFSTR_SHELLIDLISTW[]
Definition: shlobj.h:425
struct SHELLFLAGSTATE * LPSHELLFLAGSTATE
struct tagDATABLOCKHEADER * LPDATABLOCK_HEADER
BOOL fShowCompColor
Definition: shlobj.h:1462
static HWND hwndParent
Definition: cryptui.c:300
struct EXP_DARWIN_LINK * LPEXP_DARWIN_LINK
void WINAPI SHDestroyPropSheetExtArray(_In_ HPSXA)
#define INTERNET_MAX_URL_LENGTH
Definition: session.c:1380
static const WCHAR CFSTR_SHELLIDLISTOFFSETW[]
Definition: shlobj.h:427
#define _Out_writes_bytes_(size)
Definition: no_sal2.h:370
#define _Out_
Definition: no_sal2.h:323
BOOL fShowCompColor
Definition: shlobj.h:1501
WORD wAlign
Definition: shlobj.h:2555
LONG_PTR LPARAM
Definition: windef.h:208
#define LPRECT
Definition: precomp.h:28
_In_ BOOLEAN Remove
Definition: psfuncs.h:110
UINT indexMenu
Definition: shlobj.h:1307
_Inout_ PERBANDINFO * pbi
Definition: winddi.h:3917
BOOL WINAPI DAD_SetDragImage(HIMAGELIST, LPPOINT)
Definition: shellord.c:1190
_Check_return_ HRESULT WINAPI SHGetDesktopFolder(_Outptr_ IShellFolder **)
FOLDERVIEWMODE
Definition: shobjidl.idl:658
WORD wViewMode
Definition: shlobj.h:2554
const char * LPCSTR
Definition: xmlstorage.h:183
struct _SFV_CREATE SFV_CREATE
struct _SHChangeNotifyEntry SHChangeNotifyEntry
BOOL fNC
Definition: shlobj.h:2117
HRESULT WINAPI SHGetFolderLocation(_Reserved_ HWND hwndOwner, _In_ int nFolder, _In_opt_ HANDLE hToken, _In_ DWORD dwReserved, _Outptr_ LPITEMIDLIST *ppidl)
int WINAPI SHCreateDirectoryExW(_In_opt_ HWND, _In_ LPCWSTR, _In_opt_ LPSECURITY_ATTRIBUTES)
static const WCHAR dwHeight[]
Definition: provider.c:60
DEFINE_GUID(IID_IShellFolderView, 0x37a378c0, 0xf82d, 0x11ce, 0xae, 0x65, 0x08, 0x00, 0x2b, 0x2e, 0x12, 0x62)
#define AddDesktopItem
Definition: userenv.h:205
struct _FILEDESCRIPTORW FILEDESCRIPTORW
BOOL fShowSysFiles
Definition: shlobj.h:1461
HRESULT WINAPI SHCreateShellItem(_In_opt_ LPCITEMIDLIST, _In_opt_ IShellFolder *, _In_ LPCITEMIDLIST, _Outptr_ IShellItem **)
LPCWSTR lpszTitle
Definition: shlobj.h:1121
DWORD dwFileAttributes
Definition: shlobj.h:2143
DWORD WINAPI SHCLSIDFromStringW(_In_ LPCWSTR, _Out_ CLSID *)
BOOL WINAPI ILIsEqual(_In_ LPCITEMIDLIST, _In_ LPCITEMIDLIST)
#define _Out_opt_
Definition: no_sal2.h:339
LPCITEMIDLIST pidlRoot
Definition: shlobj.h:1119
BOOL fWin95Classic
Definition: shlobj.h:1504
struct tagBROWSEINFOA * LPBROWSEINFOA
struct CABINETSTATE * LPCABINETSTATE
COLORREF crBtnDk
Definition: shlobj.h:2553
int GPFIDL_FLAGS
Definition: shlobj.h:111
DWORD nFileSizeHigh
Definition: shlobj.h:2133
FILETIME ftLastAccessTime
Definition: shlobj.h:2145
DWORD WINAPI GetSize(LPVOID)
BOOL WINAPI DAD_DragLeave(void)
Definition: shellord.c:1179
HRESULT WINAPI SHGetFolderPathW(_Reserved_ HWND hwnd, _In_ int nFolder, _In_opt_ HANDLE hToken, _In_ DWORD dwFlags, _Out_writes_(MAX_PATH) LPWSTR pszPath)
HRESULT WINAPI SHILCreateFromPath(_In_ LPCWSTR, _Outptr_ LPITEMIDLIST *, _Inout_opt_ DWORD *)
void WINAPI SHFree(_In_opt_ LPVOID)
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
DWORD COLORREF
Definition: windef.h:285
uint64_t ULONGLONG
Definition: typedefs.h:65
UINT idCmdFirst
Definition: shlobj.h:1308
BOOL fNewWindowMode
Definition: shlobj.h:2183
#define _Outptr_result_buffer_(size)
Definition: no_sal2.h:414
struct tagBROWSEINFOA BROWSEINFOA
POINTL pointl
Definition: shlobj.h:2128
FILETIME ftLastWriteTime
Definition: shlobj.h:2146
#define MAX_PATH
Definition: compat.h:26
#define WINAPI
Definition: msvc.h:8
HRESULT WINAPI SHStartNetConnectionDialog(HWND, LPCSTR, DWORD)
Definition: shellord.c:1956
HRESULT WINAPI SHCreateDefaultExtractIcon(REFIID riid, void **ppv)
BOOL fWide
Definition: shlobj.h:2118
void(CALLBACK * PFNASYNCICONTASKBALLBACK)(LPCITEMIDLIST pidl, LPVOID pvData, LPVOID pvHint, INT iIconIndex, INT iOpenIconIndex)
Definition: shlobj.h:2537
UINT WINAPI Shell_MergeMenus(_In_ HMENU hmDst, _In_ HMENU hmSrc, UINT uInsert, UINT uIDAdjust, UINT uIDAdjustMax, ULONG uFlags)
BOOL WINAPI IsUserAnAdmin(void)
Definition: shellord.c:2147
LPCITEMIDLIST pidl
Definition: shlobj.h:1197
LPITEMIDLIST WINAPI ILGetNext(_In_opt_ LPCITEMIDLIST)
struct CIDA * LPIDA
#define _Outptr_result_maybenull_
Definition: no_sal2.h:426
BOOL fFullPathTitle
Definition: shlobj.h:2178
unsigned short WORD
Definition: ntddk_ex.h:93
UINT cidl
Definition: shlobj.h:491
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI ILIsParent(_In_ LPCITEMIDLIST, _In_ LPCITEMIDLIST, BOOL)
HRESULT WINAPI SHParseDisplayName(_In_ LPCWSTR, _In_opt_ IBindCtx *, _Outptr_ LPITEMIDLIST *, _In_ SFGAOF, _Out_opt_ SFGAOF *)
#define _Inout_
Definition: no_sal2.h:244
DECLARE_INTERFACE_(IShellDetails, IUnknown)
Definition: shlobj.h:564
HRESULT WINAPI SHCreateDataObject(_In_opt_ PCIDLIST_ABSOLUTE pidlFolder, _In_ UINT cidl, _In_reads_opt_(cidl) PCUITEMID_CHILD_ARRAY apidl, _In_opt_ IDataObject *pdtInner, _In_ REFIID riid, _Outptr_ void **ppv)
DWORD dwLastScroll
Definition: shlobj.h:2253
POINTL pointl
Definition: shlobj.h:2142
FILETIME ftCreationTime
Definition: shlobj.h:2130
static DWORD cb
Definition: integrity.c:41
#define GetObject
Definition: wingdi.h:4463
HRESULT WINAPI GetInfoTip(IUnknown *param8, long paramC, LPTSTR *param10, long cchMax)
UINT cchMax
static const WCHAR CFSTR_PREFERREDDROPEFFECTW[]
Definition: shlobj.h:445
_In_ UINT _In_ UINT cEntries
Definition: wingdi.h:3615
LPCSTR lpszTitle
Definition: shlobj.h:1110
INT(CALLBACK * BFFCALLBACK)(HWND, UINT, LPARAM, LPARAM)
Definition: shlobj.h:1102
SHELLVIEWID * pvid
Definition: shlobj.h:69
#define _Reserved_
Definition: no_sal2.h:573
#define NUM_POINTS
Definition: shlobj.h:2249
struct _TBINFO TBINFO
DWORD cchWebViewTemplate
Definition: shlobj.h:71
static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW[]
Definition: shlobj.h:464
BOOL fDontShowDescBar
Definition: shlobj.h:2182
DWORD dwDescriptionId
Definition: shlobj.h:1396
BOOL fShowAllObjects
Definition: shlobj.h:1496
HWND WINAPI GetWindow(_In_ HWND, _In_ UINT)
HRESULT WINAPI SHGetFolderPathAndSubDirA(_Reserved_ HWND, _In_ int, _In_opt_ HANDLE, _In_ DWORD, _In_opt_ LPCSTR, _Out_writes_(MAX_PATH) LPSTR)
static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW[]
Definition: shlobj.h:461
struct _SHChangeProductKeyAsIDList SHChangeProductKeyAsIDList
BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID)
Definition: changenotify.c:283
FILETIME ftCreationTime
Definition: shlobj.h:2144
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
HRESULT(CALLBACK * LPFNDFMCALLBACK)(_In_opt_ IShellFolder *, _In_opt_ HWND, _In_opt_ IDataObject *, UINT, WPARAM, LPARAM)
Definition: shlobj.h:2359
DWORD cchWebViewTemplate
Definition: shlobj.h:52
BOOL fHideIcons
Definition: shlobj.h:1511
struct SHELLSTATE * LPSHELLSTATE
_In_ SURFOBJ _In_ CLIPOBJ * pco
Definition: winddi.h:3414
unsigned char BYTE
Definition: mem.h:68
struct EXP_SPECIAL_FOLDER * LPEXP_SPECIAL_FOLDER
HRESULT WINAPI SHCreateStdEnumFmtEtc(_In_ UINT cfmt, _In_reads_(cfmt) const FORMATETC *, _Outptr_ IEnumFORMATETC **)
HRESULT(CALLBACK * LPFNVIEWCALLBACK)(_In_ IShellView *dwUser, _In_ IShellFolder *pshf, _In_ HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: shlobj.h:1182
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define _Outptr_opt_
Definition: no_sal2.h:397
BOOL fDoubleClickInWebView
Definition: shlobj.h:1463
LPCITEMIDLIST pidl
Definition: shlobj.h:1716
struct _TBINFO * LPTBINFO
FOLDERVIEWMODE fvm
Definition: shlobj.h:1200
UINT fMenuEnumFilter
Definition: shlobj.h:2189
int WINAPI DriveType(int)
Definition: shellord.c:1338
BOOL WINAPI ILRemoveLastID(_Inout_opt_ LPITEMIDLIST)
struct tagDATABLOCKHEADER DATABLOCK_HEADER
BOOL fShowAttribCol
Definition: shlobj.h:1467
VOID WINAPI SHUpdateImageA(_In_ LPCSTR, INT, UINT, INT)
Definition: bl.h:1338
struct _QCMINFO QCMINFO
BOOL WINAPI DAD_DragEnterEx(HWND, POINT)
Definition: shellord.c:1161
struct SHFOLDERCUSTOMSETTINGSA * LPSHFOLDERCUSTOMSETTINGSA
UINT ulFlags
Definition: shlobj.h:1111
int WINAPI RestartDialogEx(_In_opt_ HWND, _In_opt_ LPCWSTR, DWORD, DWORD)
BOOL fSimpleDefault
Definition: shlobj.h:2181
#define _In_
Definition: no_sal2.h:204
LPSTR pszWebViewTemplateVersion
Definition: shlobj.h:53
UINT cbSize
Definition: shlobj.h:1194
struct _SHChangeDWORDAsIDList * LPSHChangeDWORDAsIDList
ULONG_PTR SIZE_T
Definition: typedefs.h:78
HRESULT WINAPI SHLimitInputEdit(_In_ HWND hwnd, _In_ IShellFolder *folder)
IShellFolder * pshf
Definition: shlobj.h:1274
LPITEMIDLIST WINAPI SHCloneSpecialIDList(_Reserved_ HWND hwnd, _In_ int csidl, _In_ BOOL fCreate)
BOOL fWebView
Definition: shlobj.h:1471
int WINAPI RestartDialog(_In_opt_ HWND, _In_opt_ LPCWSTR, DWORD)
LPITEMIDLIST WINAPI ILClone(_In_ LPCITEMIDLIST)
struct _FILEDESCRIPTORA * LPFILEDESCRIPTORA
LPARAM lParam
Definition: shlobj.h:1113
UINT uNotUsed
Definition: shlobj.h:1482
UINT ulFlags
Definition: shlobj.h:1122
int WINAPI PathCleanupSpec(_In_opt_ LPCWSTR, _Inout_ LPWSTR)
BOOL fMapNetDrvBtn
Definition: shlobj.h:1468
HRESULT WINAPI SHDoDragDrop(_In_opt_ HWND, _In_ IDataObject *, _In_opt_ IDropSource *, _In_ DWORD, _Out_ LPDWORD)
_Out_ PULONG _Out_ PULONG pIndex
Definition: ndis.h:4564
LONG lParamSort
Definition: shlobj.h:1479
_In_ int _In_ BOOL bCreate
Definition: shlobj.h:1435
void WINAPI ILFree(_In_opt_ LPITEMIDLIST)
VOID WINAPI SHGetSettings(_Out_ LPSHELLFLAGSTATE lpsfs, DWORD dwMask)
UINT cbSize
Definition: shlobj.h:1273
BOOL WINAPI SHGetSpecialFolderPathW(HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate)
Definition: shellpath.c:2566
LPARAM lParam
Definition: shlobj.h:1124
DATABLOCK_HEADER dbh
Definition: shlobj.h:1851
int OPEN_AS_INFO_FLAGS
Definition: shlobj.h:2444
unsigned short USHORT
Definition: pedump.c:61
LPCWSTR szPath
Definition: env.c:35
DWORD WINAPI SHRestricted(RESTRICTIONS rest)
Definition: shpolicy.c:836
static const WCHAR CFSTR_INETURLW[]
Definition: shlobj.h:443
static const WCHAR CFSTR_PERSISTEDDATAOBJECTW[]
Definition: shlobj.h:457
WORD cLength
Definition: shlobj.h:2176
LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR)
BOOL WINAPI WriteCabinetState(_In_ CABINETSTATE *)
IShellFolder * psf
Definition: shlobj.h:2556
BFFCALLBACK lpfn
Definition: shlobj.h:1123
DWORD dwMask
Definition: shlobj.h:2548
HRESULT WINAPI SHCoCreateInstance(_In_opt_ LPCWSTR, _In_opt_ const CLSID *, _In_opt_ IUnknown *, _In_ REFIID, _Outptr_ LPVOID *)
#define PURE
Definition: basetyps.h:64
unsigned int UINT
Definition: ndis.h:50
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
struct _QCMINFO * LPQCMINFO
LRESULT WINAPI CallCPLEntry16(HINSTANCE hMod, FARPROC pFunc, HWND dw3, UINT dw4, LPARAM dw5, LPARAM dw6)
struct _QCMINFO_IDMAP QCMINFO_IDMAP
_In_ ULONG _In_ ULONG _Inout_updates_(8 *8) ULONG *pul)
Definition: winddi.h:3522
int WINAPI SHCreateDirectoryExA(_In_opt_ HWND, _In_ LPCSTR, _In_opt_ LPSECURITY_ATTRIBUTES)
DWORD dwWin95Unused
Definition: shlobj.h:1477
HRESULT WINAPI SHPathPrepareForWriteA(_In_opt_ HWND, _In_opt_ IUnknown *, _In_ LPCSTR, DWORD)
VOID WINAPI SHSetInstanceExplorer(_In_opt_ IUnknown *)
#define _In_reads_opt_(size)
Definition: no_sal2.h:231
static const WCHAR CFSTR_FILENAMEW[]
Definition: shlobj.h:435
UINT cbuttons
Definition: shlobj.h:1323
CONST void * LPCVOID
Definition: windef.h:191
BOOL fShowAttribCol
Definition: shlobj.h:1507
DWORD dwStateMask
Definition: shlobj.h:2549
KNOWN_FOLDER_FLAG
Definition: shlobj.h:96
BOOL fAdminsCreateCommonGroups
Definition: shlobj.h:2186
HRESULT WINAPI SHOpenWithDialog(_In_opt_ HWND hwndParent, _In_ const OPENASINFO *poainfo)
IShellFolder * pshf
Definition: shlobj.h:1195
DECLARE_HANDLE(HPSXA)
UINT WINAPI SHReplaceFromPropSheetExtArray(_In_ HPSXA, UINT, _In_ LPFNADDPROPSHEETPAGE, LPARAM)
struct _SHChangeProductKeyAsIDList * LPSHChangeProductKeyAsIDList
uint32_t * LPDWORD
Definition: typedefs.h:57
static BOOL ILIsEmpty(_In_opt_ LPCITEMIDLIST pidl)
Definition: shlobj.h:2310
unsigned int ULONG
Definition: retypes.h:1
ULONG WINAPI SHChangeNotifyRegister(_In_ HWND hwnd, int fSources, LONG fEvents, UINT wMsg, int cEntries, _In_ SHChangeNotifyEntry *pshcne)
HRESULT WINAPI SHBindToParent(_In_ LPCITEMIDLIST pidl, _In_ REFIID riid, _Outptr_ LPVOID *ppv, _Outptr_opt_ LPCITEMIDLIST *ppidlLast)
struct _FILEGROUPDESCRIPTORA * LPFILEGROUPDESCRIPTORA
BOOL fShowExtensions
Definition: shlobj.h:1458
LPITEMIDLIST WINAPI SHBrowseForFolderA(_In_ LPBROWSEINFOA lpbi)
IUnknown * punkAssociationInfo
Definition: shlobj.h:2346
struct tagDATABLOCKHEADER * LPDBLIST
struct _FILEDESCRIPTORW * LPFILEDESCRIPTORW
WCHAR cFileName[MAX_PATH]
Definition: shlobj.h:2149
BOOL WINAPI PathYetAnotherMakeUniqueName(LPWSTR buffer, LPCWSTR path, LPCWSTR shortname, LPCWSTR longname)
Definition: shellpath.c:319
DWORD dwFileAttributes
Definition: shlobj.h:2129
static const WCHAR CFSTR_TARGETCLSIDW[]
Definition: shlobj.h:459
CHAR cFileName[MAX_PATH]
Definition: shlobj.h:2135
int cySmall
Definition: shlobj.h:797
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LONG_PTR LRESULT
Definition: windef.h:209
struct _DROPFILES DROPFILES
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
HRESULT WINAPI SHCreateDefaultContextMenu(_In_ const DEFCONTEXTMENU *, _In_ REFIID, _Outptr_ void **ppv)
LRESULT WINAPI SHShellFolderView_Message(_In_ HWND hwndCabinet, UINT uMessage, LPARAM lParam)
DWORD pFiles
Definition: shlobj.h:2115
PCUITEMID_CHILD_ARRAY apidl
Definition: shlobj.h:2345
BOOL fDoubleClickInWebView
Definition: shlobj.h:1502
HWND hwndOwner
Definition: shlobj.h:1107
struct tagBROWSEINFOW BROWSEINFOW
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41
#define KF_FLAG_DEFAULT_PATH
Definition: shlobj.h:290
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
PCIDLIST_ABSOLUTE pidlFolder
Definition: shlobj.h:2342
LPARAM lParam
Definition: combotst.c:139
void GetDirectory(LPTSTR wholepath, LPTSTR directory, BOOL CheckExisting)
Definition: move.c:65
struct tagBROWSEINFOW * PBROWSEINFOW
HRESULT WINAPI SHPathPrepareForWriteW(_In_opt_ HWND, _In_opt_ IUnknown *, _In_ LPCWSTR, DWORD)
HPSXA WINAPI SHCreatePropSheetExtArray(_In_ HKEY, _In_opt_ LPCWSTR, UINT)
HRESULT WINAPI SHDefExtractIconA(_In_ LPCSTR pszIconFile, int iIndex, UINT uFlags, _Out_opt_ HICON *phiconLarge, _Out_opt_ HICON *phiconSmall, UINT nIconSize)
SHGFP_TYPE
Definition: shlobj.h:1978
COLORREF crBkgnd
Definition: shlobj.h:2551
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54
int(* FARPROC)()
Definition: compat.h:28
BOOL fNoConfirmRecycle
Definition: shlobj.h:1459
BOOL WINAPI DAD_DragEnterEx2(_In_ HWND, POINT, _In_opt_ IDataObject *)
static const WCHAR dwWidth[]
Definition: provider.c:59
SHELLVIEWID * pvid
Definition: shlobj.h:50
static IShellFolder IShellItem **static IBindCtx LPITEMIDLIST SFGAOF
Definition: ebrowser.c:83
_Check_return_ HRESULT WINAPI SHGetMalloc(_Outptr_ LPMALLOC *lpmal)
struct tagBROWSEINFOW * LPBROWSEINFOW
HRESULT WINAPI SHCreateShellFolderViewEx(_In_ LPCSFV pshfvi, _Outptr_ IShellView **ppshv)
int WINAPI SHCreateDirectory(_In_opt_ HWND, _In_ LPCWSTR)
HRESULT WINAPI SHGetDataFromIDListA(_In_ LPSHELLFOLDER psf, _In_ LPCITEMIDLIST pidl, int nFormat, _Out_writes_bytes_(cb) LPVOID pv, int cb)
static const WCHAR CFSTR_MOUNTEDVOLUMEW[]
Definition: shlobj.h:455
Definition: shlobj.h:490
int WINAPI RealDriveType(int, BOOL)
static const WCHAR CFSTR_FILEDESCRIPTORW[]
Definition: shlobj.h:431
#define _Inout_opt_
Definition: no_sal2.h:258
BOOL fShowExtensions
Definition: shlobj.h:1497
UINT uFlags
Definition: shlobj.h:1324
HANDLE WINAPI SHChangeNotification_Lock(_In_ HANDLE hChangeNotification, DWORD dwProcessId, _Outptr_opt_result_buffer_(2) _Outptr_opt_result_buffer_(2) LPITEMIDLIST **pppidl, _Out_opt_ LONG *plEvent)