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