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