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
60 UINT WINAPI
SHAddFromPropSheetExtArray(HPSXA
,LPFNADDPROPSHEETPAGE
,LPARAM
);
61 LPVOID WINAPI
SHAlloc(ULONG
) __WINE_ALLOC_SIZE(1);
62 HRESULT WINAPI
SHCoCreateInstance(LPCWSTR
,const CLSID
*,IUnknown
*,REFIID
,LPVOID
*);
63 HPSXA WINAPI
SHCreatePropSheetExtArray(HKEY
,LPCWSTR
,UINT
);
64 HPSXA WINAPI
SHCreatePropSheetExtArrayEx(HKEY
,LPCWSTR
,UINT
,IDataObject
*);
65 HRESULT WINAPI
SHCreateQueryCancelAutoPlayMoniker(IMoniker
**);
66 HRESULT WINAPI
SHCreateShellItem(LPCITEMIDLIST
,IShellFolder
*,LPCITEMIDLIST
,IShellItem
**);
67 DWORD WINAPI
SHCLSIDFromStringA(LPCSTR
,CLSID
*);
68 DWORD WINAPI
SHCLSIDFromStringW(LPCWSTR
,CLSID
*);
69 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
70 HRESULT WINAPI
SHCreateStdEnumFmtEtc(DWORD
,const FORMATETC
*,IEnumFORMATETC
**);
71 void WINAPI
SHDestroyPropSheetExtArray(HPSXA
);
72 BOOL WINAPI
SHFindFiles(LPCITEMIDLIST
,LPCITEMIDLIST
);
73 DWORD WINAPI
SHFormatDrive(HWND
,UINT
,UINT
,UINT
);
74 void WINAPI
SHFree(LPVOID
);
75 BOOL WINAPI
GetFileNameFromBrowse(HWND
,LPWSTR
,DWORD
,LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
);
76 HRESULT WINAPI
SHGetInstanceExplorer(IUnknown
**);
77 HRESULT WINAPI
SHGetFolderPathAndSubDirA(HWND
,int,HANDLE
,DWORD
,LPCSTR
,LPSTR
);
78 HRESULT WINAPI
SHGetFolderPathAndSubDirW(HWND
,int,HANDLE
,DWORD
,LPCWSTR
,LPWSTR
);
79 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir)
80 HRESULT WINAPI
SHGetKnownFolderIDList(REFKNOWNFOLDERID
,DWORD
,HANDLE
,PIDLIST_ABSOLUTE
*);
81 HRESULT WINAPI
SHGetKnownFolderItem(REFKNOWNFOLDERID
,KNOWN_FOLDER_FLAG
,HANDLE
,REFIID
,void**);
82 HRESULT WINAPI
SHGetKnownFolderPath(REFKNOWNFOLDERID
,DWORD
,HANDLE
,PWSTR
*);
83 BOOL WINAPI
SHGetPathFromIDListA(LPCITEMIDLIST
,LPSTR
);
84 BOOL WINAPI
SHGetPathFromIDListW(LPCITEMIDLIST
,LPWSTR
);
85 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
86 INT WINAPI
SHHandleUpdateImage(LPCITEMIDLIST
);
87 HRESULT WINAPI
SHILCreateFromPath(LPCWSTR
,LPITEMIDLIST
*,DWORD
*);
88 HRESULT WINAPI
SHLoadOLE(LPARAM
);
89 HRESULT WINAPI
SHParseDisplayName(LPCWSTR
,IBindCtx
*,LPITEMIDLIST
*,SFGAOF
,SFGAOF
*);
90 HRESULT WINAPI
SHPathPrepareForWriteA(HWND
,IUnknown
*,LPCSTR
,DWORD
);
91 HRESULT WINAPI
SHPathPrepareForWriteW(HWND
,IUnknown
*,LPCWSTR
,DWORD
);
92 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite)
93 UINT WINAPI
SHReplaceFromPropSheetExtArray(HPSXA
,UINT
,LPFNADDPROPSHEETPAGE
,LPARAM
);
94 LPITEMIDLIST WINAPI
SHSimpleIDListFromPath(LPCWSTR
);
95 BOOL WINAPI
SHRunControlPanel(LPCWSTR
, HWND
);
96 int WINAPI
SHMapPIDLToSystemImageListIndex(IShellFolder
*,LPCITEMIDLIST
,int*);
97 HRESULT WINAPI
SHStartNetConnectionDialog(HWND
,LPCSTR
,DWORD
);
98 VOID WINAPI
SHUpdateImageA(LPCSTR
,INT
,UINT
,INT
);
99 VOID WINAPI
SHUpdateImageW(LPCWSTR
,INT
,UINT
,INT
);
100 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
101 int WINAPI
RestartDialog(HWND
,LPCWSTR
,DWORD
);
102 int WINAPI
RestartDialogEx(HWND
,LPCWSTR
,DWORD
,DWORD
);
103 int WINAPI
DriveType(int);
104 int WINAPI
RealDriveType(int, BOOL
);
105 int WINAPI
IsNetDrive(int);
106 BOOL WINAPI
IsUserAnAdmin(void);
107 UINT WINAPI
Shell_MergeMenus(HMENU
,HMENU
,UINT
,UINT
,UINT
,ULONG
);
108 BOOL WINAPI
Shell_GetImageLists(HIMAGELIST
*,HIMAGELIST
*);
109 BOOL WINAPI
SignalFileOpen(PCIDLIST_ABSOLUTE
);
110 BOOL WINAPI
ImportPrivacySettings(LPCWSTR
, BOOL
*, BOOL
*);
112 #define SHFMT_ERROR __MSABI_LONG(0xFFFFFFFF) /* Error on last format, drive may be formattable */
113 #define SHFMT_CANCEL __MSABI_LONG(0xFFFFFFFE) /* Last format was cancelled */
114 #define SHFMT_NOFORMAT __MSABI_LONG(0xFFFFFFFD) /* Drive is not formattable */
116 /* SHFormatDrive flags */
117 #define SHFMT_ID_DEFAULT 0xFFFF
118 #define SHFMT_OPT_FULL 1
119 #define SHFMT_OPT_SYSONLY 2
121 /* SHPathPrepareForWrite flags */
122 #define SHPPFW_NONE 0x00000000
123 #define SHPPFW_DIRCREATE 0x00000001
124 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
125 #define SHPPFW_ASKDIRCREATE 0x00000002
126 #define SHPPFW_IGNOREFILENAME 0x00000004
127 #define SHPPFW_NOWRITECHECK 0x00000008
128 #define SHPPFW_MEDIACHECKONLY 0x00000010
130 /* SHObjectProperties flags */
131 #define SHOP_PRINTERNAME 0x01
132 #define SHOP_FILEPATH 0x02
133 #define SHOP_VOLUMEGUID 0x04
135 BOOL WINAPI
SHObjectProperties(HWND
,DWORD
,LPCWSTR
,LPCWSTR
);
137 #define PCS_FATAL 0x80000000
138 #define PCS_REPLACEDCHAR 0x00000001
139 #define PCS_REMOVEDCHAR 0x00000002
140 #define PCS_TRUNCATED 0x00000004
141 #define PCS_PATHTOOLONG 0x00000008
143 int WINAPI
PathCleanupSpec(LPCWSTR
,LPWSTR
);
145 /* Shell_MergeMenus flags */
146 #define MM_ADDSEPARATOR 0x00000001
147 #define MM_SUBMENUSHAVEIDS 0x00000002
148 #define MM_DONTREMOVESEPS 0x00000004
150 /*****************************************************************************
151 * IContextMenu interface
155 /* DATAOBJECT_InitShellIDList*/
156 #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
157 #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
158 #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
159 /* DATAOBJECT_InitFileGroupDesc */
160 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
161 /* DATAOBJECT_InitFileContents*/
162 #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
163 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
164 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
165 #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
166 #define CFSTR_SHELLURLA "UniformResourceLocator"
167 #define CFSTR_INETURLA CFSTR_SHELLURLA
168 #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
169 #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
170 #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
171 #define CFSTR_INDRAGLOOPA "InShellDragLoop"
172 #define CFSTR_DRAGCONTEXTA "DragContext"
173 #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
174 #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
175 #define CFSTR_TARGETCLSIDA "TargetCLSID"
176 #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
177 #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
179 #if defined(__GNUC__)
180 # define CFSTR_SHELLIDLISTW \
181 (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
182 # define CFSTR_SHELLIDLISTOFFSETW \
183 (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
184 # define CFSTR_NETRESOURCESW \
185 (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
186 # define CFSTR_FILEDESCRIPTORW \
187 (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
188 # define CFSTR_FILECONTENTSW \
189 (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
190 # define CFSTR_FILENAMEW \
191 (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
192 # define CFSTR_FILENAMEMAPW \
193 (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
194 # define CFSTR_PRINTERGROUPW \
195 (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
196 # define CFSTR_SHELLURLW \
197 (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 }
198 # define CFSTR_INETURLW \
199 (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 }
200 # define CFSTR_PREFERREDDROPEFFECTW \
201 (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
202 # define CFSTR_PERFORMEDDROPEFFECTW \
203 (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
204 # define CFSTR_PASTESUCCEEDEDW \
205 (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
206 # define CFSTR_INDRAGLOOPW \
207 (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
208 # define CFSTR_DRAGCONTEXTW \
209 (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
210 # define CFSTR_MOUNTEDVOLUMEW \
211 (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
212 # define CFSTR_PERSISTEDDATAOBJECTW \
213 (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
214 # define CFSTR_TARGETCLSIDW \
215 (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
216 # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
217 (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
218 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
219 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
220 (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
221 ' ','D','r','o','p','E','f','f','e','c','t',0 }
222 #elif defined(_MSC_VER)
223 # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
224 # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
225 # define CFSTR_NETRESOURCESW L"Net Resource"
226 # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
227 # define CFSTR_FILECONTENTSW L"FileContents"
228 # define CFSTR_FILENAMEW L"FileNameW"
229 # define CFSTR_FILENAMEMAPW L"FileNameMapW"
230 # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
231 # define CFSTR_SHELLURLW L"UniformResourceLocator"
232 # define CFSTR_INETURLW L"UniformResourceLocatorW"
233 # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
234 # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
235 # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
236 # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
237 # define CFSTR_DRAGCONTEXTW L"DragContext"
238 # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
239 # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
240 # define CFSTR_TARGETCLSIDW L"TargetCLSID"
241 # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
242 # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
244 static const WCHAR CFSTR_SHELLIDLISTW
[] =
245 { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
246 static const WCHAR CFSTR_SHELLIDLISTOFFSETW
[] =
247 { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
248 static const WCHAR CFSTR_NETRESOURCESW
[] =
249 { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
250 static const WCHAR CFSTR_FILEDESCRIPTORW
[] =
251 { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
252 static const WCHAR CFSTR_FILECONTENTSW
[] =
253 { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
254 static const WCHAR CFSTR_FILENAMEW
[] =
255 { 'F','i','l','e','N','a','m','e','W',0 };
256 static const WCHAR CFSTR_FILENAMEMAPW
[] =
257 { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
258 static const WCHAR CFSTR_PRINTERGROUPW
[] =
259 { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
260 static const WCHAR CFSTR_SHELLURLW
[] =
261 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
262 static const WCHAR CFSTR_INETURLW
[] =
263 { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
264 static const WCHAR CFSTR_PREFERREDDROPEFFECTW
[] =
265 { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
266 static const WCHAR CFSTR_PERFORMEDDROPEFFECTW
[] =
267 { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
268 static const WCHAR CFSTR_PASTESUCCEEDEDW
[] =
269 { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
270 static const WCHAR CFSTR_INDRAGLOOPW
[] =
271 { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
272 static const WCHAR CFSTR_DRAGCONTEXTW
[] =
273 { 'D','r','a','g','C','o','n','t','e','x','t',0 };
274 static const WCHAR CFSTR_MOUNTEDVOLUMEW
[] =
275 { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
276 static const WCHAR CFSTR_PERSISTEDDATAOBJECTW
[] =
277 { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
278 static const WCHAR CFSTR_TARGETCLSIDW
[] =
279 { 'T','a','r','g','e','t','C','L','S','I','D',0 };
280 static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW
[] =
281 { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
282 ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
283 static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW
[] =
284 { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
285 ' ','D','r','o','p','E','f','f','e','c','t',0 };
288 #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
289 #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
290 #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
291 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
292 #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
293 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
294 #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
295 #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
296 #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
297 #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
298 #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
299 #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
300 #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
301 #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
302 #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
303 #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
304 #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
305 #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
306 #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
307 #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
314 /************************************************************************
315 * IShellView interface
318 #define FCIDM_SHVIEWFIRST 0x0000
320 #define FCIDM_SHVIEW_ARRANGE 0x7001
321 #define FCIDM_SHVIEW_DELETE 0x7011
322 #define FCIDM_SHVIEW_PROPERTIES 0x7013
323 #define FCIDM_SHVIEW_CUT 0x7018
324 #define FCIDM_SHVIEW_COPY 0x7019
325 #define FCIDM_SHVIEW_INSERT 0x701A
326 #define FCIDM_SHVIEW_UNDO 0x701B
327 #define FCIDM_SHVIEW_INSERTLINK 0x701C
328 #define FCIDM_SHVIEW_SELECTALL 0x7021
329 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
331 #define FCIDM_SHVIEW_BIGICON 0x7029
332 #define FCIDM_SHVIEW_SMALLICON 0x702A
333 #define FCIDM_SHVIEW_LISTVIEW 0x702B
334 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
335 /* 0x7030-0x703f are used by the shellbrowser */
336 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
337 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
339 #define FCIDM_SHVIEW_HELP 0x7041
340 #define FCIDM_SHVIEW_RENAME 0x7050
341 #define FCIDM_SHVIEW_CREATELINK 0x7051
342 #define FCIDM_SHVIEW_NEWLINK 0x7052
343 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
345 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
346 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
347 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
349 #define FCIDM_SHVIEWLAST 0x7fff
350 #define FCIDM_BROWSERFIRST 0xA000
351 /* undocumented toolbar items from stddlg's*/
352 #define FCIDM_TB_UPFOLDER 0xA001
353 #define FCIDM_TB_NEWFOLDER 0xA002
354 #define FCIDM_TB_SMALLICON 0xA003
355 #define FCIDM_TB_REPORTVIEW 0xA004
356 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
358 #define FCIDM_BROWSERLAST 0xbf00
359 #define FCIDM_GLOBALFIRST 0x8000
360 #define FCIDM_GLOBALLAST 0x9fff
363 * Global submenu IDs and separator IDs
365 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
366 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
367 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
368 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
369 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
370 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
371 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
372 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
373 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
374 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
376 /* control IDs known to the view */
377 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
378 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
380 #define INTERFACE IShellDetails
381 DECLARE_INTERFACE_(IShellDetails
, IUnknown
)
383 /*** IUnknown methods ***/
384 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void **ppv
) PURE
;
385 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
386 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
387 /*** IShellDetails methods ***/
388 STDMETHOD(GetDetailsOf
)(THIS_ PCUITEMID_CHILD pidl
, UINT iColumn
, SHELLDETAILS
*pDetails
) PURE
;
389 STDMETHOD(ColumnClick
)(THIS_ UINT iColumn
) PURE
;
393 #if !defined(__cplusplus) || defined(CINTERFACE)
394 /*** IUnknown methods ***/
395 #define IShellDetails_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
396 #define IShellDetails_AddRef(p) (p)->lpVtbl->AddRef(p)
397 #define IShellDetails_Release(p) (p)->lpVtbl->Release(p)
398 /*** IShellDetails methods ***/
399 #define IShellDetails_GetDetailsOf(p,a,b,c) (p)->lpVtbl->GetDetailsOf(p,a,b,c)
400 #define IShellDetails_ColumnClick(p,a) (p)->lpVtbl->ColumnClick(p,a)
403 /* IQueryInfo interface */
404 #define INTERFACE IQueryInfo
405 DECLARE_INTERFACE_(IQueryInfo
,IUnknown
)
407 /*** IUnknown methods ***/
408 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
409 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
410 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
411 /*** IQueryInfo methods ***/
412 STDMETHOD(GetInfoTip
)(THIS_ DWORD dwFlags
, WCHAR
** lppTips
) PURE
;
413 STDMETHOD(GetInfoFlags
)(THIS_ DWORD
* lpFlags
) PURE
;
417 #if !defined(__cplusplus) || defined(CINTERFACE)
418 /*** IUnknown methods ***/
419 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
420 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
421 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
422 /*** IQueryInfo methods ***/
423 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
424 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
427 /* IInputObject interface */
428 #define INTERFACE IInputObject
429 DECLARE_INTERFACE_(IInputObject
,IUnknown
)
431 /*** IUnknown methods ***/
432 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
433 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
434 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
435 /*** IInputObject methods ***/
436 STDMETHOD(UIActivateIO
)(THIS_ BOOL bActivating
, LPMSG lpMsg
) PURE
;
437 STDMETHOD(HasFocusIO
)(THIS
) PURE
;
438 STDMETHOD(TranslateAcceleratorIO
)(THIS_ LPMSG lpMsg
) PURE
;
442 #if !defined(__cplusplus) || defined(CINTERFACE)
443 /*** IUnknown methods ***/
444 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
445 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
446 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
447 /*** IInputObject methods ***/
448 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
449 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
450 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
453 /* IInputObjectSite interface */
454 #define INTERFACE IInputObjectSite
455 DECLARE_INTERFACE_(IInputObjectSite
,IUnknown
)
457 /*** IUnknown methods ***/
458 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
459 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
460 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
461 /*** IInputObjectSite methods ***/
462 STDMETHOD(OnFocusChangeIS
)(THIS_ LPUNKNOWN lpUnknown
, BOOL bFocus
) PURE
;
466 #if !defined(__cplusplus) || defined(CINTERFACE)
467 /*** IUnknown methods ***/
468 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
469 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
470 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
471 /*** IInputObject methods ***/
472 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
475 /* IObjMgr interface */
476 #define INTERFACE IObjMgr
477 DECLARE_INTERFACE_(IObjMgr
,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 /*** IObjMgr methods ***/
484 STDMETHOD(Append
)(THIS_ LPUNKNOWN punk
) PURE
;
485 STDMETHOD(Remove
)(THIS_ LPUNKNOWN punk
) PURE
;
489 #if !defined(__cplusplus) || defined(CINTERFACE)
490 /*** IUnknown methods ***/
491 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
492 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
493 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
494 /*** IObjMgr methods ***/
495 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
496 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
499 /* IACList interface */
500 #define INTERFACE IACList
501 DECLARE_INTERFACE_(IACList
,IUnknown
)
503 /*** IUnknown methods ***/
504 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
505 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
506 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
507 /*** IACList methods ***/
508 STDMETHOD(Expand
)(THIS_ LPCOLESTR str
) PURE
;
512 #if !defined(__cplusplus) || defined(CINTERFACE)
513 /*** IUnknown methods ***/
514 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
515 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
516 #define IACList_Release(p) (p)->lpVtbl->Release(p)
517 /*** IACList methods ***/
518 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
521 /* IACList2 interface */
522 #define INTERFACE IACList2
523 DECLARE_INTERFACE_(IACList2
,IACList
)
525 /*** IUnknown methods ***/
526 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
527 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
528 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
529 /*** IACList methods ***/
530 STDMETHOD(Expand
)(THIS_ LPCOLESTR str
) PURE
;
531 /*** IACList2 methods ***/
532 STDMETHOD(SetOptions
)(THIS_ DWORD dwFlag
) PURE
;
533 STDMETHOD(GetOptions
)(THIS_ DWORD
* pdwFlag
) PURE
;
537 #if !defined(__cplusplus) || defined(CINTERFACE)
538 /*** IUnknown methods ***/
539 #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
540 #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
541 #define IACList2_Release(p) (p)->lpVtbl->Release(p)
542 /*** IACList2 methods ***/
543 #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
544 #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
547 /****************************************************************************
548 * IShellFolderViewCB interface
551 #define INTERFACE IShellFolderViewCB
552 DECLARE_INTERFACE_(IShellFolderViewCB
,IUnknown
)
554 /*** IUnknown methods ***/
555 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
556 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
557 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
558 /*** IShellFolderViewCB methods ***/
559 STDMETHOD(MessageSFVCB
)(THIS_ UINT uMsg
, WPARAM wParam
, LPARAM lParam
) PURE
;
563 #if !defined(__cplusplus) || defined(CINTERFACE)
564 /*** IUnknown methods ***/
565 #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
566 #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
567 #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
568 /*** IShellFolderViewCB methods ***/
569 #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
572 /****************************************************************************
573 * IShellFolderView interface
576 #include <pshpack8.h>
578 typedef struct _ITEMSPACING
588 #define INTERFACE IShellFolderView
589 DEFINE_GUID(IID_IShellFolderView
,0x37a378c0,0xf82d,0x11ce,0xae,0x65,0x08,0x00,0x2b,0x2e,0x12,0x62);
590 DECLARE_INTERFACE_(IShellFolderView
, IUnknown
)
592 /*** IUnknown methods ***/
593 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void **ppv
) PURE
;
594 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
595 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
597 /*** IShellFolderView methods ***/
598 STDMETHOD(Rearrange
) (THIS_ LPARAM lParamSort
) PURE
;
599 STDMETHOD(GetArrangeParam
) (THIS_ LPARAM
*plParamSort
) PURE
;
600 STDMETHOD(ArrangeGrid
) (THIS
) PURE
;
601 STDMETHOD(AutoArrange
) (THIS
) PURE
;
602 STDMETHOD(GetAutoArrange
) (THIS
) PURE
;
603 STDMETHOD(AddObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
604 STDMETHOD(GetObject
) (THIS_ PITEMID_CHILD
*ppidl
, UINT uItem
) PURE
;
605 STDMETHOD(RemoveObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
606 STDMETHOD(GetObjectCount
) (THIS_ UINT
*puCount
) PURE
;
607 STDMETHOD(SetObjectCount
) (THIS_ UINT uCount
, UINT dwFlags
) PURE
;
608 STDMETHOD(UpdateObject
) (THIS_ PITEMID_CHILD pidlOld
, PITEMID_CHILD pidlNew
, UINT
*puItem
) PURE
;
609 STDMETHOD(RefreshObject
) (THIS_ PITEMID_CHILD pidl
, UINT
*puItem
) PURE
;
610 STDMETHOD(SetRedraw
) (THIS_ BOOL bRedraw
) PURE
;
611 STDMETHOD(GetSelectedCount
) (THIS_ UINT
*puSelected
) PURE
;
612 STDMETHOD(GetSelectedObjects
) (THIS_ PCITEMID_CHILD
**pppidl
, UINT
*puItems
) PURE
;
613 STDMETHOD(IsDropOnSource
) (THIS_ IDropTarget
*pDropTarget
) PURE
;
614 STDMETHOD(GetDragPoint
) (THIS_ POINT
*ppt
) PURE
;
615 STDMETHOD(GetDropPoint
) (THIS_ POINT
*ppt
) PURE
;
616 STDMETHOD(MoveIcons
) (THIS_ IDataObject
*pDataObject
) PURE
;
617 STDMETHOD(SetItemPos
) (THIS_ PCUITEMID_CHILD pidl
, POINT
*ppt
) PURE
;
618 STDMETHOD(IsBkDropTarget
) (THIS_ IDropTarget
*pDropTarget
) PURE
;
619 STDMETHOD(SetClipboard
) (THIS_ BOOL bMove
) PURE
;
620 STDMETHOD(SetPoints
) (THIS_ IDataObject
*pDataObject
) PURE
;
621 STDMETHOD(GetItemSpacing
) (THIS_ ITEMSPACING
*pSpacing
) PURE
;
622 STDMETHOD(SetCallback
) (THIS_ IShellFolderViewCB
* pNewCB
, IShellFolderViewCB
** ppOldCB
) PURE
;
623 STDMETHOD(Select
) ( THIS_ UINT dwFlags
) PURE
;
624 STDMETHOD(QuerySupport
) (THIS_ UINT
* pdwSupport
) PURE
;
625 STDMETHOD(SetAutomationObject
)(THIS_ IDispatch
* pdisp
) PURE
;
629 #if !defined(__cplusplus) || defined(CINTERFACE)
630 /*** IUnknown methods ***/
631 #define IShellFolderView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
632 #define IShellFolderView_AddRef(p) (p)->lpVtbl->AddRef(p)
633 #define IShellFolderView_Release(p) (p)->lpVtbl->Release(p)
634 /*** IShellFolderView methods ***/
635 #define IShellFolderView_Rearrange(p,a) (p)->lpVtbl->Rearrange(p,a)
636 #define IShellFolderView_GetArrangeParam(p,a) (p)->lpVtbl->GetArrangeParam(p,a)
637 #define IShellFolderView_ArrangeGrid(p) (p)->lpVtbl->ArrangeGrid(p)
638 #define IShellFolderView_AutoArrange(p) (p)->lpVtbl->AutoArrange(p)
639 #define IShellFolderView_GetAutoArrange(p) (p)->lpVtbl->GetAutoArrange(p)
640 #define IShellFolderView_AddObject(p,a,b) (p)->lpVtbl->AddObject(p,a,b)
641 #define IShellFolderView_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
642 #define IShellFolderView_RemoveObject(p,a,b) (p)->lpVtbl->RemoveObject(p,a,b)
643 #define IShellFolderView_GetObjectCount(p,a) (p)->lpVtbl->GetObjectCount(p,a)
644 #define IShellFolderView_SetObjectCount(p,a,b) (p)->lpVtbl->SetObjectCount(p,a,b)
645 #define IShellFolderView_UpdateObject(p,a,b,c) (p)->lpVtbl->UpdateObject(p,a,b,c)
646 #define IShellFolderView_RefreshObject(p,a,b) (p)->lpVtbl->RefreshObject(p,a,b)
647 #define IShellFolderView_SetRedraw(p,a) (p)->lpVtbl->SetRedraw(p,a)
648 #define IShellFolderView_GetSelectedCount(p,a) (p)->lpVtbl->GetSelectedCount(p,a)
649 #define IShellFolderView_GetSelectedObjects(p,a,b) (p)->lpVtbl->GetSelectedObjects(p,a,b)
650 #define IShellFolderView_IsDropOnSource(p,a) (p)->lpVtbl->IsDropOnSource(p,a)
651 #define IShellFolderView_GetDragPoint(p,a) (p)->lpVtbl->GetDragPoint(p,a)
652 #define IShellFolderView_GetDropPoint(p,a) (p)->lpVtbl->GetDropPoint(p,a)
653 #define IShellFolderView_MoveIcons(p,a) (p)->lpVtbl->MoveIcons(p,a)
654 #define IShellFolderView_SetItemPos(p,a,b) (p)->lpVtbl->SetItemPos(p,a,b)
655 #define IShellFolderView_DropTarget(p,a) (p)->lpVtbl->DropTarget(p,a)
656 #define IShellFolderView_SetClipboard(p,a) (p)->lpVtbl->SetClipboard(p,a)
657 #define IShellFolderView_SetPoints(p,a) (p)->lpVtbl->SetPoints(p,a)
658 #define IShellFolderView_GetItemSpacing(p,a) (p)->lpVtbl->GetItemSpacing(p,a)
659 #define IShellFolderView_SetCallback(p,a) (p)->lpVtbl->SetCallback(p,a)
660 #define IShellFolderView_Select(p,a) (p)->lpVtbl->Select(p,a)
661 #define IShellFolderView_QuerySupport(p,a) (p)->lpVtbl->QuerySupport(p,a)
662 #define IShellFolderView_SetAutomationObject(p,a) (p)->lpVtbl->SetAutomationObject(p,a)
665 /* IProgressDialog interface */
666 #define PROGDLG_NORMAL 0x00000000
667 #define PROGDLG_MODAL 0x00000001
668 #define PROGDLG_AUTOTIME 0x00000002
669 #define PROGDLG_NOTIME 0x00000004
670 #define PROGDLG_NOMINIMIZE 0x00000008
671 #define PROGDLG_NOPROGRESSBAR 0x00000010
672 #define PROGDLG_MARQUEEPROGRESS 0x00000020
673 #define PROGDLG_NOCANCEL 0x00000040
675 #define PDTIMER_RESET 0x00000001
676 #define PDTIMER_PAUSE 0x00000002
677 #define PDTIMER_RESUME 0x00000003
679 #define INTERFACE IProgressDialog
680 DECLARE_INTERFACE_(IProgressDialog
,IUnknown
)
682 /*** IUnknown methods ***/
683 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
684 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
685 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
686 /*** IProgressDialog methods ***/
687 STDMETHOD(StartProgressDialog
)(THIS_ HWND hwndParent
, IUnknown
*punkEnableModeless
, DWORD dwFlags
, LPCVOID reserved
) PURE
;
688 STDMETHOD(StopProgressDialog
)(THIS
) PURE
;
689 STDMETHOD(SetTitle
)(THIS_ LPCWSTR pwzTitle
) PURE
;
690 STDMETHOD(SetAnimation
)(THIS_ HINSTANCE hInstance
, UINT uiResourceId
) PURE
;
691 STDMETHOD_(BOOL
,HasUserCancelled
)(THIS
) PURE
;
692 STDMETHOD(SetProgress
)(THIS_ DWORD dwCompleted
, DWORD dwTotal
) PURE
;
693 STDMETHOD(SetProgress64
)(THIS_ ULONGLONG ullCompleted
, ULONGLONG ullTotal
) PURE
;
694 STDMETHOD(SetLine
)(THIS_ DWORD dwLineNum
, LPCWSTR pwzString
, BOOL bPath
, LPCVOID reserved
) PURE
;
695 STDMETHOD(SetCancelMsg
)(THIS_ LPCWSTR pwzCancelMsg
, LPCVOID reserved
) PURE
;
696 STDMETHOD(Timer
)(THIS_ DWORD dwTimerAction
, LPCVOID reserved
) PURE
;
700 #if !defined(__cplusplus) || defined(CINTERFACE)
701 /*** IUnknown methods ***/
702 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
703 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
704 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
705 /*** IProgressDialog methods ***/
706 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
707 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
708 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
709 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
710 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
711 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
712 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
713 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
714 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
715 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
719 /****************************************************************************
720 * SHAddToRecentDocs API
722 #define SHARD_PIDL __MSABI_LONG(0x00000001)
723 #define SHARD_PATHA __MSABI_LONG(0x00000002)
724 #define SHARD_PATHW __MSABI_LONG(0x00000003)
725 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
727 void WINAPI
SHAddToRecentDocs(UINT
,LPCVOID
);
729 /****************************************************************************
730 * SHBrowseForFolder API
732 typedef INT (CALLBACK
*BFFCALLBACK
)(HWND
,UINT
,LPARAM
,LPARAM
);
734 #include <pshpack8.h>
736 typedef struct tagBROWSEINFOA
{
738 LPCITEMIDLIST pidlRoot
;
739 LPSTR pszDisplayName
;
745 } BROWSEINFOA
, *PBROWSEINFOA
, *LPBROWSEINFOA
;
747 typedef struct tagBROWSEINFOW
{
749 LPCITEMIDLIST pidlRoot
;
750 LPWSTR pszDisplayName
;
756 } BROWSEINFOW
, *PBROWSEINFOW
, *LPBROWSEINFOW
;
758 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
759 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
760 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
764 /* Browsing for directory. */
765 #define BIF_RETURNONLYFSDIRS 0x0001
766 #define BIF_DONTGOBELOWDOMAIN 0x0002
767 #define BIF_STATUSTEXT 0x0004
768 #define BIF_RETURNFSANCESTORS 0x0008
769 #define BIF_EDITBOX 0x0010
770 #define BIF_VALIDATE 0x0020
771 #define BIF_NEWDIALOGSTYLE 0x0040
772 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
773 #define BIF_BROWSEINCLUDEURLS 0x0080
774 #define BIF_UAHINT 0x0100
775 #define BIF_NONEWFOLDERBUTTON 0x0200
776 #define BIF_NOTRANSLATETARGETS 0x0400
778 #define BIF_BROWSEFORCOMPUTER 0x1000
779 #define BIF_BROWSEFORPRINTER 0x2000
780 #define BIF_BROWSEINCLUDEFILES 0x4000
782 /* message from browser */
783 #define BFFM_INITIALIZED 1
784 #define BFFM_SELCHANGED 2
785 #define BFFM_VALIDATEFAILEDA 3
786 #define BFFM_VALIDATEFAILEDW 4
787 #define BFFM_IUNKNOWN 5
789 /* messages to browser */
790 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
791 #define BFFM_ENABLEOK (WM_USER+101)
792 #define BFFM_SETSELECTIONA (WM_USER+102)
793 #define BFFM_SETSELECTIONW (WM_USER+103)
794 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
795 #define BFFM_SETOKTEXT (WM_USER+105)
796 #define BFFM_SETEXPANDED (WM_USER+106)
798 LPITEMIDLIST WINAPI
SHBrowseForFolderA(LPBROWSEINFOA lpbi
);
799 LPITEMIDLIST WINAPI
SHBrowseForFolderW(LPBROWSEINFOW lpbi
);
800 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
801 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
802 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
803 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
805 /**********************************************************************
806 * SHCreateShellFolderViewEx API
809 typedef HRESULT (CALLBACK
*LPFNVIEWCALLBACK
)(
817 #include <pshpack8.h>
823 IShellView
* psvOuter
;
826 LPFNVIEWCALLBACK pfnCallback
;
832 HRESULT WINAPI
SHCreateShellFolderViewEx(LPCSFV pshfvi
, IShellView
**ppshv
);
834 /* SHCreateShellFolderViewEx callback messages */
835 #define SFVM_MERGEMENU 1
836 #define SFVM_INVOKECOMMAND 2
837 #define SFVM_GETHELPTEXT 3
838 #define SFVM_GETTOOLTIPTEXT 4
839 #define SFVM_GETBUTTONINFO 5
840 #define SFVM_GETBUTTONS 6
841 #define SFVM_INITMENUPOPUP 7
842 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
843 #define SFVM_DRAWMENUITEM 9 /* undocumented */
844 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
845 #define SFVM_EXITMENULOOP 11 /* undocumented */
846 #define SFVM_VIEWRELEASE 12 /* undocumented */
847 #define SFVM_GETNAMELENGTH 13 /* undocumented */
848 #define SFVM_FSNOTIFY 14
849 #define SFVM_WINDOWCREATED 15
850 #define SFVM_WINDOWCLOSING 16 /* undocumented */
851 #define SFVM_LISTREFRESHED 17 /* undocumented */
852 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
853 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
854 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
855 #define SFVM_GETDETAILSOF 23
856 #define SFVM_COLUMNCLICK 24
857 #define SFVM_QUERYFSNOTIFY 25
858 #define SFVM_DEFITEMCOUNT 26
859 #define SFVM_DEFVIEWMODE 27
860 #define SFVM_UNMERGEFROMMENU 28
861 #define SFVM_ADDINGOBJECT 29 /* undocumented */
862 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
863 #define SFVM_UPDATESTATUSBAR 31
864 #define SFVM_BACKGROUNDENUM 32
865 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
866 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
867 #define SFVM_CANSELECTALL 35 /* undocumented */
868 #define SFVM_DIDDRAGDROP 36
869 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
870 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
871 #define SFVM_SETISFV 39
872 #define SFVM_GETEXTVIEWS 40 /* undocumented */
873 #define SFVM_THISIDLIST 41
874 #define SFVM_ADDPROPERTYPAGES 47
875 #define SFVM_BACKGROUNDENUMDONE 48
876 #define SFVM_GETNOTIFY 49
877 #define SFVM_GETSORTDEFAULTS 53
879 #define SFVM_GETZONE 58
880 #define SFVM_GETPANE 59
881 #define SFVM_GETHELPTOPIC 63
882 #define SFVM_GETANIMATION 68
883 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
884 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
885 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
886 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
887 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
888 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
889 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
890 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
892 #include <pshpack8.h>
894 typedef struct _SFV_CREATE
898 IShellView
*psvOuter
;
899 IShellFolderViewCB
*psfvcb
;
904 HRESULT WINAPI
SHCreateShellFolderView(const SFV_CREATE
*pscfv
, IShellView
**ppsv
);
906 /* Types and definitions for the SFM_* parameters */
907 #include <pshpack8.h>
909 #define QCMINFO_PLACE_BEFORE 0
910 #define QCMINFO_PLACE_AFTER 1
911 typedef struct _QCMINFO_IDMAP_PLACEMENT
915 } QCMINFO_IDMAP_PLACEMENT
;
917 typedef struct _QCMINFO_IDMAP
920 QCMINFO_IDMAP_PLACEMENT pIdList
[1];
923 typedef struct _QCMINFO
929 QCMINFO_IDMAP
const* pIdMap
;
930 } QCMINFO
, *LPQCMINFO
;
932 #define TBIF_DEFAULT 0x00000000
933 #define TBIF_APPEND 0x00000000
934 #define TBIF_PREPEND 0x00000001
935 #define TBIF_REPLACE 0x00000002
936 #define TBIF_INTERNETBAR 0x00010000
937 #define TBIF_STANDARDTOOLBAR 0x00020000
938 #define TBIF_NOTOOLBAR 0x00030000
940 typedef struct _TBINFO
948 /****************************************************************************
949 * SHShellFolderView_Message API
952 LRESULT WINAPI
SHShellFolderView_Message(
957 /* SHShellFolderView_Message messages */
958 #define SFVM_REARRANGE 0x0001
959 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
960 #define SFVM_ADDOBJECT 0x0003
961 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
962 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
963 #define SFVM_REMOVEOBJECT 0x0006
964 #define SFVM_UPDATEOBJECT 0x0007
965 #define SFVM_SETREDRAW 0x0008 /* undocumented */
966 #define SFVM_GETSELECTEDOBJECTS 0x0009
967 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
968 #define SFVM_MOVEICONS 0x000B /* undocumented */
969 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
970 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
971 #define SFVM_SETITEMPOS 0x000E
972 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
973 #define SFVM_SETCLIPBOARD 0x0010
974 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
975 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
976 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
977 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
978 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
979 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
980 #define SFVM_SETPOINTS 0x0017
982 /****************************************************************************
983 * SHGetDataFromIDList API
985 #define SHGDFIL_FINDDATA 1
986 #define SHGDFIL_NETRESOURCE 2
987 #define SHGDFIL_DESCRIPTIONID 3
989 #define SHDID_ROOT_REGITEM 1
990 #define SHDID_FS_FILE 2
991 #define SHDID_FS_DIRECTORY 3
992 #define SHDID_FS_OTHER 4
993 #define SHDID_COMPUTER_DRIVE35 5
994 #define SHDID_COMPUTER_DRIVE525 6
995 #define SHDID_COMPUTER_REMOVABLE 7
996 #define SHDID_COMPUTER_FIXED 8
997 #define SHDID_COMPUTER_NETDRIVE 9
998 #define SHDID_COMPUTER_CDROM 10
999 #define SHDID_COMPUTER_RAMDISK 11
1000 #define SHDID_COMPUTER_OTHER 12
1001 #define SHDID_NET_DOMAIN 13
1002 #define SHDID_NET_SERVER 14
1003 #define SHDID_NET_SHARE 15
1004 #define SHDID_NET_RESTOFNET 16
1005 #define SHDID_NET_OTHER 17
1006 #define SHDID_COMPUTER_IMAGING 18
1007 #define SHDID_COMPUTER_AUDIO 19
1008 #define SHDID_COMPUTER_SHAREDDOCS 20
1010 #include <pshpack8.h>
1012 typedef struct _SHDESCRIPTIONID
1013 { DWORD dwDescriptionId
;
1015 } SHDESCRIPTIONID
, *LPSHDESCRIPTIONID
;
1017 #include <poppack.h>
1019 HRESULT WINAPI
SHGetDataFromIDListA(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
1020 HRESULT WINAPI
SHGetDataFromIDListW(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
1021 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
1023 BOOL WINAPI
SHGetSpecialFolderPathA (HWND hwndOwner
, LPSTR szPath
, int nFolder
, BOOL bCreate
);
1024 BOOL WINAPI
SHGetSpecialFolderPathW (HWND hwndOwner
, LPWSTR szPath
, int nFolder
, BOOL bCreate
);
1025 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
1027 HRESULT WINAPI
SHGetMalloc(LPMALLOC
*lpmal
) ;
1029 /**********************************************************************
1030 * SHGetSetSettings ()
1035 BOOL fShowAllObjects
: 1;
1036 BOOL fShowExtensions
: 1;
1037 BOOL fNoConfirmRecycle
: 1;
1039 BOOL fShowSysFiles
: 1;
1040 BOOL fShowCompColor
: 1;
1041 BOOL fDoubleClickInWebView
: 1;
1042 BOOL fDesktopHTML
: 1;
1043 BOOL fWin95Classic
: 1;
1044 BOOL fDontPrettyPath
: 1;
1045 BOOL fShowAttribCol
: 1;
1046 BOOL fMapNetDrvBtn
: 1;
1047 BOOL fShowInfoTip
: 1;
1048 BOOL fHideIcons
: 1;
1051 BOOL fShowSuperHidden
: 1;
1052 BOOL fNoNetCrawling
: 1;
1054 UINT
:15; /* Required for proper binary layout with gcc */
1055 DWORD dwWin95Unused
;
1061 BOOL fSepProcess
: 1;
1062 BOOL fStartPanelOn
: 1;
1063 BOOL fShowStartPage
: 1;
1064 UINT fSpareFlags
: 13;
1065 UINT
:15; /* Required for proper binary layout with gcc */
1066 } SHELLSTATE
, *LPSHELLSTATE
;
1068 /**********************************************************************
1072 { BOOL fShowAllObjects
: 1;
1073 BOOL fShowExtensions
: 1;
1074 BOOL fNoConfirmRecycle
: 1;
1075 BOOL fShowSysFiles
: 1;
1077 BOOL fShowCompColor
: 1;
1078 BOOL fDoubleClickInWebView
: 1;
1079 BOOL fDesktopHTML
: 1;
1080 BOOL fWin95Classic
: 1;
1082 BOOL fDontPrettyPath
: 1;
1083 BOOL fShowAttribCol
: 1;
1084 BOOL fMapNetDrvBtn
: 1;
1085 BOOL fShowInfoTip
: 1;
1087 BOOL fHideIcons
: 1;
1088 UINT fRestFlags
: 3;
1089 UINT
:15; /* Required for proper binary layout with gcc */
1090 } SHELLFLAGSTATE
, * LPSHELLFLAGSTATE
;
1092 VOID WINAPI
SHGetSettings(LPSHELLFLAGSTATE lpsfs
, DWORD dwMask
);
1094 #define SSF_SHOWALLOBJECTS 0x0001
1095 #define SSF_SHOWEXTENSIONS 0x0002
1096 #define SSF_SHOWCOMPCOLOR 0x0008
1097 #define SSF_SHOWSYSFILES 0x0020
1098 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
1099 #define SSF_SHOWATTRIBCOL 0x0100
1100 #define SSF_DESKTOPHTML 0x0200
1101 #define SSF_WIN95CLASSIC 0x0400
1102 #define SSF_DONTPRETTYPATH 0x0800
1103 #define SSF_SHOWINFOTIP 0x2000
1104 #define SSF_MAPNETDRVBUTTON 0x1000
1105 #define SSF_NOCONFIRMRECYCLE 0x8000
1106 #define SSF_HIDEICONS 0x4000
1108 /****************************************************************************
1111 typedef enum RESTRICTIONS
1113 REST_NONE
= 0x00000000,
1114 REST_NORUN
= 0x00000001,
1115 REST_NOCLOSE
= 0x00000002,
1116 REST_NOSAVESET
= 0x00000004,
1117 REST_NOFILEMENU
= 0x00000008,
1118 REST_NOSETFOLDERS
= 0x00000010,
1119 REST_NOSETTASKBAR
= 0x00000020,
1120 REST_NODESKTOP
= 0x00000040,
1121 REST_NOFIND
= 0x00000080,
1122 REST_NODRIVES
= 0x00000100,
1123 REST_NODRIVEAUTORUN
= 0x00000200,
1124 REST_NODRIVETYPEAUTORUN
= 0x00000400,
1125 REST_NONETHOOD
= 0x00000800,
1126 REST_STARTBANNER
= 0x00001000,
1127 REST_RESTRICTRUN
= 0x00002000,
1128 REST_NOPRINTERTABS
= 0x00004000,
1129 REST_NOPRINTERDELETE
= 0x00008000,
1130 REST_NOPRINTERADD
= 0x00010000,
1131 REST_NOSTARTMENUSUBFOLDERS
= 0x00020000,
1132 REST_MYDOCSONNET
= 0x00040000,
1133 REST_NOEXITTODOS
= 0x00080000,
1134 REST_ENFORCESHELLEXTSECURITY
= 0x00100000,
1135 REST_LINKRESOLVEIGNORELINKINFO
= 0x00200000,
1136 REST_NOCOMMONGROUPS
= 0x00400000,
1137 REST_SEPARATEDESKTOPPROCESS
= 0x00800000,
1138 REST_NOWEB
= 0x01000000,
1139 REST_NOTRAYCONTEXTMENU
= 0x02000000,
1140 REST_NOVIEWCONTEXTMENU
= 0x04000000,
1141 REST_NONETCONNECTDISCONNECT
= 0x08000000,
1142 REST_STARTMENULOGOFF
= 0x10000000,
1143 REST_NOSETTINGSASSIST
= 0x20000000,
1144 REST_NOINTERNETICON
= 0x40000001,
1145 REST_NORECENTDOCSHISTORY
,
1146 REST_NORECENTDOCSMENU
,
1147 REST_NOACTIVEDESKTOP
,
1148 REST_NOACTIVEDESKTOPCHANGES
,
1149 REST_NOFAVORITESMENU
,
1150 REST_CLEARRECENTDOCSONEXIT
,
1152 REST_NOCUSTOMIZEWEBVIEW
,
1154 REST_NOHTMLWALLPAPER
= 0x40000010,
1155 REST_NOCHANGINGWALLPAPER
,
1159 REST_NOCLOSEDESKCOMP
,
1160 REST_NOCLOSE_DRAGDROPBAND
,
1162 REST_NOEDITDESKCOMP
,
1163 REST_NORESOLVESEARCH
,
1164 REST_NORESOLVETRACK
,
1165 REST_FORCECOPYACLWITHFILE
,
1166 REST_NOLOGO3CHANNELNOTIFY
,
1167 REST_NOFORGETSOFTWAREUPDATE
,
1168 REST_NOSETACTIVEDESKTOP
,
1169 REST_NOUPDATEWINDOWS
,
1170 REST_NOCHANGESTARMENU
, /* 0x40000020 */
1171 REST_NOFOLDEROPTIONS
,
1172 REST_HASFINDCOMPUTERS
,
1174 REST_RUNDLGMEMCHECKBOX
,
1175 REST_ARP_ShowPostSetup
,
1177 REST_NOCONTROLPANEL
,
1180 REST_ARP_NOREMOVEPAGE
,
1182 REST_ARP_NOWINSETUPPAGE
,
1184 REST_NOCHANGEMAPPEDDRIVELABEL
,
1185 REST_NOCHANGEMAPPEDDRIVECOMMENT
,
1186 REST_MaxRecentDocs
, /* 0x40000030 */
1187 REST_NONETWORKCONNECTIONS
,
1188 REST_FORCESTARTMENULOGOFF
,
1190 REST_NOCUSTOMIZETHISFOLDER
,
1193 REST_ALLOWFRENCHENCRYPTION
, /* not documented */
1195 REST_DONTSHOWSUPERHIDDEN
,
1196 REST_NOSHELLSEARCHBUTTON
,
1198 REST_NORUNASINSTALLPROMPT
,
1199 REST_PROMPTRUNASINSTALLNETPATH
,
1200 REST_NOMANAGEMYCOMPUTERVERB
,
1201 REST_NORECENTDOCSNETHOOD
,
1203 REST_NOWELCOMESCREEN
,
1204 REST_RESTRICTCPL
, /* 0x40000040 */
1206 REST_NOSMBALLOONTIP
,
1209 REST_NOENCRYPTONMOVE
,
1210 REST_NOLOCALMACHINERUN
,
1211 REST_NOCURRENTUSERRUN
,
1212 REST_NOLOCALMACHINERUNONCE
,
1213 REST_NOCURRENTUSERRUNONCE
,
1214 REST_FORCEACTIVEDESKTOPON
,
1215 REST_NOCOMPUTERSNEARME
,
1218 REST_NOSHAREDDOCUMENTS
,
1220 REST_NOSMMYPICS
, /* 0x40000050 */
1221 REST_ALLOWBITBUCKDRIVES
,
1222 REST_NONLEGACYSHELLMODE
,
1223 REST_NOCONTROLPANELBARRICADE
,
1225 REST_NOAUTOTRAYNOTIFY
,
1226 REST_NOTASKGROUPING
,
1231 REST_NODISPLAYAPPEARANCEPAGE
,
1233 REST_NOVISUALSTYLECHOICE
,
1236 REST_SETVISUALSTYLE
, /* 0x40000060 */
1237 REST_STARTRUNNOHOMEPATH
,
1238 REST_NOUSERNAMEINSTARTPANEL
,
1239 REST_NOMYCOMPUTERICON
,
1240 REST_NOSMNETWORKPLACES
,
1241 REST_NOSMPINNEDLIST
,
1244 REST_NOSMMOREPROGRAMS
,
1245 REST_NOSMMFUPROGRAMS
,
1246 REST_NOTRAYITEMSDISPLAY
,
1247 REST_NOTOOLBARSONTASKBAR
,
1251 REST_NOSMCONFIGUREPROGRAMS
= 0x4000006F,
1252 REST_HIDECLOCK
, /* 0x40000070 */
1253 REST_NOLOWDISKSPACECHECKS
,
1254 REST_NOENTIRENETWORK
,
1255 REST_NODESKTOPCLEANUP
,
1256 REST_BITBUCKNUKEONDELETE
,
1257 REST_BITBUCKCONFIRMDELETE
,
1259 REST_NODISPBACKGROUND
,
1260 REST_NODISPSCREENSAVEPG
,
1261 REST_NODISPSETTINGSPG
,
1262 REST_NODISPSCREENSAVEPREVIEW
,
1265 REST_NOTHUMBNAILCACHE
,
1266 REST_NOSTRCMPLOGICAL
,
1267 REST_NOPUBLISHWIZARD
,
1268 REST_NOONLINEPRINTSWIZARD
, /* 0x40000080 */
1270 REST_ALLOWUNHASHEDWEBVIEW
,
1271 REST_ALLOWLEGACYWEBVIEW
,
1272 REST_REVERTWEBVIEWSECURITY
,
1274 REST_INHERITCONSOLEHANDLES
= 0x40000086,
1276 REST_NODISCONNECT
= 0x41000001,
1278 REST_NOFILEASSOCIATE
, /* 0x41000003 */
1281 DWORD WINAPI
SHRestricted(RESTRICTIONS rest
);
1283 /****************************************************************************
1284 * SHChangeNotify API
1286 typedef struct _SHChangeNotifyEntry
1290 } SHChangeNotifyEntry
;
1292 #define SHCNE_RENAMEITEM 0x00000001
1293 #define SHCNE_CREATE 0x00000002
1294 #define SHCNE_DELETE 0x00000004
1295 #define SHCNE_MKDIR 0x00000008
1296 #define SHCNE_RMDIR 0x00000010
1297 #define SHCNE_MEDIAINSERTED 0x00000020
1298 #define SHCNE_MEDIAREMOVED 0x00000040
1299 #define SHCNE_DRIVEREMOVED 0x00000080
1300 #define SHCNE_DRIVEADD 0x00000100
1301 #define SHCNE_NETSHARE 0x00000200
1302 #define SHCNE_NETUNSHARE 0x00000400
1303 #define SHCNE_ATTRIBUTES 0x00000800
1304 #define SHCNE_UPDATEDIR 0x00001000
1305 #define SHCNE_UPDATEITEM 0x00002000
1306 #define SHCNE_SERVERDISCONNECT 0x00004000
1307 #define SHCNE_UPDATEIMAGE 0x00008000
1308 #define SHCNE_DRIVEADDGUI 0x00010000
1309 #define SHCNE_RENAMEFOLDER 0x00020000
1310 #define SHCNE_FREESPACE 0x00040000
1312 #define SHCNE_EXTENDED_EVENT 0x04000000
1313 #define SHCNE_ASSOCCHANGED 0x08000000
1314 #define SHCNE_DISKEVENTS 0x0002381F
1315 #define SHCNE_GLOBALEVENTS 0x0C0581E0
1316 #define SHCNE_ALLEVENTS 0x7FFFFFFF
1317 #define SHCNE_INTERRUPT 0x80000000
1319 #define SHCNEE_ORDERCHANGED __MSABI_LONG(0x0002)
1320 #define SHCNEE_MSI_CHANGE __MSABI_LONG(0x0004)
1321 #define SHCNEE_MSI_UNINSTALL __MSABI_LONG(0x0005)
1323 #define SHCNF_IDLIST 0x0000
1324 #define SHCNF_PATHA 0x0001
1325 #define SHCNF_PRINTERA 0x0002
1326 #define SHCNF_DWORD 0x0003
1327 #define SHCNF_PATHW 0x0005
1328 #define SHCNF_PRINTERW 0x0006
1329 #define SHCNF_TYPE 0x00FF
1330 #define SHCNF_FLUSH 0x1000
1331 #define SHCNF_FLUSHNOWAIT 0x3000
1332 #define SHCNF_NOTIFYRECURSIVE 0x10000
1334 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1335 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1337 #define SHCNRF_InterruptLevel 0x0001
1338 #define SHCNRF_ShellLevel 0x0002
1339 #define SHCNRF_RecursiveInterrupt 0x1000
1340 #define SHCNRF_NewDelivery 0x8000
1342 void WINAPI
SHChangeNotify(LONG wEventId
, UINT uFlags
, LPCVOID dwItem1
, LPCVOID dwItem2
);
1345 SLDF_HAS_ID_LIST
= 0x00000001,
1346 SLDF_HAS_LINK_INFO
= 0x00000002,
1347 SLDF_HAS_NAME
= 0x00000004,
1348 SLDF_HAS_RELPATH
= 0x00000008,
1349 SLDF_HAS_WORKINGDIR
= 0x00000010,
1350 SLDF_HAS_ARGS
= 0x00000020,
1351 SLDF_HAS_ICONLOCATION
= 0x00000040,
1352 SLDF_UNICODE
= 0x00000080,
1353 SLDF_FORCE_NO_LINKINFO
= 0x00000100,
1354 SLDF_HAS_EXP_SZ
= 0x00000200,
1355 SLDF_RUN_IN_SEPARATE
= 0x00000400,
1356 SLDF_HAS_LOGO3ID
= 0x00000800,
1357 SLDF_HAS_DARWINID
= 0x00001000,
1358 SLDF_RUNAS_USER
= 0x00002000,
1359 SLDF_HAS_EXP_ICON_SZ
= 0x00004000,
1360 SLDF_NO_PIDL_ALIAS
= 0x00008000,
1361 SLDF_FORCE_UNCNAME
= 0x00010000,
1362 SLDF_RUN_WITH_SHIMLAYER
= 0x00020000,
1363 SLDF_FORCE_NO_LINKTRACK
= 0x00040000,
1364 SLDF_ENABLE_TARGET_METADATA
= 0x00080000,
1365 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING
= 0x00200000,
1366 SLDF_VALID
= 0x003ff7ff,
1367 SLDF_RESERVED
= 0x80000000,
1368 } SHELL_LINK_DATA_FLAGS
;
1370 typedef struct tagDATABLOCKHEADER
1374 } DATABLOCK_HEADER
, *LPDATABLOCK_HEADER
, *LPDBLIST
;
1377 DATABLOCK_HEADER dbh
;
1378 CHAR szDarwinID
[MAX_PATH
];
1379 WCHAR szwDarwinID
[MAX_PATH
];
1380 } EXP_DARWIN_LINK
, *LPEXP_DARWIN_LINK
;
1385 CHAR szTarget
[MAX_PATH
];
1386 WCHAR szwTarget
[MAX_PATH
];
1387 } EXP_SZ_LINK
, *LPEXP_SZ_LINK
;
1392 DWORD idSpecialFolder
;
1394 } EXP_SPECIAL_FOLDER
, *LPEXP_SPECIAL_FOLDER
;
1399 BYTE abPropertyStorage
[1];
1400 } EXP_PROPERTYSTORAGE
;
1402 #define EXP_SZ_LINK_SIG 0xa0000001
1403 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1404 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1405 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1406 #define EXP_DARWIN_ID_SIG 0xa0000006
1407 #define EXP_SZ_ICON_SIG 0xa0000007
1408 #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
1409 #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
1411 typedef struct _SHChangeDWORDAsIDList
{
1416 } SHChangeDWORDAsIDList
, *LPSHChangeDWORDAsIDList
;
1418 typedef struct _SHChangeProductKeyAsIDList
{
1420 WCHAR wszProductKey
[39];
1422 } SHChangeProductKeyAsIDList
, *LPSHChangeProductKeyAsIDList
;
1424 ULONG WINAPI
SHChangeNotifyRegister(HWND hwnd
, int fSources
, LONG fEvents
, UINT wMsg
,
1425 int cEntries
, SHChangeNotifyEntry
*pshcne
);
1426 BOOL WINAPI
SHChangeNotifyDeregister(ULONG ulID
);
1427 HANDLE WINAPI
SHChangeNotification_Lock(HANDLE hChangeNotification
, DWORD dwProcessId
,
1428 LPITEMIDLIST
**pppidl
, LONG
*plEvent
);
1429 BOOL WINAPI
SHChangeNotification_Unlock(HANDLE hLock
);
1431 HRESULT WINAPI
SHGetRealIDL(IShellFolder
*psf
, LPCITEMIDLIST pidlSimple
, LPITEMIDLIST
* ppidlReal
);
1433 /****************************************************************************
1434 * SHCreateDirectory API
1436 DWORD WINAPI
SHCreateDirectory(HWND
, LPCVOID
);
1437 int WINAPI
SHCreateDirectoryExA(HWND
, LPCSTR
, LPSECURITY_ATTRIBUTES
);
1438 int WINAPI
SHCreateDirectoryExW(HWND
, LPCWSTR
, LPSECURITY_ATTRIBUTES
);
1439 #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
1441 /****************************************************************************
1442 * SHGetSetFolderCustomSettings API
1448 LPWSTR pszWebViewTemplate
;
1449 DWORD cchWebViewTemplate
;
1450 LPWSTR pszWebViewTemplateVersion
;
1460 } SHFOLDERCUSTOMSETTINGS
, *LPSHFOLDERCUSTOMSETTINGS
;
1462 HRESULT WINAPI
SHGetSetFolderCustomSettings(LPSHFOLDERCUSTOMSETTINGS pfcs
, LPCSTR pszPath
, DWORD dwReadWrite
);
1464 /****************************************************************************
1465 * SHGetSpecialFolderLocation API
1467 HRESULT WINAPI
SHGetSpecialFolderLocation(HWND hwndOwner
, int nFolder
, LPITEMIDLIST
* ppidl
);
1468 HRESULT WINAPI
SHGetFolderLocation(HWND hwndOwner
, int nFolder
, HANDLE hToken
, DWORD dwReserved
, LPITEMIDLIST
*ppidl
);
1470 /****************************************************************************
1471 * SHGetFolderPath API
1474 SHGFP_TYPE_CURRENT
= 0,
1475 SHGFP_TYPE_DEFAULT
= 1
1478 HRESULT WINAPI
SHGetFolderPathA(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPSTR pszPath
);
1479 HRESULT WINAPI
SHGetFolderPathW(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPWSTR pszPath
);
1480 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1482 #define CSIDL_DESKTOP 0x0000
1483 #define CSIDL_INTERNET 0x0001
1484 #define CSIDL_PROGRAMS 0x0002
1485 #define CSIDL_CONTROLS 0x0003
1486 #define CSIDL_PRINTERS 0x0004
1487 #define CSIDL_PERSONAL 0x0005
1488 #define CSIDL_FAVORITES 0x0006
1489 #define CSIDL_STARTUP 0x0007
1490 #define CSIDL_RECENT 0x0008
1491 #define CSIDL_SENDTO 0x0009
1492 #define CSIDL_BITBUCKET 0x000a
1493 #define CSIDL_STARTMENU 0x000b
1494 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1495 #define CSIDL_MYMUSIC 0x000d
1496 #define CSIDL_MYVIDEO 0x000e
1497 #define CSIDL_DESKTOPDIRECTORY 0x0010
1498 #define CSIDL_DRIVES 0x0011
1499 #define CSIDL_NETWORK 0x0012
1500 #define CSIDL_NETHOOD 0x0013
1501 #define CSIDL_FONTS 0x0014
1502 #define CSIDL_TEMPLATES 0x0015
1503 #define CSIDL_COMMON_STARTMENU 0x0016
1504 #define CSIDL_COMMON_PROGRAMS 0X0017
1505 #define CSIDL_COMMON_STARTUP 0x0018
1506 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1507 #define CSIDL_APPDATA 0x001a
1508 #define CSIDL_PRINTHOOD 0x001b
1509 #define CSIDL_LOCAL_APPDATA 0x001c
1510 #define CSIDL_ALTSTARTUP 0x001d
1511 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1512 #define CSIDL_COMMON_FAVORITES 0x001f
1513 #define CSIDL_INTERNET_CACHE 0x0020
1514 #define CSIDL_COOKIES 0x0021
1515 #define CSIDL_HISTORY 0x0022
1516 #define CSIDL_COMMON_APPDATA 0x0023
1517 #define CSIDL_WINDOWS 0x0024
1518 #define CSIDL_SYSTEM 0x0025
1519 #define CSIDL_PROGRAM_FILES 0x0026
1520 #define CSIDL_MYPICTURES 0x0027
1521 #define CSIDL_PROFILE 0x0028
1522 #define CSIDL_SYSTEMX86 0x0029
1523 #define CSIDL_PROGRAM_FILESX86 0x002a
1524 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1525 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1526 #define CSIDL_COMMON_TEMPLATES 0x002d
1527 #define CSIDL_COMMON_DOCUMENTS 0x002e
1528 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1529 #define CSIDL_ADMINTOOLS 0x0030
1530 #define CSIDL_CONNECTIONS 0x0031
1531 #define CSIDL_COMMON_MUSIC 0x0035
1532 #define CSIDL_COMMON_PICTURES 0x0036
1533 #define CSIDL_COMMON_VIDEO 0x0037
1534 #define CSIDL_RESOURCES 0x0038
1535 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1536 #define CSIDL_COMMON_OEM_LINKS 0x003a
1537 #define CSIDL_CDBURN_AREA 0x003b
1538 #define CSIDL_COMPUTERSNEARME 0x003d
1539 #define CSIDL_PROFILES 0x003e
1540 #define CSIDL_FOLDER_MASK 0x00ff
1541 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1542 #define CSIDL_FLAG_NO_ALIAS 0x1000
1543 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1544 #define CSIDL_FLAG_CREATE 0x8000
1546 #define CSIDL_FLAG_MASK 0xff00
1548 /****************************************************************************
1549 * SHGetDesktopFolder API
1551 HRESULT WINAPI
SHGetDesktopFolder(IShellFolder
* *);
1553 /****************************************************************************
1554 * SHBindToParent API
1556 HRESULT WINAPI
SHBindToParent(LPCITEMIDLIST pidl
, REFIID riid
, LPVOID
*ppv
, LPCITEMIDLIST
*ppidlLast
);
1558 /****************************************************************************
1559 * SHDefExtractIcon API
1561 HRESULT WINAPI
SHDefExtractIconA(LPCSTR pszIconFile
, int iIndex
, UINT uFlags
,
1562 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
1563 HRESULT WINAPI
SHDefExtractIconW(LPCWSTR pszIconFile
, int iIndex
, UINT uFlags
,
1564 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
1565 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1568 * DROPFILES for CF_HDROP and CF_PRINTERS
1570 typedef struct _DROPFILES
1576 } DROPFILES
, *LPDROPFILES
;
1579 * Properties of a file in the clipboard
1581 typedef struct _FILEDESCRIPTORA
{
1586 DWORD dwFileAttributes
;
1587 FILETIME ftCreationTime
;
1588 FILETIME ftLastAccessTime
;
1589 FILETIME ftLastWriteTime
;
1590 DWORD nFileSizeHigh
;
1592 CHAR cFileName
[MAX_PATH
];
1593 } FILEDESCRIPTORA
, *LPFILEDESCRIPTORA
;
1595 typedef struct _FILEDESCRIPTORW
{
1600 DWORD dwFileAttributes
;
1601 FILETIME ftCreationTime
;
1602 FILETIME ftLastAccessTime
;
1603 FILETIME ftLastWriteTime
;
1604 DWORD nFileSizeHigh
;
1606 WCHAR cFileName
[MAX_PATH
];
1607 } FILEDESCRIPTORW
, *LPFILEDESCRIPTORW
;
1609 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR
)
1610 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR
)
1613 * CF_FILEGROUPDESCRIPTOR clipboard format
1615 typedef struct _FILEGROUPDESCRIPTORA
{
1617 FILEDESCRIPTORA fgd
[1];
1618 } FILEGROUPDESCRIPTORA
, *LPFILEGROUPDESCRIPTORA
;
1620 typedef struct _FILEGROUPDESCRIPTORW
{
1622 FILEDESCRIPTORW fgd
[1];
1623 } FILEGROUPDESCRIPTORW
, *LPFILEGROUPDESCRIPTORW
;
1625 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR
)
1626 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR
)
1628 /****************************************************************************
1635 BOOL fFullPathTitle
:1;
1636 BOOL fSaveLocalView
:1;
1638 BOOL fSimpleDefault
:1;
1639 BOOL fDontShowDescBar
:1;
1640 BOOL fNewWindowMode
:1;
1641 BOOL fShowCompColor
:1;
1642 BOOL fDontPrettyNames
:1;
1643 BOOL fAdminsCreateCommonGroups
:1;
1644 UINT fUnusedFlags
:7;
1645 UINT
:15; /* Required for proper binary layout with gcc */
1646 UINT fMenuEnumFilter
;
1647 } CABINETSTATE
, *LPCABINETSTATE
;
1649 #define CABINETSTATE_VERSION 2
1651 BOOL WINAPI
ReadCabinetState(CABINETSTATE
*, int);
1652 BOOL WINAPI
WriteCabinetState(CABINETSTATE
*);
1654 /****************************************************************************
1655 * Path Manipulation Routines
1658 /* PathProcessCommand flags */
1659 #define PPCF_ADDQUOTES 0x01
1660 #define PPCF_INCLUDEARGS 0x02
1661 #define PPCF_ADDARGUMENTS 0x03
1662 #define PPCF_NODIRECTORIES 0x10
1663 #define PPCF_DONTRESOLVE 0x20
1664 #define PPCF_FORCEQUALIFY 0x40
1665 #define PPCF_LONGESTPOSSIBLE 0x80
1667 /* PathResolve flags */
1668 #define PRF_VERIFYEXISTS 0x01
1669 #define PRF_EXECUTABLE 0x02
1670 #define PRF_TRYPROGRAMEXTENSIONS 0x03
1671 #define PRF_FIRSTDIRDEF 0x04
1672 #define PRF_DONTFINDLINK 0x08
1673 #define PRF_REQUIREABSOLUTE 0x10
1675 VOID WINAPI
PathGetShortPath(LPWSTR pszPath
);
1676 LONG WINAPI
PathProcessCommand(LPCWSTR
, LPWSTR
, int, DWORD
);
1677 int WINAPI
PathResolve(LPWSTR
, PZPCWSTR
, UINT
);
1678 BOOL WINAPI
PathYetAnotherMakeUniqueName(LPWSTR
, LPCWSTR
, LPCWSTR
, LPCWSTR
);
1679 BOOL WINAPI
Win32DeleteFile(LPCWSTR
);
1681 /****************************************************************************
1682 * Drag And Drop Routines
1685 /* DAD_AutoScroll sample structure */
1686 #define NUM_POINTS 3
1692 POINT pts
[NUM_POINTS
];
1693 DWORD dwTimes
[NUM_POINTS
];
1696 BOOL WINAPI
DAD_SetDragImage(HIMAGELIST
,LPPOINT
);
1697 BOOL WINAPI
DAD_DragEnterEx(HWND
,POINT
);
1698 BOOL WINAPI
DAD_DragEnterEx2(HWND
,POINT
,IDataObject
*);
1699 BOOL WINAPI
DAD_DragMove(POINT
);
1700 BOOL WINAPI
DAD_DragLeave(void);
1701 BOOL WINAPI
DAD_AutoScroll(HWND
,AUTO_SCROLL_DATA
*,LPPOINT
);
1702 HRESULT WINAPI
SHDoDragDrop(HWND
,IDataObject
*,IDropSource
*,DWORD
,LPDWORD
);
1704 /****************************************************************************
1705 * Internet shortcut properties
1708 #define PID_IS_URL 2
1709 #define PID_IS_NAME 4
1710 #define PID_IS_WORKINGDIR 5
1711 #define PID_IS_HOTKEY 6
1712 #define PID_IS_SHOWCMD 7
1713 #define PID_IS_ICONINDEX 8
1714 #define PID_IS_ICONFILE 9
1715 #define PID_IS_WHATSNEW 10
1716 #define PID_IS_AUTHOR 11
1717 #define PID_IS_DESCRIPTION 12
1718 #define PID_IS_COMMENT 13
1721 LPITEMIDLIST WINAPI
ILAppendID(LPITEMIDLIST
,LPCSHITEMID
,BOOL
);
1722 LPITEMIDLIST WINAPI
ILClone(LPCITEMIDLIST
);
1723 LPITEMIDLIST WINAPI
ILCloneFirst(LPCITEMIDLIST
);
1724 LPITEMIDLIST WINAPI
ILCreateFromPathA(LPCSTR
);
1725 LPITEMIDLIST WINAPI
ILCreateFromPathW(LPCWSTR
);
1726 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1727 LPITEMIDLIST WINAPI
ILCombine(LPCITEMIDLIST
,LPCITEMIDLIST
);
1728 LPITEMIDLIST WINAPI
ILFindChild(LPCITEMIDLIST
,LPCITEMIDLIST
);
1729 LPITEMIDLIST WINAPI
ILFindLastID(LPCITEMIDLIST
);
1730 void WINAPI
ILFree(LPITEMIDLIST
);
1731 LPITEMIDLIST WINAPI
ILGetNext(LPCITEMIDLIST
);
1732 UINT WINAPI
ILGetSize(LPCITEMIDLIST
);
1733 BOOL WINAPI
ILIsEqual(LPCITEMIDLIST
,LPCITEMIDLIST
);
1734 BOOL WINAPI
ILIsParent(LPCITEMIDLIST
,LPCITEMIDLIST
,BOOL
);
1735 HRESULT WINAPI
ILLoadFromStream(LPSTREAM
,LPITEMIDLIST
*);
1736 BOOL WINAPI
ILRemoveLastID(LPITEMIDLIST
);
1737 HRESULT WINAPI
ILSaveToStream(LPSTREAM
,LPCITEMIDLIST
);
1739 static inline BOOL
ILIsEmpty(LPCITEMIDLIST pidl
)
1741 return !(pidl
&& pidl
->mkid
.cb
);
1744 #include <pshpack8.h>
1748 IContextMenuCB
*pcmcb
;
1749 PCIDLIST_ABSOLUTE pidlFolder
;
1752 PCUITEMID_CHILD_ARRAY apidl
;
1753 IUnknown
*punkAssociationInfo
;
1758 #include <poppack.h>
1760 HRESULT WINAPI
SHCreateDefaultContextMenu(const DEFCONTEXTMENU
*pdcm
, REFIID riid
, void **ppv
);
1762 typedef HRESULT (CALLBACK
*LPFNDFMCALLBACK
)(IShellFolder
*,HWND
,IDataObject
*,UINT
,WPARAM
,LPARAM
);
1764 HRESULT WINAPI
CDefFolderMenu_Create2(LPCITEMIDLIST pidlFolder
, HWND hwnd
, UINT cidl
,
1765 LPCITEMIDLIST
*apidl
, IShellFolder
*psf
,
1766 LPFNDFMCALLBACK lpfn
, UINT nKeys
, const HKEY
*ahkeys
,
1767 IContextMenu
**ppcm
);
1769 #include <poppack.h>
1773 #endif /* defined(__cplusplus) */
1775 #endif /* __WINE_SHLOBJ_H */