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