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