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