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