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