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
29 #ifdef WINE_NO_UNICODE_MACROS
35 #endif /* defined(__cplusplus) */
41 # define WINSHELLAPI DECLSPEC_IMPORT
45 /* Except for specific structs, this header is byte packed */
50 DECLARE_HANDLE(HPSXA
);
55 KF_FLAG_DEFAULT
= 0x00000000,
56 KF_FLAG_SIMPLE_IDLIST
= 0x00000100,
57 KF_FLAG_NOT_PARENT_RELATIVE
= 0x00000200,
58 KF_FLAG_DEFAULT_PATH
= 0x00000400,
59 KF_FLAG_INIT
= 0x00000800,
60 KF_FLAG_NO_ALIAS
= 0x00001000,
61 KF_FLAG_DONT_UNEXPAND
= 0x00002000,
62 KF_FLAG_DONT_VERIFY
= 0x00004000,
63 KF_FLAG_CREATE
= 0x00008000,
64 KF_FLAG_NO_APPCONTAINER_REDIRECTION
= 0x00010000,
65 KF_FLAG_ALIAS_ONLY
= 0x80000000
70 GPFIDL_DEFAULT
= 0x00,
71 GPFIDL_ALTNAME
= 0x01,
72 GPFIDL_UNCPRINTER
= 0x02
75 typedef int GPFIDL_FLAGS
;
77 WINSHELLAPI UINT WINAPI
SHAddFromPropSheetExtArray(HPSXA
,LPFNADDPROPSHEETPAGE
,LPARAM
);
78 WINSHELLAPI LPVOID WINAPI
SHAlloc(ULONG
) __WINE_ALLOC_SIZE(1);
79 WINSHELLAPI HRESULT WINAPI
SHCoCreateInstance(LPCWSTR
,const CLSID
*,IUnknown
*,REFIID
,LPVOID
*);
80 WINSHELLAPI HPSXA WINAPI
SHCreatePropSheetExtArray(HKEY
,LPCWSTR
,UINT
);
81 WINSHELLAPI HPSXA WINAPI
SHCreatePropSheetExtArrayEx(HKEY
,LPCWSTR
,UINT
,IDataObject
*);
82 WINSHELLAPI HRESULT WINAPI
SHCreateQueryCancelAutoPlayMoniker(IMoniker
**);
83 WINSHELLAPI HRESULT WINAPI
SHCreateShellItem(LPCITEMIDLIST
,IShellFolder
*,LPCITEMIDLIST
,IShellItem
**);
84 WINSHELLAPI DWORD WINAPI
SHCLSIDFromStringA(LPCSTR
,CLSID
*);
85 WINSHELLAPI DWORD WINAPI
SHCLSIDFromStringW(LPCWSTR
,CLSID
*);
86 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
87 WINSHELLAPI HRESULT WINAPI
SHCreateStdEnumFmtEtc(DWORD
,const FORMATETC
*,IEnumFORMATETC
**);
88 WINSHELLAPI
void WINAPI
SHDestroyPropSheetExtArray(HPSXA
);
89 WINSHELLAPI BOOL WINAPI
SHFindFiles(LPCITEMIDLIST
,LPCITEMIDLIST
);
90 WINSHELLAPI DWORD WINAPI
SHFormatDrive(HWND
,UINT
,UINT
,UINT
);
91 WINSHELLAPI
void WINAPI
SHFree(LPVOID
);
92 WINSHELLAPI BOOL WINAPI
GetFileNameFromBrowse(HWND
,LPWSTR
,DWORD
,LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
93 WINSHELLAPI HRESULT WINAPI
SHGetInstanceExplorer(IUnknown
**);
94 WINSHELLAPI HRESULT WINAPI
SHGetFolderPathAndSubDirA(HWND
,int,HANDLE
,DWORD
,LPCSTR
,LPSTR
);
95 WINSHELLAPI HRESULT WINAPI
SHGetFolderPathAndSubDirW(HWND
,int,HANDLE
,DWORD
,LPCWSTR
,LPWSTR
);
96 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir)
97 WINSHELLAPI HRESULT WINAPI
SHGetKnownFolderIDList(REFKNOWNFOLDERID
,DWORD
,HANDLE
,PIDLIST_ABSOLUTE
*);
98 WINSHELLAPI HRESULT WINAPI
SHGetKnownFolderItem(REFKNOWNFOLDERID
,KNOWN_FOLDER_FLAG
,HANDLE
,REFIID
,void**);
99 WINSHELLAPI HRESULT WINAPI
SHGetKnownFolderPath(REFKNOWNFOLDERID
,DWORD
,HANDLE
,PWSTR
*);
100 WINSHELLAPI BOOL WINAPI
SHGetPathFromIDListA(LPCITEMIDLIST
,LPSTR
);
101 WINSHELLAPI BOOL WINAPI
SHGetPathFromIDListW(LPCITEMIDLIST
,LPWSTR
);
102 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
103 WINSHELLAPI BOOL WINAPI
SHGetPathFromIDListEx(PCIDLIST_ABSOLUTE
,WCHAR
*,DWORD
,GPFIDL_FLAGS
);
104 WINSHELLAPI INT WINAPI
SHHandleUpdateImage(LPCITEMIDLIST
);
105 WINSHELLAPI HRESULT WINAPI
SHILCreateFromPath(LPCWSTR
,LPITEMIDLIST
*,DWORD
*);
106 WINSHELLAPI HRESULT WINAPI
SHLoadOLE(LPARAM
);
107 WINSHELLAPI HRESULT WINAPI
SHOpenFolderAndSelectItems(PCIDLIST_ABSOLUTE
,UINT
,PCUITEMID_CHILD_ARRAY
,DWORD
);
108 WINSHELLAPI HRESULT WINAPI
SHParseDisplayName(LPCWSTR
,IBindCtx
*,LPITEMIDLIST
*,SFGAOF
,SFGAOF
*);
109 WINSHELLAPI HRESULT WINAPI
SHPathPrepareForWriteA(HWND
,IUnknown
*,LPCSTR
,DWORD
);
110 WINSHELLAPI HRESULT WINAPI
SHPathPrepareForWriteW(HWND
,IUnknown
*,LPCWSTR
,DWORD
);
111 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite)
112 WINSHELLAPI UINT WINAPI
SHReplaceFromPropSheetExtArray(HPSXA
,UINT
,LPFNADDPROPSHEETPAGE
,LPARAM
);
113 WINSHELLAPI LPITEMIDLIST WINAPI
SHSimpleIDListFromPath(LPCWSTR
);
114 WINSHELLAPI BOOL WINAPI
SHRunControlPanel(LPCWSTR
, HWND
);
115 WINSHELLAPI
int WINAPI
SHMapPIDLToSystemImageListIndex(IShellFolder
*,LPCITEMIDLIST
,int*);
116 WINSHELLAPI HRESULT WINAPI
SHStartNetConnectionDialog(HWND
,LPCSTR
,DWORD
);
117 WINSHELLAPI VOID WINAPI
SHUpdateImageA(LPCSTR
,INT
,UINT
,INT
);
118 WINSHELLAPI VOID WINAPI
SHUpdateImageW(LPCWSTR
,INT
,UINT
,INT
);
119 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
120 WINSHELLAPI
int WINAPI
RestartDialog(HWND
,LPCWSTR
,DWORD
);
121 WINSHELLAPI
int WINAPI
RestartDialogEx(HWND
,LPCWSTR
,DWORD
,DWORD
);
122 WINSHELLAPI
int WINAPI
DriveType(int);
123 WINSHELLAPI
int WINAPI
RealDriveType(int, BOOL
);
124 WINSHELLAPI
int WINAPI
IsNetDrive(int);
125 WINSHELLAPI BOOL WINAPI
IsUserAnAdmin(void);
126 WINSHELLAPI UINT WINAPI
Shell_MergeMenus(HMENU
,HMENU
,UINT
,UINT
,UINT
,ULONG
);
127 WINSHELLAPI BOOL WINAPI
Shell_GetImageLists(HIMAGELIST
*,HIMAGELIST
*);
128 WINSHELLAPI BOOL WINAPI
SignalFileOpen(PCIDLIST_ABSOLUTE
);
130 BOOL WINAPI
ImportPrivacySettings(LPCWSTR
, BOOL
*, BOOL
*);
132 #define SHFMT_ERROR __MSABI_LONG(0xFFFFFFFF) /* Error on last format, drive may be formattable */
133 #define SHFMT_CANCEL __MSABI_LONG(0xFFFFFFFE) /* Last format was cancelled */
134 #define SHFMT_NOFORMAT __MSABI_LONG(0xFFFFFFFD) /* Drive is not formattable */
136 /* SHFormatDrive flags */
137 #define SHFMT_ID_DEFAULT 0xFFFF
138 #define SHFMT_OPT_FULL 1
139 #define SHFMT_OPT_SYSONLY 2
141 /* SHPathPrepareForWrite flags */
142 #define SHPPFW_NONE 0x00000000
143 #define SHPPFW_DIRCREATE 0x00000001
144 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
145 #define SHPPFW_ASKDIRCREATE 0x00000002
146 #define SHPPFW_IGNOREFILENAME 0x00000004
147 #define SHPPFW_NOWRITECHECK 0x00000008
148 #define SHPPFW_MEDIACHECKONLY 0x00000010
150 /* SHObjectProperties flags */
151 #define SHOP_PRINTERNAME 0x01
152 #define SHOP_FILEPATH 0x02
153 #define SHOP_VOLUMEGUID 0x04
155 /* SHOpenFolderAndSelectItems flags */
156 #define OFASI_EDIT 0x0001
157 #define OFASI_OPENDESKTOP 0x0002
159 WINSHELLAPI BOOL WINAPI
SHObjectProperties(HWND
,DWORD
,LPCWSTR
,LPCWSTR
);
161 #define PCS_FATAL 0x80000000
162 #define PCS_REPLACEDCHAR 0x00000001
163 #define PCS_REMOVEDCHAR 0x00000002
164 #define PCS_TRUNCATED 0x00000004
165 #define PCS_PATHTOOLONG 0x00000008
167 WINSHELLAPI
int WINAPI
PathCleanupSpec(LPCWSTR
,LPWSTR
);
169 /* SHOpenWithDialog API */
173 OAIF_ALLOW_REGISTRATION
= 0x00000001,
174 OAIF_REGISTER_EXT
= 0x00000002,
175 OAIF_EXEC
= 0x00000004,
176 OAIF_FORCE_REGISTRATION
= 0x00000008,
177 OAIF_HIDE_REGISTRATION
= 0x00000020,
178 OAIF_URL_PROTOCOL
= 0x00000040,
179 OAIF_FILE_IS_URI
= 0x00000080
180 } OPEN_AS_INFO_FLAGS
;
182 #include <pshpack8.h>
187 OPEN_AS_INFO_FLAGS oaifInFlags
;
191 WINSHELLAPI HRESULT WINAPI
SHOpenWithDialog(HWND
,const OPENASINFO
*);
193 /* Shell_MergeMenus flags */
194 #define MM_ADDSEPARATOR 0x00000001
195 #define MM_SUBMENUSHAVEIDS 0x00000002
196 #define MM_DONTREMOVESEPS 0x00000004
198 /*****************************************************************************
199 * IContextMenu interface
203 /* DATAOBJECT_InitShellIDList*/
204 #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
205 #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
206 #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
207 /* DATAOBJECT_InitFileGroupDesc */
208 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
209 /* DATAOBJECT_InitFileContents*/
210 #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
211 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
212 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
213 #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
214 #define CFSTR_SHELLURLA "UniformResourceLocator"
215 #define CFSTR_INETURLA CFSTR_SHELLURLA
216 #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
217 #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
218 #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
219 #define CFSTR_INDRAGLOOPA "InShellDragLoop"
220 #define CFSTR_DRAGCONTEXTA "DragContext"
221 #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
222 #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
223 #define CFSTR_TARGETCLSIDA "TargetCLSID"
224 #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
225 #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
227 #if defined(__GNUC__)
228 # define CFSTR_SHELLIDLISTW \
229 (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
230 # define CFSTR_SHELLIDLISTOFFSETW \
231 (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
232 # define CFSTR_NETRESOURCESW \
233 (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
234 # define CFSTR_FILEDESCRIPTORW \
235 (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
236 # define CFSTR_FILECONTENTSW \
237 (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
238 # define CFSTR_FILENAMEW \
239 (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
240 # define CFSTR_FILENAMEMAPW \
241 (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
242 # define CFSTR_PRINTERGROUPW \
243 (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
244 # define CFSTR_SHELLURLW \
245 (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 }
246 # define CFSTR_INETURLW \
247 (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 }
248 # define CFSTR_PREFERREDDROPEFFECTW \
249 (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
250 # define CFSTR_PERFORMEDDROPEFFECTW \
251 (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
252 # define CFSTR_PASTESUCCEEDEDW \
253 (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
254 # define CFSTR_INDRAGLOOPW \
255 (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
256 # define CFSTR_DRAGCONTEXTW \
257 (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
258 # define CFSTR_MOUNTEDVOLUMEW \
259 (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
260 # define CFSTR_PERSISTEDDATAOBJECTW \
261 (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
262 # define CFSTR_TARGETCLSIDW \
263 (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
264 # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
265 (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
266 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
267 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
268 (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
269 ' ','D','r','o','p','E','f','f','e','c','t',0 }
270 #elif defined(_MSC_VER)
271 # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
272 # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
273 # define CFSTR_NETRESOURCESW L"Net Resource"
274 # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
275 # define CFSTR_FILECONTENTSW L"FileContents"
276 # define CFSTR_FILENAMEW L"FileNameW"
277 # define CFSTR_FILENAMEMAPW L"FileNameMapW"
278 # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
279 # define CFSTR_SHELLURLW L"UniformResourceLocator"
280 # define CFSTR_INETURLW L"UniformResourceLocatorW"
281 # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
282 # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
283 # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
284 # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
285 # define CFSTR_DRAGCONTEXTW L"DragContext"
286 # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
287 # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
288 # define CFSTR_TARGETCLSIDW L"TargetCLSID"
289 # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
290 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
292 static const WCHAR CFSTR_SHELLIDLISTW
[] =
293 { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
294 static const WCHAR CFSTR_SHELLIDLISTOFFSETW
[] =
295 { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
296 static const WCHAR CFSTR_NETRESOURCESW
[] =
297 { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
298 static const WCHAR CFSTR_FILEDESCRIPTORW
[] =
299 { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
300 static const WCHAR CFSTR_FILECONTENTSW
[] =
301 { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
302 static const WCHAR CFSTR_FILENAMEW
[] =
303 { 'F','i','l','e','N','a','m','e','W',0 };
304 static const WCHAR CFSTR_FILENAMEMAPW
[] =
305 { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
306 static const WCHAR CFSTR_PRINTERGROUPW
[] =
307 { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
308 static const WCHAR CFSTR_SHELLURLW
[] =
309 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
310 static const WCHAR CFSTR_INETURLW
[] =
311 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
312 static const WCHAR CFSTR_PREFERREDDROPEFFECTW
[] =
313 { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
314 static const WCHAR CFSTR_PERFORMEDDROPEFFECTW
[] =
315 { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
316 static const WCHAR CFSTR_PASTESUCCEEDEDW
[] =
317 { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
318 static const WCHAR CFSTR_INDRAGLOOPW
[] =
319 { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
320 static const WCHAR CFSTR_DRAGCONTEXTW
[] =
321 { 'D','r','a','g','C','o','n','t','e','x','t',0 };
322 static const WCHAR CFSTR_MOUNTEDVOLUMEW
[] =
323 { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
324 static const WCHAR CFSTR_PERSISTEDDATAOBJECTW
[] =
325 { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
326 static const WCHAR CFSTR_TARGETCLSIDW
[] =
327 { 'T','a','r','g','e','t','C','L','S','I','D',0 };
328 static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW
[] =
329 { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
330 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
331 static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW
[] =
332 { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
333 ' ','D','r','o','p','E','f','f','e','c','t',0 };
336 #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
337 #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
338 #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
339 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
340 #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
341 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
342 #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
343 #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
344 #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
345 #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
346 #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
347 #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
348 #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
349 #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
350 #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
351 #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
352 #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
353 #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
354 #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
355 #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
362 /************************************************************************
363 * IShellView interface
366 #define FCIDM_SHVIEWFIRST 0x0000
368 #define FCIDM_SHVIEW_ARRANGE 0x7001
369 #define FCIDM_SHVIEW_DELETE 0x7011
370 #define FCIDM_SHVIEW_PROPERTIES 0x7013
371 #define FCIDM_SHVIEW_CUT 0x7018
372 #define FCIDM_SHVIEW_COPY 0x7019
373 #define FCIDM_SHVIEW_INSERT 0x701A
374 #define FCIDM_SHVIEW_UNDO 0x701B
375 #define FCIDM_SHVIEW_INSERTLINK 0x701C
376 #define FCIDM_SHVIEW_SELECTALL 0x7021
377 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
379 #define FCIDM_SHVIEW_BIGICON 0x7029
380 #define FCIDM_SHVIEW_SMALLICON 0x702A
381 #define FCIDM_SHVIEW_LISTVIEW 0x702B
382 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
383 /* 0x7030-0x703f are used by the shellbrowser */
384 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
385 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
387 #define FCIDM_SHVIEW_HELP 0x7041
388 #define FCIDM_SHVIEW_RENAME 0x7050
389 #define FCIDM_SHVIEW_CREATELINK 0x7051
390 #define FCIDM_SHVIEW_NEWLINK 0x7052
391 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
393 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
394 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
395 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
397 #define FCIDM_SHVIEWLAST 0x7fff
398 #define FCIDM_BROWSERFIRST 0xA000
399 /* undocumented toolbar items from stddlg's*/
400 #define FCIDM_TB_UPFOLDER 0xA001
401 #define FCIDM_TB_NEWFOLDER 0xA002
402 #define FCIDM_TB_SMALLICON 0xA003
403 #define FCIDM_TB_REPORTVIEW 0xA004
404 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
406 #define FCIDM_BROWSERLAST 0xbf00
407 #define FCIDM_GLOBALFIRST 0x8000
408 #define FCIDM_GLOBALLAST 0x9fff
411 * Global submenu IDs and separator IDs
413 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
414 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
415 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
416 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
417 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
418 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
419 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
420 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
421 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
422 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
424 /* control IDs known to the view */
425 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
426 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
428 #define INTERFACE IShellDetails
429 DECLARE_INTERFACE_(IShellDetails
, IUnknown
)
431 /*** IUnknown methods ***/
432 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void **ppv
) PURE
;
433 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
434 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
435 /*** IShellDetails methods ***/
436 STDMETHOD(GetDetailsOf
)(THIS_ PCUITEMID_CHILD pidl
, UINT iColumn
, SHELLDETAILS
*pDetails
) PURE
;
437 STDMETHOD(ColumnClick
)(THIS_ UINT iColumn
) PURE
;
441 #if !defined(__cplusplus) || defined(CINTERFACE)
442 /*** IUnknown methods ***/
443 #define IShellDetails_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
444 #define IShellDetails_AddRef(p) (p)->lpVtbl->AddRef(p)
445 #define IShellDetails_Release(p) (p)->lpVtbl->Release(p)
446 /*** IShellDetails methods ***/
447 #define IShellDetails_GetDetailsOf(p,a,b,c) (p)->lpVtbl->GetDetailsOf(p,a,b,c)
448 #define IShellDetails_ColumnClick(p,a) (p)->lpVtbl->ColumnClick(p,a)
451 /* IQueryInfo interface */
452 #define INTERFACE IQueryInfo
453 DECLARE_INTERFACE_(IQueryInfo
,IUnknown
)
455 /*** IUnknown methods ***/
456 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
457 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
458 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
459 /*** IQueryInfo methods ***/
460 STDMETHOD(GetInfoTip
)(THIS_ DWORD dwFlags
, WCHAR
** lppTips
) PURE
;
461 STDMETHOD(GetInfoFlags
)(THIS_ DWORD
* lpFlags
) PURE
;
465 #if !defined(__cplusplus) || defined(CINTERFACE)
466 /*** IUnknown methods ***/
467 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
468 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
469 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
470 /*** IQueryInfo methods ***/
471 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
472 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
475 /* IInputObject interface */
476 #define INTERFACE IInputObject
477 DECLARE_INTERFACE_(IInputObject
,IUnknown
)
479 /*** IUnknown methods ***/
480 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
481 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
482 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
483 /*** IInputObject methods ***/
484 STDMETHOD(UIActivateIO
)(THIS_ BOOL bActivating
, LPMSG lpMsg
) PURE
;
485 STDMETHOD(HasFocusIO
)(THIS
) PURE
;
486 STDMETHOD(TranslateAcceleratorIO
)(THIS_ LPMSG lpMsg
) PURE
;
490 #if !defined(__cplusplus) || defined(CINTERFACE)
491 /*** IUnknown methods ***/
492 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
493 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
494 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
495 /*** IInputObject methods ***/
496 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
497 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
498 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
501 /* IInputObjectSite interface */
502 #define INTERFACE IInputObjectSite
503 DECLARE_INTERFACE_(IInputObjectSite
,IUnknown
)
505 /*** IUnknown methods ***/
506 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
507 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
508 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
509 /*** IInputObjectSite methods ***/
510 STDMETHOD(OnFocusChangeIS
)(THIS_ LPUNKNOWN lpUnknown
, BOOL bFocus
) PURE
;
514 #if !defined(__cplusplus) || defined(CINTERFACE)
515 /*** IUnknown methods ***/
516 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
517 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
518 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
519 /*** IInputObject methods ***/
520 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
523 /* IObjMgr interface */
524 #define INTERFACE IObjMgr
525 DECLARE_INTERFACE_(IObjMgr
,IUnknown
)
527 /*** IUnknown methods ***/
528 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
529 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
530 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
531 /*** IObjMgr methods ***/
532 STDMETHOD(Append
)(THIS_ LPUNKNOWN punk
) PURE
;
533 STDMETHOD(Remove
)(THIS_ LPUNKNOWN punk
) PURE
;
537 #if !defined(__cplusplus) || defined(CINTERFACE)
538 /*** IUnknown methods ***/
539 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
540 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
541 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
542 /*** IObjMgr methods ***/
543 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
544 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
547 /* IACList interface */
548 #define INTERFACE IACList
549 DECLARE_INTERFACE_(IACList
,IUnknown
)
551 /*** IUnknown methods ***/
552 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
553 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
554 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
555 /*** IACList methods ***/
556 STDMETHOD(Expand
)(THIS_ LPCOLESTR str
) PURE
;
560 #if !defined(__cplusplus) || defined(CINTERFACE)
561 /*** IUnknown methods ***/
562 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
563 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
564 #define IACList_Release(p) (p)->lpVtbl->Release(p)
565 /*** IACList methods ***/
566 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
569 /* IACList2 interface */
570 #define INTERFACE IACList2
571 DECLARE_INTERFACE_(IACList2
,IACList
)
573 /*** IUnknown methods ***/
574 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
575 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
576 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
577 /*** IACList methods ***/
578 STDMETHOD(Expand
)(THIS_ LPCOLESTR str
) PURE
;
579 /*** IACList2 methods ***/
580 STDMETHOD(SetOptions
)(THIS_ DWORD dwFlag
) PURE
;
581 STDMETHOD(GetOptions
)(THIS_ DWORD
* pdwFlag
) PURE
;
585 #if !defined(__cplusplus) || defined(CINTERFACE)
586 /*** IUnknown methods ***/
587 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
588 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
589 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
590 /*** IACList2 methods ***/
591 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
592 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
595 /****************************************************************************
596 * IShellFolderViewCB interface
599 #define INTERFACE IShellFolderViewCB
600 DECLARE_INTERFACE_(IShellFolderViewCB
,IUnknown
)
602 /*** IUnknown methods ***/
603 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
604 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
605 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
606 /*** IShellFolderViewCB methods ***/
607 STDMETHOD(MessageSFVCB
)(THIS_ UINT uMsg
, WPARAM wParam
, LPARAM lParam
) PURE
;
611 #if !defined(__cplusplus) || defined(CINTERFACE)
612 /*** IUnknown methods ***/
613 #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
614 #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
615 #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
616 /*** IShellFolderViewCB methods ***/
617 #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
620 /****************************************************************************
621 * IShellFolderView interface
624 #include <pshpack8.h>
626 typedef struct _ITEMSPACING
636 #define INTERFACE IShellFolderView
637 DEFINE_GUID(IID_IShellFolderView
,0x37a378c0,0xf82d,0x11ce,0xae,0x65,0x08,0x00,0x2b,0x2e,0x12,0x62);
638 DECLARE_INTERFACE_(IShellFolderView
, IUnknown
)
640 /*** IUnknown methods ***/
641 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void **ppv
) PURE
;
642 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
643 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
645 /*** IShellFolderView methods ***/
646 STDMETHOD(Rearrange
) (THIS_ LPARAM lParamSort
) PURE
;
647 STDMETHOD(GetArrangeParam
) (THIS_ LPARAM
*plParamSort
) PURE
;
648 STDMETHOD(ArrangeGrid
) (THIS
) PURE
;
649 STDMETHOD(AutoArrange
) (THIS
) PURE
;
650 STDMETHOD(GetAutoArrange
) (THIS
) PURE
;
651 STDMETHOD(AddObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
652 STDMETHOD(GetObject
) (THIS_ PITEMID_CHILD
*ppidl
, UINT uItem
) PURE
;
653 STDMETHOD(RemoveObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
654 STDMETHOD(GetObjectCount
) (THIS_ UINT
*puCount
) PURE
;
655 STDMETHOD(SetObjectCount
) (THIS_ UINT uCount
, UINT dwFlags
) PURE
;
656 STDMETHOD(UpdateObject
) (THIS_ PITEMID_CHILD pidlOld
, PITEMID_CHILD pidlNew
, UINT
*puItem
) PURE
;
657 STDMETHOD(RefreshObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
658 STDMETHOD(SetRedraw
) (THIS_ BOOL bRedraw
) PURE
;
659 STDMETHOD(GetSelectedCount
) (THIS_ UINT
*puSelected
) PURE
;
660 STDMETHOD(GetSelectedObjects
) (THIS_ PCITEMID_CHILD
**pppidl
, UINT
*puItems
) PURE
;
661 STDMETHOD(IsDropOnSource
) (THIS_ IDropTarget
*pDropTarget
) PURE
;
662 STDMETHOD(GetDragPoint
) (THIS_ POINT
*ppt
) PURE
;
663 STDMETHOD(GetDropPoint
) (THIS_ POINT
*ppt
) PURE
;
664 STDMETHOD(MoveIcons
) (THIS_ IDataObject
*pDataObject
) PURE
;
665 STDMETHOD(SetItemPos
) (THIS_ PCUITEMID_CHILD pidl
, POINT
*ppt
) PURE
;
666 STDMETHOD(IsBkDropTarget
) (THIS_ IDropTarget
*pDropTarget
) PURE
;
667 STDMETHOD(SetClipboard
) (THIS_ BOOL bMove
) PURE
;
668 STDMETHOD(SetPoints
) (THIS_ IDataObject
*pDataObject
) PURE
;
669 STDMETHOD(GetItemSpacing
) (THIS_ ITEMSPACING
*pSpacing
) PURE
;
670 STDMETHOD(SetCallback
) (THIS_ IShellFolderViewCB
* pNewCB
, IShellFolderViewCB
** ppOldCB
) PURE
;
671 STDMETHOD(Select
) ( THIS_ UINT dwFlags
) PURE
;
672 STDMETHOD(QuerySupport
) (THIS_ UINT
* pdwSupport
) PURE
;
673 STDMETHOD(SetAutomationObject
)(THIS_ IDispatch
* pdisp
) PURE
;
677 #if !defined(__cplusplus) || defined(CINTERFACE)
678 /*** IUnknown methods ***/
679 #define IShellFolderView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
680 #define IShellFolderView_AddRef(p) (p)->lpVtbl->AddRef(p)
681 #define IShellFolderView_Release(p) (p)->lpVtbl->Release(p)
682 /*** IShellFolderView methods ***/
683 #define IShellFolderView_Rearrange(p,a) (p)->lpVtbl->Rearrange(p,a)
684 #define IShellFolderView_GetArrangeParam(p,a) (p)->lpVtbl->GetArrangeParam(p,a)
685 #define IShellFolderView_ArrangeGrid(p) (p)->lpVtbl->ArrangeGrid(p)
686 #define IShellFolderView_AutoArrange(p) (p)->lpVtbl->AutoArrange(p)
687 #define IShellFolderView_GetAutoArrange(p) (p)->lpVtbl->GetAutoArrange(p)
688 #define IShellFolderView_AddObject(p,a,b) (p)->lpVtbl->AddObject(p,a,b)
689 #define IShellFolderView_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
690 #define IShellFolderView_RemoveObject(p,a,b) (p)->lpVtbl->RemoveObject(p,a,b)
691 #define IShellFolderView_GetObjectCount(p,a) (p)->lpVtbl->GetObjectCount(p,a)
692 #define IShellFolderView_SetObjectCount(p,a,b) (p)->lpVtbl->SetObjectCount(p,a,b)
693 #define IShellFolderView_UpdateObject(p,a,b,c) (p)->lpVtbl->UpdateObject(p,a,b,c)
694 #define IShellFolderView_RefreshObject(p,a,b) (p)->lpVtbl->RefreshObject(p,a,b)
695 #define IShellFolderView_SetRedraw(p,a) (p)->lpVtbl->SetRedraw(p,a)
696 #define IShellFolderView_GetSelectedCount(p,a) (p)->lpVtbl->GetSelectedCount(p,a)
697 #define IShellFolderView_GetSelectedObjects(p,a,b) (p)->lpVtbl->GetSelectedObjects(p,a,b)
698 #define IShellFolderView_IsDropOnSource(p,a) (p)->lpVtbl->IsDropOnSource(p,a)
699 #define IShellFolderView_GetDragPoint(p,a) (p)->lpVtbl->GetDragPoint(p,a)
700 #define IShellFolderView_GetDropPoint(p,a) (p)->lpVtbl->GetDropPoint(p,a)
701 #define IShellFolderView_MoveIcons(p,a) (p)->lpVtbl->MoveIcons(p,a)
702 #define IShellFolderView_SetItemPos(p,a,b) (p)->lpVtbl->SetItemPos(p,a,b)
703 #define IShellFolderView_IsBkDropTarget(p,a) (p)->lpVtbl->IsBkDropTarget(p,a)
704 #define IShellFolderView_SetClipboard(p,a) (p)->lpVtbl->SetClipboard(p,a)
705 #define IShellFolderView_SetPoints(p,a) (p)->lpVtbl->SetPoints(p,a)
706 #define IShellFolderView_GetItemSpacing(p,a) (p)->lpVtbl->GetItemSpacing(p,a)
707 #define IShellFolderView_SetCallback(p,a,b) (p)->lpVtbl->SetCallback(p,a,b)
708 #define IShellFolderView_Select(p,a) (p)->lpVtbl->Select(p,a)
709 #define IShellFolderView_QuerySupport(p,a) (p)->lpVtbl->QuerySupport(p,a)
710 #define IShellFolderView_SetAutomationObject(p,a) (p)->lpVtbl->SetAutomationObject(p,a)
713 /* IProgressDialog interface */
714 #define PROGDLG_NORMAL 0x00000000
715 #define PROGDLG_MODAL 0x00000001
716 #define PROGDLG_AUTOTIME 0x00000002
717 #define PROGDLG_NOTIME 0x00000004
718 #define PROGDLG_NOMINIMIZE 0x00000008
719 #define PROGDLG_NOPROGRESSBAR 0x00000010
720 #define PROGDLG_MARQUEEPROGRESS 0x00000020
721 #define PROGDLG_NOCANCEL 0x00000040
723 #define PDTIMER_RESET 0x00000001
724 #define PDTIMER_PAUSE 0x00000002
725 #define PDTIMER_RESUME 0x00000003
727 #define INTERFACE IProgressDialog
728 DECLARE_INTERFACE_(IProgressDialog
,IUnknown
)
730 /*** IUnknown methods ***/
731 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
732 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
733 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
734 /*** IProgressDialog methods ***/
735 STDMETHOD(StartProgressDialog
)(THIS_ HWND hwndParent
, IUnknown
*punkEnableModeless
, DWORD dwFlags
, LPCVOID reserved
) PURE
;
736 STDMETHOD(StopProgressDialog
)(THIS
) PURE
;
737 STDMETHOD(SetTitle
)(THIS_ LPCWSTR pwzTitle
) PURE
;
738 STDMETHOD(SetAnimation
)(THIS_ HINSTANCE hInstance
, UINT uiResourceId
) PURE
;
739 STDMETHOD_(BOOL
,HasUserCancelled
)(THIS
) PURE
;
740 STDMETHOD(SetProgress
)(THIS_ DWORD dwCompleted
, DWORD dwTotal
) PURE
;
741 STDMETHOD(SetProgress64
)(THIS_ ULONGLONG ullCompleted
, ULONGLONG ullTotal
) PURE
;
742 STDMETHOD(SetLine
)(THIS_ DWORD dwLineNum
, LPCWSTR pwzString
, BOOL bPath
, LPCVOID reserved
) PURE
;
743 STDMETHOD(SetCancelMsg
)(THIS_ LPCWSTR pwzCancelMsg
, LPCVOID reserved
) PURE
;
744 STDMETHOD(Timer
)(THIS_ DWORD dwTimerAction
, LPCVOID reserved
) PURE
;
748 #if !defined(__cplusplus) || defined(CINTERFACE)
749 /*** IUnknown methods ***/
750 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
751 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
752 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
753 /*** IProgressDialog methods ***/
754 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
755 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
756 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
757 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
758 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
759 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
760 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
761 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
762 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
763 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
768 typedef struct _tagWALLPAPEROPT
772 } WALLPAPEROPT
, *LPWALLPAPEROPT
;
774 typedef const WALLPAPEROPT
*LPCWALLPAPEROPT
;
776 typedef struct _tagCOMPPOS
787 int iPreferredLeftPercent
;
788 int iPreferredTopPercent
;
789 } COMPPOS
, *LPCOMPPOS
;
791 typedef const COMPPOS
*LPCCOMPPOS
;
793 typedef struct _tagCOMPSTATEINFO
801 } COMPSTATEINFO
, *LPCOMPSTATEINFO
;
803 typedef const COMPSTATEINFO
*LPCCOMPSTATEINFO
;
805 typedef struct _tagCOMPONENT
814 WCHAR wszFriendlyName
[MAX_PATH
];
815 WCHAR wszSource
[INTERNET_MAX_URL_LENGTH
];
816 WCHAR wszSubscribedURL
[INTERNET_MAX_URL_LENGTH
];
817 DWORD dwCurItemState
;
818 COMPSTATEINFO csiOriginal
;
819 COMPSTATEINFO csiRestored
;
820 } COMPONENT
, *LPCOMPONENT
;
822 typedef const COMPONENT
*LPCCOMPONENT
;
824 typedef struct _tagCOMPONENTSOPT
827 BOOL fEnableComponents
;
829 } COMPONENTSOPT
, *LPCOMPONENTSOPT
;
831 typedef const COMPONENTSOPT
*LPCCOMPONENTSOPT
;
833 #define INTERFACE IActiveDesktop
834 DECLARE_INTERFACE_(IActiveDesktop
, IUnknown
)
836 /*** IUnknown methods ***/
837 STDMETHOD(QueryInterface
)(THIS_ REFIID riid
, void **obj
) PURE
;
838 STDMETHOD_(ULONG
, AddRef
)(THIS
) PURE
;
839 STDMETHOD_(ULONG
, Release
)(THIS
) PURE
;
840 /*** IActiveDesktop ***/
841 STDMETHOD(ApplyChanges
)(THIS_ DWORD flags
) PURE
;
842 STDMETHOD(GetWallpaper
)(THIS_ PWSTR wallpaper
, UINT length
, DWORD flags
) PURE
;
843 STDMETHOD(SetWallpaper
)(THIS_ PCWSTR wallpaper
, DWORD reserved
) PURE
;
844 STDMETHOD(GetWallpaperOptions
)(THIS_ LPWALLPAPEROPT options
, DWORD reserved
) PURE
;
845 STDMETHOD(SetWallpaperOptions
)(THIS_ LPCWALLPAPEROPT options
, DWORD reserved
) PURE
;
846 STDMETHOD(GetPattern
)(THIS_ PWSTR pattern
, UINT length
, DWORD reserved
) PURE
;
847 STDMETHOD(SetPattern
)(THIS_ PCWSTR pattern
, DWORD reserved
) PURE
;
848 STDMETHOD(GetDesktopItemOptions
)(THIS_ LPCOMPONENTSOPT options
, DWORD reserved
) PURE
;
849 STDMETHOD(SetDesktopItemOptions
)(THIS_ LPCCOMPONENTSOPT options
, DWORD reserved
) PURE
;
850 STDMETHOD(AddDesktopItem
)(THIS_ LPCCOMPONENT component
, DWORD reserved
) PURE
;
851 STDMETHOD(AddDesktopItemWithUI
)(THIS_ HWND hwnd
, LPCOMPONENT component
, DWORD reserved
) PURE
;
852 STDMETHOD(ModifyDesktopItem
)(THIS_ LPCCOMPONENT component
, DWORD flags
) PURE
;
853 STDMETHOD(RemoveDesktopItem
)(THIS_ LPCCOMPONENT component
, DWORD reserved
) PURE
;
854 STDMETHOD(GetDesktopItemCount
)(THIS_
int *count
, DWORD reserved
) PURE
;
855 STDMETHOD(GetDesktopItem
)(THIS_
int index
, LPCOMPONENT component
, DWORD reserved
) PURE
;
856 STDMETHOD(GetDesktopItemByID
)(THIS_ ULONG_PTR id
, LPCOMPONENT component
, DWORD reserved
) PURE
;
857 STDMETHOD(GenerateDesktopItemHtml
)(THIS_ PCWSTR filename
, LPCOMPONENT component
, DWORD reserved
) PURE
;
858 STDMETHOD(AddUrl
)(THIS_ HWND hwnd
, PCWSTR source
, LPCOMPONENT component
, DWORD flags
) PURE
;
859 STDMETHOD(GetDesktopItemBySource
)(THIS_ PCWSTR source
, LPCOMPONENT component
, DWORD reserved
) PURE
;
863 #endif /* _WININET_ */
865 /****************************************************************************
866 * SHAddToRecentDocs API
868 #define SHARD_PIDL __MSABI_LONG(0x00000001)
869 #define SHARD_PATHA __MSABI_LONG(0x00000002)
870 #define SHARD_PATHW __MSABI_LONG(0x00000003)
871 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
873 WINSHELLAPI
void WINAPI
SHAddToRecentDocs(UINT
,LPCVOID
);
875 /****************************************************************************
876 * SHBrowseForFolder API
878 typedef INT (CALLBACK
*BFFCALLBACK
)(HWND
,UINT
,LPARAM
,LPARAM
);
880 #include <pshpack8.h>
882 typedef struct tagBROWSEINFOA
{
884 LPCITEMIDLIST pidlRoot
;
885 LPSTR pszDisplayName
;
891 } BROWSEINFOA
, *PBROWSEINFOA
, *LPBROWSEINFOA
;
893 typedef struct tagBROWSEINFOW
{
895 LPCITEMIDLIST pidlRoot
;
896 LPWSTR pszDisplayName
;
902 } BROWSEINFOW
, *PBROWSEINFOW
, *LPBROWSEINFOW
;
904 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
905 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
906 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
910 /* Browsing for directory. */
911 #define BIF_RETURNONLYFSDIRS 0x0001
912 #define BIF_DONTGOBELOWDOMAIN 0x0002
913 #define BIF_STATUSTEXT 0x0004
914 #define BIF_RETURNFSANCESTORS 0x0008
915 #define BIF_EDITBOX 0x0010
916 #define BIF_VALIDATE 0x0020
917 #define BIF_NEWDIALOGSTYLE 0x0040
918 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
919 #define BIF_BROWSEINCLUDEURLS 0x0080
920 #define BIF_UAHINT 0x0100
921 #define BIF_NONEWFOLDERBUTTON 0x0200
922 #define BIF_NOTRANSLATETARGETS 0x0400
924 #define BIF_BROWSEFORCOMPUTER 0x1000
925 #define BIF_BROWSEFORPRINTER 0x2000
926 #define BIF_BROWSEINCLUDEFILES 0x4000
928 /* message from browser */
929 #define BFFM_INITIALIZED 1
930 #define BFFM_SELCHANGED 2
931 #define BFFM_VALIDATEFAILEDA 3
932 #define BFFM_VALIDATEFAILEDW 4
933 #define BFFM_IUNKNOWN 5
935 /* messages to browser */
936 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
937 #define BFFM_ENABLEOK (WM_USER+101)
938 #define BFFM_SETSELECTIONA (WM_USER+102)
939 #define BFFM_SETSELECTIONW (WM_USER+103)
940 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
941 #define BFFM_SETOKTEXT (WM_USER+105)
942 #define BFFM_SETEXPANDED (WM_USER+106)
944 WINSHELLAPI LPITEMIDLIST WINAPI
SHBrowseForFolderA(LPBROWSEINFOA lpbi
);
945 WINSHELLAPI LPITEMIDLIST WINAPI
SHBrowseForFolderW(LPBROWSEINFOW lpbi
);
946 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
947 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
948 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
949 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
951 /**********************************************************************
952 * SHCreateShellFolderViewEx API
955 typedef HRESULT (CALLBACK
*LPFNVIEWCALLBACK
)(
963 #include <pshpack8.h>
969 IShellView
* psvOuter
;
972 LPFNVIEWCALLBACK pfnCallback
;
978 WINSHELLAPI HRESULT WINAPI
SHCreateShellFolderViewEx(LPCSFV pshfvi
, IShellView
**ppshv
);
980 /* SHCreateShellFolderViewEx callback messages */
981 #define SFVM_MERGEMENU 1
982 #define SFVM_INVOKECOMMAND 2
983 #define SFVM_GETHELPTEXT 3
984 #define SFVM_GETTOOLTIPTEXT 4
985 #define SFVM_GETBUTTONINFO 5
986 #define SFVM_GETBUTTONS 6
987 #define SFVM_INITMENUPOPUP 7
988 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
989 #define SFVM_DRAWMENUITEM 9 /* undocumented */
990 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
991 #define SFVM_EXITMENULOOP 11 /* undocumented */
992 #define SFVM_VIEWRELEASE 12 /* undocumented */
993 #define SFVM_GETNAMELENGTH 13 /* undocumented */
994 #define SFVM_FSNOTIFY 14
995 #define SFVM_WINDOWCREATED 15
996 #define SFVM_WINDOWCLOSING 16 /* undocumented */
997 #define SFVM_LISTREFRESHED 17 /* undocumented */
998 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
999 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
1000 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
1001 #define SFVM_GETDETAILSOF 23
1002 #define SFVM_COLUMNCLICK 24
1003 #define SFVM_QUERYFSNOTIFY 25
1004 #define SFVM_DEFITEMCOUNT 26
1005 #define SFVM_DEFVIEWMODE 27
1006 #define SFVM_UNMERGEFROMMENU 28
1007 #define SFVM_ADDINGOBJECT 29 /* undocumented */
1008 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
1009 #define SFVM_UPDATESTATUSBAR 31
1010 #define SFVM_BACKGROUNDENUM 32
1011 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
1012 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
1013 #define SFVM_CANSELECTALL 35 /* undocumented */
1014 #define SFVM_DIDDRAGDROP 36
1015 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
1016 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
1017 #define SFVM_SETISFV 39
1018 #define SFVM_GETEXTVIEWS 40 /* undocumented */
1019 #define SFVM_THISIDLIST 41
1020 #define SFVM_ADDPROPERTYPAGES 47
1021 #define SFVM_BACKGROUNDENUMDONE 48
1022 #define SFVM_GETNOTIFY 49
1023 #define SFVM_GETSORTDEFAULTS 53
1024 #define SFVM_SIZE 57
1025 #define SFVM_GETZONE 58
1026 #define SFVM_GETPANE 59
1027 #define SFVM_GETHELPTOPIC 63
1028 #define SFVM_GETANIMATION 68
1029 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
1030 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
1031 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
1032 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
1033 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
1034 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
1035 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
1036 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
1038 #include <pshpack8.h>
1040 typedef struct _SFV_CREATE
1044 IShellView
*psvOuter
;
1045 IShellFolderViewCB
*psfvcb
;
1048 #include <poppack.h>
1050 WINSHELLAPI HRESULT WINAPI
SHCreateShellFolderView(const SFV_CREATE
*pscfv
, IShellView
**ppsv
);
1052 /* Types and definitions for the SFM_* parameters */
1053 #include <pshpack8.h>
1055 #define QCMINFO_PLACE_BEFORE 0
1056 #define QCMINFO_PLACE_AFTER 1
1057 typedef struct _QCMINFO_IDMAP_PLACEMENT
1061 } QCMINFO_IDMAP_PLACEMENT
;
1063 typedef struct _QCMINFO_IDMAP
1066 QCMINFO_IDMAP_PLACEMENT pIdList
[1];
1069 typedef struct _QCMINFO
1075 QCMINFO_IDMAP
const* pIdMap
;
1076 } QCMINFO
, *LPQCMINFO
;
1078 #define TBIF_DEFAULT 0x00000000
1079 #define TBIF_APPEND 0x00000000
1080 #define TBIF_PREPEND 0x00000001
1081 #define TBIF_REPLACE 0x00000002
1082 #define TBIF_INTERNETBAR 0x00010000
1083 #define TBIF_STANDARDTOOLBAR 0x00020000
1084 #define TBIF_NOTOOLBAR 0x00030000
1086 typedef struct _TBINFO
1090 } TBINFO
, *LPTBINFO
;
1092 #include <poppack.h>
1094 /****************************************************************************
1095 * SHShellFolderView_Message API
1098 WINSHELLAPI LRESULT WINAPI
SHShellFolderView_Message(HWND hwndCabinet
, UINT uMessage
, LPARAM lParam
);
1100 /* SHShellFolderView_Message messages */
1101 #define SFVM_REARRANGE 0x0001
1102 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
1103 #define SFVM_ADDOBJECT 0x0003
1104 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
1105 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
1106 #define SFVM_REMOVEOBJECT 0x0006
1107 #define SFVM_UPDATEOBJECT 0x0007
1108 #define SFVM_SETREDRAW 0x0008 /* undocumented */
1109 #define SFVM_GETSELECTEDOBJECTS 0x0009
1110 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
1111 #define SFVM_MOVEICONS 0x000B /* undocumented */
1112 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
1113 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
1114 #define SFVM_SETITEMPOS 0x000E
1115 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
1116 #define SFVM_SETCLIPBOARD 0x0010
1117 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
1118 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
1119 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
1120 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
1121 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
1122 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
1123 #define SFVM_SETPOINTS 0x0017
1125 /****************************************************************************
1126 * SHGetDataFromIDList API
1128 #define SHGDFIL_FINDDATA 1
1129 #define SHGDFIL_NETRESOURCE 2
1130 #define SHGDFIL_DESCRIPTIONID 3
1132 #define SHDID_ROOT_REGITEM 1
1133 #define SHDID_FS_FILE 2
1134 #define SHDID_FS_DIRECTORY 3
1135 #define SHDID_FS_OTHER 4
1136 #define SHDID_COMPUTER_DRIVE35 5
1137 #define SHDID_COMPUTER_DRIVE525 6
1138 #define SHDID_COMPUTER_REMOVABLE 7
1139 #define SHDID_COMPUTER_FIXED 8
1140 #define SHDID_COMPUTER_NETDRIVE 9
1141 #define SHDID_COMPUTER_CDROM 10
1142 #define SHDID_COMPUTER_RAMDISK 11
1143 #define SHDID_COMPUTER_OTHER 12
1144 #define SHDID_NET_DOMAIN 13
1145 #define SHDID_NET_SERVER 14
1146 #define SHDID_NET_SHARE 15
1147 #define SHDID_NET_RESTOFNET 16
1148 #define SHDID_NET_OTHER 17
1149 #define SHDID_COMPUTER_IMAGING 18
1150 #define SHDID_COMPUTER_AUDIO 19
1151 #define SHDID_COMPUTER_SHAREDDOCS 20
1153 #include <pshpack8.h>
1155 typedef struct _SHDESCRIPTIONID
1156 { DWORD dwDescriptionId
;
1158 } SHDESCRIPTIONID
, *LPSHDESCRIPTIONID
;
1160 #include <poppack.h>
1162 WINSHELLAPI HRESULT WINAPI
SHGetDataFromIDListA(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
1163 WINSHELLAPI HRESULT WINAPI
SHGetDataFromIDListW(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
1164 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
1166 WINSHELLAPI BOOL WINAPI
SHGetSpecialFolderPathA (HWND hwndOwner
, LPSTR szPath
, int nFolder
, BOOL bCreate
);
1167 WINSHELLAPI BOOL WINAPI
SHGetSpecialFolderPathW (HWND hwndOwner
, LPWSTR szPath
, int nFolder
, BOOL bCreate
);
1168 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
1170 WINSHELLAPI HRESULT WINAPI
SHGetMalloc(LPMALLOC
*lpmal
) ;
1172 /**********************************************************************
1173 * SHGetSetSettings ()
1178 BOOL fShowAllObjects
: 1;
1179 BOOL fShowExtensions
: 1;
1180 BOOL fNoConfirmRecycle
: 1;
1182 BOOL fShowSysFiles
: 1;
1183 BOOL fShowCompColor
: 1;
1184 BOOL fDoubleClickInWebView
: 1;
1185 BOOL fDesktopHTML
: 1;
1186 BOOL fWin95Classic
: 1;
1187 BOOL fDontPrettyPath
: 1;
1188 BOOL fShowAttribCol
: 1;
1189 BOOL fMapNetDrvBtn
: 1;
1190 BOOL fShowInfoTip
: 1;
1191 BOOL fHideIcons
: 1;
1194 BOOL fShowSuperHidden
: 1;
1195 BOOL fNoNetCrawling
: 1;
1197 UINT
:15; /* Required for proper binary layout with gcc */
1198 DWORD dwWin95Unused
;
1204 BOOL fSepProcess
: 1;
1205 BOOL fStartPanelOn
: 1;
1206 BOOL fShowStartPage
: 1;
1207 UINT fSpareFlags
: 13;
1208 UINT
:15; /* Required for proper binary layout with gcc */
1209 } SHELLSTATE
, *LPSHELLSTATE
;
1211 /**********************************************************************
1215 { BOOL fShowAllObjects
: 1;
1216 BOOL fShowExtensions
: 1;
1217 BOOL fNoConfirmRecycle
: 1;
1218 BOOL fShowSysFiles
: 1;
1220 BOOL fShowCompColor
: 1;
1221 BOOL fDoubleClickInWebView
: 1;
1222 BOOL fDesktopHTML
: 1;
1223 BOOL fWin95Classic
: 1;
1225 BOOL fDontPrettyPath
: 1;
1226 BOOL fShowAttribCol
: 1;
1227 BOOL fMapNetDrvBtn
: 1;
1228 BOOL fShowInfoTip
: 1;
1230 BOOL fHideIcons
: 1;
1231 UINT fRestFlags
: 3;
1232 UINT
:15; /* Required for proper binary layout with gcc */
1233 } SHELLFLAGSTATE
, * LPSHELLFLAGSTATE
;
1235 WINSHELLAPI VOID WINAPI
SHGetSettings(LPSHELLFLAGSTATE lpsfs
, DWORD dwMask
);
1237 #define SSF_SHOWALLOBJECTS 0x0001
1238 #define SSF_SHOWEXTENSIONS 0x0002
1239 #define SSF_SHOWCOMPCOLOR 0x0008
1240 #define SSF_SHOWSYSFILES 0x0020
1241 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
1242 #define SSF_SHOWATTRIBCOL 0x0100
1243 #define SSF_DESKTOPHTML 0x0200
1244 #define SSF_WIN95CLASSIC 0x0400
1245 #define SSF_DONTPRETTYPATH 0x0800
1246 #define SSF_SHOWINFOTIP 0x2000
1247 #define SSF_MAPNETDRVBUTTON 0x1000
1248 #define SSF_NOCONFIRMRECYCLE 0x8000
1249 #define SSF_HIDEICONS 0x4000
1251 /****************************************************************************
1254 typedef enum RESTRICTIONS
1256 REST_NONE
= 0x00000000,
1257 REST_NORUN
= 0x00000001,
1258 REST_NOCLOSE
= 0x00000002,
1259 REST_NOSAVESET
= 0x00000004,
1260 REST_NOFILEMENU
= 0x00000008,
1261 REST_NOSETFOLDERS
= 0x00000010,
1262 REST_NOSETTASKBAR
= 0x00000020,
1263 REST_NODESKTOP
= 0x00000040,
1264 REST_NOFIND
= 0x00000080,
1265 REST_NODRIVES
= 0x00000100,
1266 REST_NODRIVEAUTORUN
= 0x00000200,
1267 REST_NODRIVETYPEAUTORUN
= 0x00000400,
1268 REST_NONETHOOD
= 0x00000800,
1269 REST_STARTBANNER
= 0x00001000,
1270 REST_RESTRICTRUN
= 0x00002000,
1271 REST_NOPRINTERTABS
= 0x00004000,
1272 REST_NOPRINTERDELETE
= 0x00008000,
1273 REST_NOPRINTERADD
= 0x00010000,
1274 REST_NOSTARTMENUSUBFOLDERS
= 0x00020000,
1275 REST_MYDOCSONNET
= 0x00040000,
1276 REST_NOEXITTODOS
= 0x00080000,
1277 REST_ENFORCESHELLEXTSECURITY
= 0x00100000,
1278 REST_LINKRESOLVEIGNORELINKINFO
= 0x00200000,
1279 REST_NOCOMMONGROUPS
= 0x00400000,
1280 REST_SEPARATEDESKTOPPROCESS
= 0x00800000,
1281 REST_NOWEB
= 0x01000000,
1282 REST_NOTRAYCONTEXTMENU
= 0x02000000,
1283 REST_NOVIEWCONTEXTMENU
= 0x04000000,
1284 REST_NONETCONNECTDISCONNECT
= 0x08000000,
1285 REST_STARTMENULOGOFF
= 0x10000000,
1286 REST_NOSETTINGSASSIST
= 0x20000000,
1287 REST_NOINTERNETICON
= 0x40000001,
1288 REST_NORECENTDOCSHISTORY
,
1289 REST_NORECENTDOCSMENU
,
1290 REST_NOACTIVEDESKTOP
,
1291 REST_NOACTIVEDESKTOPCHANGES
,
1292 REST_NOFAVORITESMENU
,
1293 REST_CLEARRECENTDOCSONEXIT
,
1295 REST_NOCUSTOMIZEWEBVIEW
,
1297 REST_NOHTMLWALLPAPER
= 0x40000010,
1298 REST_NOCHANGINGWALLPAPER
,
1302 REST_NOCLOSEDESKCOMP
,
1303 REST_NOCLOSE_DRAGDROPBAND
,
1305 REST_NOEDITDESKCOMP
,
1306 REST_NORESOLVESEARCH
,
1307 REST_NORESOLVETRACK
,
1308 REST_FORCECOPYACLWITHFILE
,
1309 REST_NOLOGO3CHANNELNOTIFY
,
1310 REST_NOFORGETSOFTWAREUPDATE
,
1311 REST_NOSETACTIVEDESKTOP
,
1312 REST_NOUPDATEWINDOWS
,
1313 REST_NOCHANGESTARMENU
, /* 0x40000020 */
1314 REST_NOFOLDEROPTIONS
,
1315 REST_HASFINDCOMPUTERS
,
1317 REST_RUNDLGMEMCHECKBOX
,
1318 REST_ARP_ShowPostSetup
,
1320 REST_NOCONTROLPANEL
,
1323 REST_ARP_NOREMOVEPAGE
,
1325 REST_ARP_NOWINSETUPPAGE
,
1327 REST_NOCHANGEMAPPEDDRIVELABEL
,
1328 REST_NOCHANGEMAPPEDDRIVECOMMENT
,
1329 REST_MaxRecentDocs
, /* 0x40000030 */
1330 REST_NONETWORKCONNECTIONS
,
1331 REST_FORCESTARTMENULOGOFF
,
1333 REST_NOCUSTOMIZETHISFOLDER
,
1336 REST_ALLOWFRENCHENCRYPTION
, /* not documented */
1338 REST_DONTSHOWSUPERHIDDEN
,
1339 REST_NOSHELLSEARCHBUTTON
,
1341 REST_NORUNASINSTALLPROMPT
,
1342 REST_PROMPTRUNASINSTALLNETPATH
,
1343 REST_NOMANAGEMYCOMPUTERVERB
,
1344 REST_NORECENTDOCSNETHOOD
,
1346 REST_NOWELCOMESCREEN
,
1347 REST_RESTRICTCPL
, /* 0x40000040 */
1349 REST_NOSMBALLOONTIP
,
1352 REST_NOENCRYPTONMOVE
,
1353 REST_NOLOCALMACHINERUN
,
1354 REST_NOCURRENTUSERRUN
,
1355 REST_NOLOCALMACHINERUNONCE
,
1356 REST_NOCURRENTUSERRUNONCE
,
1357 REST_FORCEACTIVEDESKTOPON
,
1358 REST_NOCOMPUTERSNEARME
,
1361 REST_NOSHAREDDOCUMENTS
,
1363 REST_NOSMMYPICS
, /* 0x40000050 */
1364 REST_ALLOWBITBUCKDRIVES
,
1365 REST_NONLEGACYSHELLMODE
,
1366 REST_NOCONTROLPANELBARRICADE
,
1368 REST_NOAUTOTRAYNOTIFY
,
1369 REST_NOTASKGROUPING
,
1374 REST_NODISPLAYAPPEARANCEPAGE
,
1376 REST_NOVISUALSTYLECHOICE
,
1379 REST_SETVISUALSTYLE
, /* 0x40000060 */
1380 REST_STARTRUNNOHOMEPATH
,
1381 REST_NOUSERNAMEINSTARTPANEL
,
1382 REST_NOMYCOMPUTERICON
,
1383 REST_NOSMNETWORKPLACES
,
1384 REST_NOSMPINNEDLIST
,
1387 REST_NOSMMOREPROGRAMS
,
1388 REST_NOSMMFUPROGRAMS
,
1389 REST_NOTRAYITEMSDISPLAY
,
1390 REST_NOTOOLBARSONTASKBAR
,
1394 REST_NOSMCONFIGUREPROGRAMS
= 0x4000006F,
1395 REST_HIDECLOCK
, /* 0x40000070 */
1396 REST_NOLOWDISKSPACECHECKS
,
1397 REST_NOENTIRENETWORK
,
1398 REST_NODESKTOPCLEANUP
,
1399 REST_BITBUCKNUKEONDELETE
,
1400 REST_BITBUCKCONFIRMDELETE
,
1402 REST_NODISPBACKGROUND
,
1403 REST_NODISPSCREENSAVEPG
,
1404 REST_NODISPSETTINGSPG
,
1405 REST_NODISPSCREENSAVEPREVIEW
,
1408 REST_NOTHUMBNAILCACHE
,
1409 REST_NOSTRCMPLOGICAL
,
1410 REST_NOPUBLISHWIZARD
,
1411 REST_NOONLINEPRINTSWIZARD
, /* 0x40000080 */
1413 REST_ALLOWUNHASHEDWEBVIEW
,
1414 REST_ALLOWLEGACYWEBVIEW
,
1415 REST_REVERTWEBVIEWSECURITY
,
1417 REST_INHERITCONSOLEHANDLES
= 0x40000086,
1419 REST_NODISCONNECT
= 0x41000001,
1421 REST_NOFILEASSOCIATE
, /* 0x41000003 */
1424 WINSHELLAPI DWORD WINAPI
SHRestricted(RESTRICTIONS rest
);
1426 /****************************************************************************
1427 * SHChangeNotify API
1429 typedef struct _SHChangeNotifyEntry
1433 } SHChangeNotifyEntry
;
1435 #define SHCNE_RENAMEITEM 0x00000001
1436 #define SHCNE_CREATE 0x00000002
1437 #define SHCNE_DELETE 0x00000004
1438 #define SHCNE_MKDIR 0x00000008
1439 #define SHCNE_RMDIR 0x00000010
1440 #define SHCNE_MEDIAINSERTED 0x00000020
1441 #define SHCNE_MEDIAREMOVED 0x00000040
1442 #define SHCNE_DRIVEREMOVED 0x00000080
1443 #define SHCNE_DRIVEADD 0x00000100
1444 #define SHCNE_NETSHARE 0x00000200
1445 #define SHCNE_NETUNSHARE 0x00000400
1446 #define SHCNE_ATTRIBUTES 0x00000800
1447 #define SHCNE_UPDATEDIR 0x00001000
1448 #define SHCNE_UPDATEITEM 0x00002000
1449 #define SHCNE_SERVERDISCONNECT 0x00004000
1450 #define SHCNE_UPDATEIMAGE 0x00008000
1451 #define SHCNE_DRIVEADDGUI 0x00010000
1452 #define SHCNE_RENAMEFOLDER 0x00020000
1453 #define SHCNE_FREESPACE 0x00040000
1455 #define SHCNE_EXTENDED_EVENT 0x04000000
1456 #define SHCNE_ASSOCCHANGED 0x08000000
1457 #define SHCNE_DISKEVENTS 0x0002381F
1458 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1459 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1460 #define SHCNE_INTERRUPT 0x80000000
1462 #define SHCNEE_ORDERCHANGED __MSABI_LONG(0x0002)
1463 #define SHCNEE_MSI_CHANGE __MSABI_LONG(0x0004)
1464 #define SHCNEE_MSI_UNINSTALL __MSABI_LONG(0x0005)
1466 #define SHCNF_IDLIST 0x0000
1467 #define SHCNF_PATHA 0x0001
1468 #define SHCNF_PRINTERA 0x0002
1469 #define SHCNF_DWORD 0x0003
1470 #define SHCNF_PATHW 0x0005
1471 #define SHCNF_PRINTERW 0x0006
1472 #define SHCNF_TYPE 0x00FF
1473 #define SHCNF_FLUSH 0x1000
1474 #define SHCNF_FLUSHNOWAIT 0x3000
1475 #define SHCNF_NOTIFYRECURSIVE 0x10000
1477 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1478 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1480 #define SHCNRF_InterruptLevel 0x0001
1481 #define SHCNRF_ShellLevel 0x0002
1482 #define SHCNRF_RecursiveInterrupt 0x1000
1483 #define SHCNRF_NewDelivery 0x8000
1485 WINSHELLAPI
void WINAPI
SHChangeNotify(LONG wEventId
, UINT uFlags
, LPCVOID dwItem1
, LPCVOID dwItem2
);
1489 SLDF_DEFAULT
= 0x00000000,
1490 SLDF_HAS_ID_LIST
= 0x00000001,
1491 SLDF_HAS_LINK_INFO
= 0x00000002,
1492 SLDF_HAS_NAME
= 0x00000004,
1493 SLDF_HAS_RELPATH
= 0x00000008,
1494 SLDF_HAS_WORKINGDIR
= 0x00000010,
1495 SLDF_HAS_ARGS
= 0x00000020,
1496 SLDF_HAS_ICONLOCATION
= 0x00000040,
1497 SLDF_UNICODE
= 0x00000080,
1498 SLDF_FORCE_NO_LINKINFO
= 0x00000100,
1499 SLDF_HAS_EXP_SZ
= 0x00000200,
1500 SLDF_RUN_IN_SEPARATE
= 0x00000400,
1501 SLDF_HAS_LOGO3ID
= 0x00000800,
1502 SLDF_HAS_DARWINID
= 0x00001000,
1503 SLDF_RUNAS_USER
= 0x00002000,
1504 SLDF_HAS_EXP_ICON_SZ
= 0x00004000,
1505 SLDF_NO_PIDL_ALIAS
= 0x00008000,
1506 SLDF_FORCE_UNCNAME
= 0x00010000,
1507 SLDF_RUN_WITH_SHIMLAYER
= 0x00020000,
1508 SLDF_FORCE_NO_LINKTRACK
= 0x00040000,
1509 SLDF_ENABLE_TARGET_METADATA
= 0x00080000,
1510 SLDF_DISABLE_LINK_PATH_TRACKING
= 0x00100000,
1511 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING
= 0x00200000,
1512 SDLF_NO_KF_ALIAS
= 0x00400000,
1513 SDLF_ALLOW_LINK_TO_LINK
= 0x00800000,
1514 SDLF_UNALIAS_ON_SAVE
= 0x01000000,
1515 SDLF_PREFER_ENVIRONMENT_PATH
= 0x02000000,
1516 SDLF_KEEP_LOCAL_IDLIST_FOR_UNC_TARGET
= 0x04000000,
1517 SDLF_PERSIST_VOLUME_ID_ACTIVE
= 0x08000000,
1518 SLDF_VALID
= 0x0ffff7ff,
1519 SLDF_RESERVED
= 0x80000000,
1520 } SHELL_LINK_DATA_FLAGS
;
1522 typedef struct tagDATABLOCKHEADER
1526 } DATABLOCK_HEADER
, *LPDATABLOCK_HEADER
, *LPDBLIST
;
1529 DATABLOCK_HEADER dbh
;
1530 WORD wFillAttribute
;
1531 WORD wPopupFillAttribute
;
1532 COORD dwScreenBufferSize
;
1534 COORD dwWindowOrigin
;
1536 DWORD nInputBufferSize
;
1540 WCHAR FaceName
[LF_FACESIZE
];
1546 UINT uHistoryBufferSize
;
1547 UINT uNumberOfHistoryBuffers
;
1549 COLORREF ColorTable
[16];
1550 } NT_CONSOLE_PROPS
, *LPNT_CONSOLE_PROPS
;
1553 DATABLOCK_HEADER dbh
;
1555 } NT_FE_CONSOLE_PROPS
, *LPNT_FE_CONSOLE_PROPS
;
1558 DATABLOCK_HEADER dbh
;
1559 CHAR szDarwinID
[MAX_PATH
];
1560 WCHAR szwDarwinID
[MAX_PATH
];
1561 } EXP_DARWIN_LINK
, *LPEXP_DARWIN_LINK
;
1566 CHAR szTarget
[MAX_PATH
];
1567 WCHAR szwTarget
[MAX_PATH
];
1568 } EXP_SZ_LINK
, *LPEXP_SZ_LINK
;
1573 DWORD idSpecialFolder
;
1575 } EXP_SPECIAL_FOLDER
, *LPEXP_SPECIAL_FOLDER
;
1580 BYTE abPropertyStorage
[1];
1581 } EXP_PROPERTYSTORAGE
;
1583 #define EXP_SZ_LINK_SIG 0xa0000001
1584 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1585 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1586 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1587 #define EXP_DARWIN_ID_SIG 0xa0000006
1588 #define EXP_SZ_ICON_SIG 0xa0000007
1589 #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
1590 #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
1592 typedef struct _SHChangeDWORDAsIDList
{
1597 } SHChangeDWORDAsIDList
, *LPSHChangeDWORDAsIDList
;
1599 typedef struct _SHChangeProductKeyAsIDList
{
1601 WCHAR wszProductKey
[39];
1603 } SHChangeProductKeyAsIDList
, *LPSHChangeProductKeyAsIDList
;
1605 WINSHELLAPI ULONG WINAPI
SHChangeNotifyRegister(HWND hwnd
, int fSources
, LONG fEvents
, UINT wMsg
,
1606 int cEntries
, SHChangeNotifyEntry
*pshcne
);
1607 WINSHELLAPI BOOL WINAPI
SHChangeNotifyDeregister(ULONG ulID
);
1608 WINSHELLAPI HANDLE WINAPI
SHChangeNotification_Lock(HANDLE hChangeNotification
, DWORD dwProcessId
,
1609 LPITEMIDLIST
**pppidl
, LONG
*plEvent
);
1610 WINSHELLAPI BOOL WINAPI
SHChangeNotification_Unlock(HANDLE hLock
);
1612 WINSHELLAPI HRESULT WINAPI
SHGetRealIDL(IShellFolder
*psf
, LPCITEMIDLIST pidlSimple
, LPITEMIDLIST
* ppidlReal
);
1614 /****************************************************************************
1615 * SHCreateDirectory API
1617 WINSHELLAPI DWORD WINAPI
SHCreateDirectory(HWND
, LPCVOID
);
1618 WINSHELLAPI
int WINAPI
SHCreateDirectoryExA(HWND
, LPCSTR
, LPSECURITY_ATTRIBUTES
);
1619 WINSHELLAPI
int WINAPI
SHCreateDirectoryExW(HWND
, LPCWSTR
, LPSECURITY_ATTRIBUTES
);
1620 #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
1622 /****************************************************************************
1623 * SHGetSetFolderCustomSettings API
1626 #define FCS_READ 0x00000001
1627 #define FCS_FORCEWRITE 0x00000002
1628 #define FCS_WRITE (FCS_READ | FCS_FORCEWRITE)
1630 #define FCS_FLAG_DRAGDROP 0x00000002
1632 #define FCSM_VIEWID 0x00000001
1633 #define FCSM_WEBVIEWTEMPLATE 0x00000002
1634 #define FCSM_INFOTIP 0x00000004
1635 #define FCSM_CLSID 0x00000008
1636 #define FCSM_ICONFILE 0x00000010
1637 #define FCSM_LOGO 0x00000020
1638 #define FCSM_FLAGS 0x00000040
1640 #include <pshpack8.h>
1645 LPWSTR pszWebViewTemplate
;
1646 DWORD cchWebViewTemplate
;
1647 LPWSTR pszWebViewTemplateVersion
;
1657 } SHFOLDERCUSTOMSETTINGS
, *LPSHFOLDERCUSTOMSETTINGS
;
1658 #include <poppack.h>
1660 WINSHELLAPI HRESULT WINAPI
SHGetSetFolderCustomSettings(LPSHFOLDERCUSTOMSETTINGS pfcs
, PCWSTR pszPath
, DWORD dwReadWrite
);
1662 /****************************************************************************
1663 * SHGetSpecialFolderLocation API
1665 WINSHELLAPI HRESULT WINAPI
SHGetSpecialFolderLocation(HWND hwndOwner
, int nFolder
, LPITEMIDLIST
* ppidl
);
1666 WINSHELLAPI HRESULT WINAPI
SHGetFolderLocation(HWND hwndOwner
, int nFolder
, HANDLE hToken
, DWORD dwReserved
, LPITEMIDLIST
*ppidl
);
1668 /****************************************************************************
1669 * SHGetFolderPath API
1672 SHGFP_TYPE_CURRENT
= 0,
1673 SHGFP_TYPE_DEFAULT
= 1
1676 WINSHELLAPI HRESULT WINAPI
SHGetFolderPathA(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPSTR pszPath
);
1677 WINSHELLAPI HRESULT WINAPI
SHGetFolderPathW(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPWSTR pszPath
);
1678 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1680 #define CSIDL_DESKTOP 0x0000
1681 #define CSIDL_INTERNET 0x0001
1682 #define CSIDL_PROGRAMS 0x0002
1683 #define CSIDL_CONTROLS 0x0003
1684 #define CSIDL_PRINTERS 0x0004
1685 #define CSIDL_PERSONAL 0x0005
1686 #define CSIDL_FAVORITES 0x0006
1687 #define CSIDL_STARTUP 0x0007
1688 #define CSIDL_RECENT 0x0008
1689 #define CSIDL_SENDTO 0x0009
1690 #define CSIDL_BITBUCKET 0x000a
1691 #define CSIDL_STARTMENU 0x000b
1692 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1693 #define CSIDL_MYMUSIC 0x000d
1694 #define CSIDL_MYVIDEO 0x000e
1695 #define CSIDL_DESKTOPDIRECTORY 0x0010
1696 #define CSIDL_DRIVES 0x0011
1697 #define CSIDL_NETWORK 0x0012
1698 #define CSIDL_NETHOOD 0x0013
1699 #define CSIDL_FONTS 0x0014
1700 #define CSIDL_TEMPLATES 0x0015
1701 #define CSIDL_COMMON_STARTMENU 0x0016
1702 #define CSIDL_COMMON_PROGRAMS 0X0017
1703 #define CSIDL_COMMON_STARTUP 0x0018
1704 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1705 #define CSIDL_APPDATA 0x001a
1706 #define CSIDL_PRINTHOOD 0x001b
1707 #define CSIDL_LOCAL_APPDATA 0x001c
1708 #define CSIDL_ALTSTARTUP 0x001d
1709 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1710 #define CSIDL_COMMON_FAVORITES 0x001f
1711 #define CSIDL_INTERNET_CACHE 0x0020
1712 #define CSIDL_COOKIES 0x0021
1713 #define CSIDL_HISTORY 0x0022
1714 #define CSIDL_COMMON_APPDATA 0x0023
1715 #define CSIDL_WINDOWS 0x0024
1716 #define CSIDL_SYSTEM 0x0025
1717 #define CSIDL_PROGRAM_FILES 0x0026
1718 #define CSIDL_MYPICTURES 0x0027
1719 #define CSIDL_PROFILE 0x0028
1720 #define CSIDL_SYSTEMX86 0x0029
1721 #define CSIDL_PROGRAM_FILESX86 0x002a
1722 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1723 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1724 #define CSIDL_COMMON_TEMPLATES 0x002d
1725 #define CSIDL_COMMON_DOCUMENTS 0x002e
1726 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1727 #define CSIDL_ADMINTOOLS 0x0030
1728 #define CSIDL_CONNECTIONS 0x0031
1729 #define CSIDL_COMMON_MUSIC 0x0035
1730 #define CSIDL_COMMON_PICTURES 0x0036
1731 #define CSIDL_COMMON_VIDEO 0x0037
1732 #define CSIDL_RESOURCES 0x0038
1733 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1734 #define CSIDL_COMMON_OEM_LINKS 0x003a
1735 #define CSIDL_CDBURN_AREA 0x003b
1736 #define CSIDL_COMPUTERSNEARME 0x003d
1737 #define CSIDL_PROFILES 0x003e
1738 #define CSIDL_FOLDER_MASK 0x00ff
1739 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1740 #define CSIDL_FLAG_NO_ALIAS 0x1000
1741 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1742 #define CSIDL_FLAG_CREATE 0x8000
1744 #define CSIDL_FLAG_MASK 0xff00
1746 /****************************************************************************
1747 * SHGetDesktopFolder API
1749 WINSHELLAPI HRESULT WINAPI
SHGetDesktopFolder(IShellFolder
* *);
1751 WINSHELLAPI HRESULT WINAPI
SHBindToFolderIDListParent(IShellFolder
*psf
, LPCITEMIDLIST pidl
, REFIID riid
,
1752 LPVOID
*ppv
, LPCITEMIDLIST
*ppidlLast
);
1754 /****************************************************************************
1755 * SHBindToParent API
1757 WINSHELLAPI HRESULT WINAPI
SHBindToParent(LPCITEMIDLIST pidl
, REFIID riid
, LPVOID
*ppv
, LPCITEMIDLIST
*ppidlLast
);
1759 /****************************************************************************
1760 * SHDefExtractIcon API
1762 WINSHELLAPI HRESULT WINAPI
SHDefExtractIconA(LPCSTR pszIconFile
, int iIndex
, UINT uFlags
,
1763 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
1764 WINSHELLAPI HRESULT WINAPI
SHDefExtractIconW(LPCWSTR pszIconFile
, int iIndex
, UINT uFlags
,
1765 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
1766 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1769 * DROPFILES for CF_HDROP and CF_PRINTERS
1771 typedef struct _DROPFILES
1777 } DROPFILES
, *LPDROPFILES
;
1780 * Properties of a file in the clipboard
1782 typedef struct _FILEDESCRIPTORA
{
1787 DWORD dwFileAttributes
;
1788 FILETIME ftCreationTime
;
1789 FILETIME ftLastAccessTime
;
1790 FILETIME ftLastWriteTime
;
1791 DWORD nFileSizeHigh
;
1793 CHAR cFileName
[MAX_PATH
];
1794 } FILEDESCRIPTORA
, *LPFILEDESCRIPTORA
;
1796 typedef struct _FILEDESCRIPTORW
{
1801 DWORD dwFileAttributes
;
1802 FILETIME ftCreationTime
;
1803 FILETIME ftLastAccessTime
;
1804 FILETIME ftLastWriteTime
;
1805 DWORD nFileSizeHigh
;
1807 WCHAR cFileName
[MAX_PATH
];
1808 } FILEDESCRIPTORW
, *LPFILEDESCRIPTORW
;
1810 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR
)
1811 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR
)
1814 * CF_FILEGROUPDESCRIPTOR clipboard format
1816 typedef struct _FILEGROUPDESCRIPTORA
{
1818 FILEDESCRIPTORA fgd
[1];
1819 } FILEGROUPDESCRIPTORA
, *LPFILEGROUPDESCRIPTORA
;
1821 typedef struct _FILEGROUPDESCRIPTORW
{
1823 FILEDESCRIPTORW fgd
[1];
1824 } FILEGROUPDESCRIPTORW
, *LPFILEGROUPDESCRIPTORW
;
1826 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR
)
1827 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR
)
1829 /****************************************************************************
1836 BOOL fFullPathTitle
:1;
1837 BOOL fSaveLocalView
:1;
1839 BOOL fSimpleDefault
:1;
1840 BOOL fDontShowDescBar
:1;
1841 BOOL fNewWindowMode
:1;
1842 BOOL fShowCompColor
:1;
1843 BOOL fDontPrettyNames
:1;
1844 BOOL fAdminsCreateCommonGroups
:1;
1845 UINT fUnusedFlags
:7;
1846 UINT
:15; /* Required for proper binary layout with gcc */
1847 UINT fMenuEnumFilter
;
1848 } CABINETSTATE
, *LPCABINETSTATE
;
1850 #define CABINETSTATE_VERSION 2
1852 WINSHELLAPI BOOL WINAPI
ReadCabinetState(CABINETSTATE
*, int);
1853 WINSHELLAPI BOOL WINAPI
WriteCabinetState(CABINETSTATE
*);
1855 /****************************************************************************
1856 * Path Manipulation Routines
1859 /* PathProcessCommand flags */
1860 #define PPCF_ADDQUOTES 0x01
1861 #define PPCF_INCLUDEARGS 0x02
1862 #define PPCF_ADDARGUMENTS 0x03
1863 #define PPCF_NODIRECTORIES 0x10
1864 #define PPCF_DONTRESOLVE 0x20
1865 #define PPCF_FORCEQUALIFY 0x40
1866 #define PPCF_LONGESTPOSSIBLE 0x80
1868 /* PathResolve flags */
1869 #define PRF_VERIFYEXISTS 0x01
1870 #define PRF_TRYPROGRAMEXTENSIONS 0x03
1871 #define PRF_FIRSTDIRDEF 0x04
1872 #define PRF_DONTFINDLNK 0x08
1873 #define PRF_REQUIREABSOLUTE 0x10
1875 WINSHELLAPI VOID WINAPI
PathGetShortPath(LPWSTR pszPath
);
1876 WINSHELLAPI LONG WINAPI
PathProcessCommand(LPCWSTR
, LPWSTR
, int, DWORD
);
1877 WINSHELLAPI
int WINAPI
PathResolve(LPWSTR
, PZPCWSTR
, UINT
);
1878 WINSHELLAPI BOOL WINAPI
PathYetAnotherMakeUniqueName(LPWSTR
, LPCWSTR
, LPCWSTR
, LPCWSTR
);
1879 WINSHELLAPI BOOL WINAPI
Win32DeleteFile(LPCWSTR
);
1881 /****************************************************************************
1882 * Drag And Drop Routines
1885 /* DAD_AutoScroll sample structure */
1886 #define NUM_POINTS 3
1892 POINT pts
[NUM_POINTS
];
1893 DWORD dwTimes
[NUM_POINTS
];
1896 WINSHELLAPI BOOL WINAPI
DAD_SetDragImage(HIMAGELIST
,LPPOINT
);
1897 WINSHELLAPI BOOL WINAPI
DAD_DragEnterEx(HWND
,POINT
);
1898 WINSHELLAPI BOOL WINAPI
DAD_DragEnterEx2(HWND
,POINT
,IDataObject
*);
1899 WINSHELLAPI BOOL WINAPI
DAD_DragMove(POINT
);
1900 WINSHELLAPI BOOL WINAPI
DAD_DragLeave(void);
1901 WINSHELLAPI BOOL WINAPI
DAD_AutoScroll(HWND
,AUTO_SCROLL_DATA
*,LPPOINT
);
1902 WINSHELLAPI HRESULT WINAPI
SHDoDragDrop(HWND
,IDataObject
*,IDropSource
*,DWORD
,LPDWORD
);
1904 /****************************************************************************
1905 * Internet shortcut properties
1908 #define PID_IS_URL 2
1909 #define PID_IS_NAME 4
1910 #define PID_IS_WORKINGDIR 5
1911 #define PID_IS_HOTKEY 6
1912 #define PID_IS_SHOWCMD 7
1913 #define PID_IS_ICONINDEX 8
1914 #define PID_IS_ICONFILE 9
1915 #define PID_IS_WHATSNEW 10
1916 #define PID_IS_AUTHOR 11
1917 #define PID_IS_DESCRIPTION 12
1918 #define PID_IS_COMMENT 13
1920 WINSHELLAPI
void WINAPI
ILFree(ITEMIDLIST
*);
1921 WINSHELLAPI ITEMIDLIST
* WINAPI
ILClone(const ITEMIDLIST
*) __WINE_DEALLOC(ILFree
) __WINE_MALLOC
;
1922 WINSHELLAPI ITEMIDLIST
* WINAPI
ILCloneFirst(const ITEMIDLIST
*) __WINE_DEALLOC(ILFree
) __WINE_MALLOC
;
1923 WINSHELLAPI ITEMIDLIST
* WINAPI
ILCreateFromPathA(const char*) __WINE_DEALLOC(ILFree
) __WINE_MALLOC
;
1924 WINSHELLAPI ITEMIDLIST
* WINAPI
ILCreateFromPathW(const WCHAR
*) __WINE_DEALLOC(ILFree
) __WINE_MALLOC
;
1925 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1926 WINSHELLAPI ITEMIDLIST
* WINAPI
ILCombine(const ITEMIDLIST
*,const ITEMIDLIST
*) __WINE_DEALLOC(ILFree
) __WINE_MALLOC
;
1928 WINSHELLAPI LPITEMIDLIST WINAPI
ILAppendID(LPITEMIDLIST
,LPCSHITEMID
,BOOL
);
1929 WINSHELLAPI LPITEMIDLIST WINAPI
ILFindChild(LPCITEMIDLIST
,LPCITEMIDLIST
);
1930 WINSHELLAPI LPITEMIDLIST WINAPI
ILFindLastID(LPCITEMIDLIST
);
1931 WINSHELLAPI LPITEMIDLIST WINAPI
ILGetNext(LPCITEMIDLIST
);
1932 WINSHELLAPI UINT WINAPI
ILGetSize(LPCITEMIDLIST
);
1933 WINSHELLAPI BOOL WINAPI
ILIsEqual(LPCITEMIDLIST
,LPCITEMIDLIST
);
1934 WINSHELLAPI BOOL WINAPI
ILIsParent(LPCITEMIDLIST
,LPCITEMIDLIST
,BOOL
);
1935 WINSHELLAPI HRESULT WINAPI
ILLoadFromStream(LPSTREAM
,LPITEMIDLIST
*);
1936 WINSHELLAPI BOOL WINAPI
ILRemoveLastID(LPITEMIDLIST
);
1937 WINSHELLAPI HRESULT WINAPI
ILSaveToStream(LPSTREAM
,LPCITEMIDLIST
);
1939 static inline BOOL
ILIsEmpty(LPCITEMIDLIST pidl
)
1941 return !(pidl
&& pidl
->mkid
.cb
);
1944 #include <pshpack8.h>
1948 IContextMenuCB
*pcmcb
;
1949 PCIDLIST_ABSOLUTE pidlFolder
;
1952 PCUITEMID_CHILD_ARRAY apidl
;
1953 IUnknown
*punkAssociationInfo
;
1958 #include <poppack.h>
1960 WINSHELLAPI HRESULT WINAPI
SHCreateDefaultContextMenu(const DEFCONTEXTMENU
*pdcm
, REFIID riid
, void **ppv
);
1962 typedef HRESULT (CALLBACK
*LPFNDFMCALLBACK
)(IShellFolder
*,HWND
,IDataObject
*,UINT
,WPARAM
,LPARAM
);
1964 WINSHELLAPI HRESULT WINAPI
CDefFolderMenu_Create2(LPCITEMIDLIST pidlFolder
, HWND hwnd
, UINT cidl
,
1965 LPCITEMIDLIST
*apidl
, IShellFolder
*psf
,
1966 LPFNDFMCALLBACK lpfn
, UINT nKeys
, const HKEY
*ahkeys
,
1967 IContextMenu
**ppcm
);
1969 WINSHELLAPI
int WINAPI
PickIconDlg(HWND owner
, WCHAR
*path
, UINT path_len
, int *index
);
1970 WINSHELLAPI HRESULT WINAPI
SHLimitInputEdit(HWND hwnd
, IShellFolder
*folder
);
1972 #include <poppack.h>
1976 #endif /* defined(__cplusplus) */
1978 #endif /* __WINE_SHLOBJ_H */