opengl32: Get rid of X/GLX leftovers.
[wine/wine-kai.git] / include / shlobj.h
blobb32cfcf93c21b71f63c80f03457af28f16ce0e0b
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_SHLOBJ_H
20 #define __WINE_SHLOBJ_H
22 #include <ole2.h>
23 #include <commctrl.h>
24 #include <prsht.h>
25 #include <shlguid.h>
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* defined(__cplusplus) */
31 /* Except for specific structs, this header is byte packed */
32 #include <pshpack1.h>
34 #include <shtypes.h>
35 #include <shobjidl.h>
37 #ifndef HPSXA_DEFINED
38 #define HPSXA_DEFINED
39 DECLARE_HANDLE(HPSXA);
40 #endif
42 UINT WINAPI SHAddFromPropSheetExtArray(HPSXA,LPFNADDPROPSHEETPAGE,LPARAM);
43 LPVOID WINAPI SHAlloc(ULONG);
44 HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*);
45 HPSXA WINAPI SHCreatePropSheetExtArray(HKEY,LPCWSTR,UINT);
46 HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY,LPCWSTR,UINT,IDataObject*);
47 DWORD WINAPI SHCLSIDFromStringA(LPCSTR,CLSID*);
48 DWORD WINAPI SHCLSIDFromStringW(LPCWSTR,CLSID*);
49 #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
50 HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**);
51 void WINAPI SHDestroyPropSheetExtArray(HPSXA);
52 BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
53 DWORD WINAPI SHFormatDrive(HWND,UINT,UINT,UINT);
54 void WINAPI SHFree(LPVOID);
55 BOOL WINAPI GetFileNameFromBrowse(HWND,LPSTR,DWORD,LPCSTR,LPCSTR,LPCSTR,LPCSTR);
56 HRESULT WINAPI SHGetInstanceExplorer(IUnknown**);
57 HRESULT WINAPI SHGetFolderPathAndSubDirA(HWND,int,HANDLE,DWORD,LPCSTR,LPSTR);
58 HRESULT WINAPI SHGetFolderPathAndSubDirW(HWND,int,HANDLE,DWORD,LPCWSTR,LPWSTR);
59 #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir);
60 BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
61 BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
62 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
63 INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST);
64 HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
65 HRESULT WINAPI SHLoadOLE(LPARAM);
66 HRESULT WINAPI SHPathPrepareForWriteA(HWND,IUnknown*,LPCSTR,DWORD);
67 HRESULT WINAPI SHPathPrepareForWriteW(HWND,IUnknown*,LPCWSTR,DWORD);
68 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite);
69 UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM);
70 LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
71 int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
72 HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
73 VOID WINAPI SHUpdateImageA(LPCSTR,INT,UINT,INT);
74 VOID WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
75 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
76 int WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
77 int WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
79 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formattable */
80 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was cancelled */
81 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formattable */
83 /* SHFormatDrive flags */
84 #define SHFMT_ID_DEFAULT 0xFFFF
85 #define SHFMT_OPT_FULL 1
86 #define SHFMT_OPT_SYSONLY 2
88 /* SHPathPrepareForWrite flags */
89 #define SHPPFW_NONE 0x00000000
90 #define SHPPFW_DIRCREATE 0x00000001
91 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
92 #define SHPPFW_ASKDIRCREATE 0x00000002
93 #define SHPPFW_IGNOREFILENAME 0x00000004
94 #define SHPPFW_NOWRITECHECK 0x00000008
95 #define SHPPFW_MEDIACHECKONLY 0x00000010
97 /* SHObjectProperties flags */
98 #define SHOP_PRINTERNAME 0x01
99 #define SHOP_FILEPATH 0x02
100 #define SHOP_VOLUMEGUID 0x04
102 BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
104 #define PCS_FATAL 0x80000000
105 #define PCS_REPLACEDCHAR 0x00000001
106 #define PCS_REMOVEDCHAR 0x00000002
107 #define PCS_TRUNCATED 0x00000004
108 #define PCS_PATHTOOLONG 0x00000008
110 int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
112 /*****************************************************************************
113 * IContextMenu interface
117 /* DATAOBJECT_InitShellIDList*/
118 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
120 typedef struct
121 { UINT cidl;
122 UINT aoffset[1];
123 } CIDA, *LPIDA;
125 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
126 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
128 /* DATAOBJECT_InitFileGroupDesc */
129 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
131 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
133 /* DATAOBJECT_InitFileContents*/
134 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
136 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
137 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
138 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
139 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
140 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
141 #define CFSTR_SHELLURL "UniformResourceLocator"
142 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
143 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
144 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
145 #define CFSTR_INDRAGLOOP "InShellDragLoop"
147 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
148 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
151 /************************************************************************
152 * IShellView interface
155 typedef GUID SHELLVIEWID;
157 #define FCIDM_SHVIEWFIRST 0x0000
158 /* undocumented */
159 #define FCIDM_SHVIEW_ARRANGE 0x7001
160 #define FCIDM_SHVIEW_DELETE 0x7011
161 #define FCIDM_SHVIEW_PROPERTIES 0x7013
162 #define FCIDM_SHVIEW_CUT 0x7018
163 #define FCIDM_SHVIEW_COPY 0x7019
164 #define FCIDM_SHVIEW_INSERT 0x701A
165 #define FCIDM_SHVIEW_UNDO 0x701B
166 #define FCIDM_SHVIEW_INSERTLINK 0x701C
167 #define FCIDM_SHVIEW_SELECTALL 0x7021
168 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
170 #define FCIDM_SHVIEW_BIGICON 0x7029
171 #define FCIDM_SHVIEW_SMALLICON 0x702A
172 #define FCIDM_SHVIEW_LISTVIEW 0x702B
173 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
174 /* 0x7030-0x703f are used by the shellbrowser */
175 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
176 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
178 #define FCIDM_SHVIEW_HELP 0x7041
179 #define FCIDM_SHVIEW_RENAME 0x7050
180 #define FCIDM_SHVIEW_CREATELINK 0x7051
181 #define FCIDM_SHVIEW_NEWLINK 0x7052
182 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
184 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
185 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
186 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
188 #define FCIDM_SHVIEWLAST 0x7fff
189 #define FCIDM_BROWSERFIRST 0xA000
190 /* undocumented toolbar items from stddlg's*/
191 #define FCIDM_TB_UPFOLDER 0xA001
192 #define FCIDM_TB_NEWFOLDER 0xA002
193 #define FCIDM_TB_SMALLICON 0xA003
194 #define FCIDM_TB_REPORTVIEW 0xA004
195 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
197 #define FCIDM_BROWSERLAST 0xbf00
198 #define FCIDM_GLOBALFIRST 0x8000
199 #define FCIDM_GLOBALLAST 0x9fff
202 * Global submenu IDs and separator IDs
204 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
205 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
206 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
207 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
208 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
209 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
210 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
211 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
212 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
213 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
215 /* control IDs known to the view */
216 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
217 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
220 /****************************************************************************
221 * IShellIcon interface
224 #define INTERFACE IShellIcon
225 DECLARE_INTERFACE_(IShellIcon,IUnknown)
227 /*** IUnknown methods ***/
228 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
229 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
230 STDMETHOD_(ULONG,Release)(THIS) PURE;
231 /*** IShellIcon methods ***/
232 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
234 #undef INTERFACE
236 #if !defined(__cplusplus) || defined(CINTERFACE)
237 /*** IUnknown methods ***/
238 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
239 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
240 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
241 /*** IShellIcon methods ***/
242 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
243 #endif
245 typedef IShellIcon *LPSHELLICON;
247 /* IQueryInfo interface */
248 #define INTERFACE IQueryInfo
249 DECLARE_INTERFACE_(IQueryInfo,IUnknown)
251 /*** IUnknown methods ***/
252 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
253 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
254 STDMETHOD_(ULONG,Release)(THIS) PURE;
255 /*** IQueryInfo methods ***/
256 STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, WCHAR** lppTips) PURE;
257 STDMETHOD(GetInfoFlags)(THIS_ DWORD* lpFlags) PURE;
259 #undef INTERFACE
261 #if !defined(__cplusplus) || defined(CINTERFACE)
262 /*** IUnknown methods ***/
263 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
264 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
265 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
266 /*** IQueryInfo methods ***/
267 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
268 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
269 #endif
271 /* IInputObject interface */
272 #define INTERFACE IInputObject
273 DECLARE_INTERFACE_(IInputObject,IUnknown)
275 /*** IUnknown methods ***/
276 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
277 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
278 STDMETHOD_(ULONG,Release)(THIS) PURE;
279 /*** IInputObject methods ***/
280 STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
281 STDMETHOD(HasFocusIO)(THIS) PURE;
282 STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
284 #undef INTERFACE
286 #if !defined(__cplusplus) || defined(CINTERFACE)
287 /*** IUnknown methods ***/
288 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
289 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
290 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
291 /*** IInputObject methods ***/
292 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
293 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
294 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
295 #endif
297 /* IInputObjectSite interface */
298 #define INTERFACE IInputObjectSite
299 DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
301 /*** IUnknown methods ***/
302 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
303 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
304 STDMETHOD_(ULONG,Release) (THIS) PURE;
305 /*** IInputObjectSite methods ***/
306 STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
308 #undef INTERFACE
310 #if !defined(__cplusplus) || defined(CINTERFACE)
311 /*** IUnknown methods ***/
312 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
313 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
314 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
315 /*** IInputObject methods ***/
316 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
317 #endif
319 /* IObjMgr interface */
320 #define INTERFACE IObjMgr
321 DECLARE_INTERFACE_(IObjMgr,IUnknown)
323 /*** IUnknown methods ***/
324 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
325 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
326 STDMETHOD_(ULONG,Release) (THIS) PURE;
327 /*** IObjMgr methods ***/
328 STDMETHOD(Append)(THIS_ LPUNKNOWN punk) PURE;
329 STDMETHOD(Remove)(THIS_ LPUNKNOWN punk) PURE;
331 #undef INTERFACE
333 #if !defined(__cplusplus) || defined(CINTERFACE)
334 /*** IUnknown methods ***/
335 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
336 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
337 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
338 /*** IObjMgr methods ***/
339 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
340 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
341 #endif
343 /* IACList interface */
344 #define INTERFACE IACList
345 DECLARE_INTERFACE_(IACList,IUnknown)
347 /*** IUnknown methods ***/
348 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
349 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
350 STDMETHOD_(ULONG,Release) (THIS) PURE;
351 /*** IACList methods ***/
352 STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
354 #undef INTERFACE
356 #if !defined(__cplusplus) || defined(CINTERFACE)
357 /*** IUnknown methods ***/
358 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
359 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
360 #define IACList_Release(p) (p)->lpVtbl->Release(p)
361 /*** IACList methods ***/
362 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
363 #endif
365 /* IProgressDialog interface */
366 #define PROGDLG_NORMAL 0x00000000
367 #define PROGDLG_MODAL 0x00000001
368 #define PROGDLG_AUTOTIME 0x00000002
369 #define PROGDLG_NOTIME 0x00000004
370 #define PROGDLG_NOMINIMIZE 0x00000008
371 #define PROGDLG_NOPROGRESSBAR 0x00000010
372 #define PROGDLG_MARQUEEPROGRESS 0x00000020
373 #define PROGDLG_NOCANCEL 0x00000040
375 #define PDTIMER_RESET 0x00000001
376 #define PDTIMER_PAUSE 0x00000002
377 #define PDTIMER_RESUME 0x00000003
379 #define INTERFACE IProgressDialog
380 DECLARE_INTERFACE_(IProgressDialog,IUnknown)
382 /*** IUnknown methods ***/
383 STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
384 STDMETHOD_(ULONG,AddRef) (THIS) PURE;
385 STDMETHOD_(ULONG,Release) (THIS) PURE;
386 /*** IProgressDialog methods ***/
387 STDMETHOD(StartProgressDialog)(THIS_ HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved) PURE;
388 STDMETHOD(StopProgressDialog)(THIS) PURE;
389 STDMETHOD(SetTitle)(THIS_ LPCWSTR pwzTitle) PURE;
390 STDMETHOD(SetAnimation)(THIS_ HINSTANCE hInstance, UINT uiResourceId) PURE;
391 STDMETHOD_(BOOL,HasUserCancelled)(THIS) PURE;
392 STDMETHOD(SetProgress)(THIS_ DWORD dwCompleted, DWORD dwTotal) PURE;
393 STDMETHOD(SetProgress64)(THIS_ ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
394 STDMETHOD(SetLine)(THIS_ DWORD dwLineNum, LPCWSTR pwzString, BOOL bPath, LPCVOID reserved) PURE;
395 STDMETHOD(SetCancelMsg)(THIS_ LPCWSTR pwzCancelMsg, LPCVOID reserved) PURE;
396 STDMETHOD(Timer)(THIS_ DWORD dwTimerAction, LPCVOID reserved) PURE;
398 #undef INTERFACE
400 #if !defined(__cplusplus) || defined(CINTERFACE)
401 /*** IUnknown methods ***/
402 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
403 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
404 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
405 /*** IProgressDialog methods ***/
406 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
407 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
408 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
409 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
410 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
411 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
412 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
413 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
414 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
415 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
416 #endif
419 /****************************************************************************
420 * SHAddToRecentDocs API
422 #define SHARD_PIDL 0x00000001L
423 #define SHARD_PATHA 0x00000002L
424 #define SHARD_PATHW 0x00000003L
425 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
427 void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
429 /****************************************************************************
430 * SHBrowseForFolder API
432 typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
434 #include <pshpack8.h>
436 typedef struct tagBROWSEINFOA {
437 HWND hwndOwner;
438 LPCITEMIDLIST pidlRoot;
439 LPSTR pszDisplayName;
440 LPCSTR lpszTitle;
441 UINT ulFlags;
442 BFFCALLBACK lpfn;
443 LPARAM lParam;
444 INT iImage;
445 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
447 typedef struct tagBROWSEINFOW {
448 HWND hwndOwner;
449 LPCITEMIDLIST pidlRoot;
450 LPWSTR pszDisplayName;
451 LPCWSTR lpszTitle;
452 UINT ulFlags;
453 BFFCALLBACK lpfn;
454 LPARAM lParam;
455 INT iImage;
456 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
458 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
459 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
460 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
462 #include <poppack.h>
464 /* Browsing for directory. */
465 #define BIF_RETURNONLYFSDIRS 0x0001
466 #define BIF_DONTGOBELOWDOMAIN 0x0002
467 #define BIF_STATUSTEXT 0x0004
468 #define BIF_RETURNFSANCESTORS 0x0008
469 #define BIF_EDITBOX 0x0010
470 #define BIF_VALIDATE 0x0020
471 #define BIF_NEWDIALOGSTYLE 0x0040
472 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
473 #define BIF_BROWSEINCLUDEURLS 0x0080
474 #define BIF_UAHINT 0x0100
475 #define BIF_NONEWFOLDERBUTTON 0x0200
476 #define BIF_NOTRANSLATETARGETS 0x0400
478 #define BIF_BROWSEFORCOMPUTER 0x1000
479 #define BIF_BROWSEFORPRINTER 0x2000
480 #define BIF_BROWSEINCLUDEFILES 0x4000
482 /* message from browser */
483 #define BFFM_INITIALIZED 1
484 #define BFFM_SELCHANGED 2
485 #define BFFM_VALIDATEFAILEDA 3
486 #define BFFM_VALIDATEFAILEDW 4
487 #define BFFM_IUNKNOWN 5
489 /* messages to browser */
490 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
491 #define BFFM_ENABLEOK (WM_USER+101)
492 #define BFFM_SETSELECTIONA (WM_USER+102)
493 #define BFFM_SETSELECTIONW (WM_USER+103)
494 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
495 #define BFFM_SETOKTEXT (WM_USER+105)
496 #define BFFM_SETEXPANDED (WM_USER+106)
498 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
499 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
500 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
501 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
502 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
503 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
505 /**********************************************************************
506 * SHCreateShellFolderViewEx API
509 typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
510 IShellView* dwUser,
511 IShellFolder* pshf,
512 HWND hWnd,
513 UINT uMsg,
514 WPARAM wParam,
515 LPARAM lParam);
517 typedef struct _CSFV
519 UINT cbSize;
520 IShellFolder* pshf;
521 IShellView* psvOuter;
522 LPCITEMIDLIST pidl;
523 LONG lEvents;
524 LPFNVIEWCALLBACK pfnCallback;
525 FOLDERVIEWMODE fvm;
526 } CSFV, *LPCSFV;
528 HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
530 /* SHCreateShellFolderViewEx callback messages */
531 #define SFVM_MERGEMENU 1
532 #define SFVM_INVOKECOMMAND 2
533 #define SFVM_GETHELPTEXT 3
534 #define SFVM_GETTOOLTIPTEXT 4
535 #define SFVM_GETBUTTONINFO 5
536 #define SFVM_GETBUTTONS 6
537 #define SFVM_INITMENUPOPUP 7
538 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
539 #define SFVM_DRAWMENUITEM 9 /* undocumented */
540 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
541 #define SFVM_EXITMENULOOP 11 /* undocumented */
542 #define SFVM_VIEWRELEASE 12 /* undocumented */
543 #define SFVM_GETNAMELENGTH 13 /* undocumented */
544 #define SFVM_FSNOTIFY 14
545 #define SFVM_WINDOWCREATED 15
546 #define SFVM_WINDOWCLOSING 16 /* undocumented */
547 #define SFVM_LISTREFRESHED 17 /* undocumented */
548 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
549 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
550 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
551 #define SFVM_GETDETAILSOF 23
552 #define SFVM_COLUMNCLICK 24
553 #define SFVM_QUERYFSNOTIFY 25
554 #define SFVM_DEFITEMCOUNT 26
555 #define SFVM_DEFVIEWMODE 27
556 #define SFVM_UNMERGEFROMMENU 28
557 #define SFVM_ADDINGOBJECT 29 /* undocumented */
558 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
559 #define SFVM_UPDATESTATUSBAR 31
560 #define SFVM_BACKGROUNDENUM 32
561 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
562 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
563 #define SFVM_CANSELECTALL 35 /* undocumented */
564 #define SFVM_DIDDRAGDROP 36
565 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
566 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
567 #define SFVM_SETISFV 39
568 #define SFVM_GETEXTVIEWS 40 /* undocumented */
569 #define SFVM_THISIDLIST 41
570 #define SFVM_ADDPROPERTYPAGES 47
571 #define SFVM_BACKGROUNDENUMDONE 48
572 #define SFVM_GETNOTIFY 49
573 #define SFVM_GETSORTDEFAULTS 53
574 #define SFVM_SIZE 57
575 #define SFVM_GETZONE 58
576 #define SFVM_GETPANE 59
577 #define SFVM_GETHELPTOPIC 63
578 #define SFVM_GETANIMATION 68
579 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
580 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
581 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
582 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
583 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
584 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
585 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
586 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
588 /* Types and definitions for the SFM_* parameters */
589 #include <pshpack8.h>
591 #define QCMINFO_PLACE_BEFORE 0
592 #define QCMINFO_PLACE_AFTER 1
593 typedef struct _QCMINFO_IDMAP_PLACEMENT
595 UINT id;
596 UINT fFlags;
597 } QCMINFO_IDMAP_PLACEMENT;
599 typedef struct _QCMINFO_IDMAP
601 UINT nMaxIds;
602 QCMINFO_IDMAP_PLACEMENT pIdList[1];
603 } QCMINFO_IDMAP;
605 typedef struct _QCMINFO
607 HMENU hmenu;
608 UINT indexMenu;
609 UINT idCmdFirst;
610 UINT idCmdLast;
611 QCMINFO_IDMAP const* pIdMap;
612 } QCMINFO, *LPQCMINFO;
614 #define TBIF_DEFAULT 0x00000000
615 #define TBIF_APPEND 0x00000000
616 #define TBIF_PREPEND 0x00000001
617 #define TBIF_REPLACE 0x00000002
618 #define TBIF_INTERNETBAR 0x00010000
619 #define TBIF_STANDARDTOOLBAR 0x00020000
620 #define TBIF_NOTOOLBAR 0x00030000
622 typedef struct _TBINFO
624 UINT cbuttons;
625 UINT uFlags;
626 } TBINFO, *LPTBINFO;
628 #include <poppack.h>
630 /****************************************************************************
631 * SHShellFolderView_Message API
634 LRESULT WINAPI SHShellFolderView_Message(
635 HWND hwndCabinet,
636 UINT uMessage,
637 LPARAM lParam);
639 /* SHShellFolderView_Message messages */
640 #define SFVM_REARRANGE 0x0001
641 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
642 #define SFVM_ADDOBJECT 0x0003
643 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
644 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
645 #define SFVM_REMOVEOBJECT 0x0006
646 #define SFVM_UPDATEOBJECT 0x0007
647 #define SFVM_SETREDRAW 0x0008 /* undocumented */
648 #define SFVM_GETSELECTEDOBJECTS 0x0009
649 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
650 #define SFVM_MOVEICONS 0x000B /* undocumented */
651 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
652 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
653 #define SFVM_SETITEMPOS 0x000E
654 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
655 #define SFVM_SETCLIPBOARD 0x0010
656 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
657 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
658 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
659 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
660 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
661 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
662 #define SFVM_SETPOINTS 0x0017
664 /****************************************************************************
665 * SHGetDataFromIDList API
667 #define SHGDFIL_FINDDATA 1
668 #define SHGDFIL_NETRESOURCE 2
669 #define SHGDFIL_DESCRIPTIONID 3
671 #define SHDID_ROOT_REGITEM 1
672 #define SHDID_FS_FILE 2
673 #define SHDID_FS_DIRECTORY 3
674 #define SHDID_FS_OTHER 4
675 #define SHDID_COMPUTER_DRIVE35 5
676 #define SHDID_COMPUTER_DRIVE525 6
677 #define SHDID_COMPUTER_REMOVABLE 7
678 #define SHDID_COMPUTER_FIXED 8
679 #define SHDID_COMPUTER_NETDRIVE 9
680 #define SHDID_COMPUTER_CDROM 10
681 #define SHDID_COMPUTER_RAMDISK 11
682 #define SHDID_COMPUTER_OTHER 12
683 #define SHDID_NET_DOMAIN 13
684 #define SHDID_NET_SERVER 14
685 #define SHDID_NET_SHARE 15
686 #define SHDID_NET_RESTOFNET 16
687 #define SHDID_NET_OTHER 17
688 #define SHDID_COMPUTER_IMAGING 18
689 #define SHDID_COMPUTER_AUDIO 19
690 #define SHDID_COMPUTER_SHAREDDOCS 20
692 #include <pshpack8.h>
694 typedef struct _SHDESCRIPTIONID
695 { DWORD dwDescriptionId;
696 CLSID clsid;
697 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
699 #include <poppack.h>
701 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
702 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
703 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
705 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
706 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
707 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
709 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
711 /**********************************************************************
712 * SHGetSetSettings ()
715 typedef struct
717 BOOL fShowAllObjects : 1;
718 BOOL fShowExtensions : 1;
719 BOOL fNoConfirmRecycle : 1;
721 BOOL fShowSysFiles : 1;
722 BOOL fShowCompColor : 1;
723 BOOL fDoubleClickInWebView : 1;
724 BOOL fDesktopHTML : 1;
725 BOOL fWin95Classic : 1;
726 BOOL fDontPrettyPath : 1;
727 BOOL fShowAttribCol : 1;
728 BOOL fMapNetDrvBtn : 1;
729 BOOL fShowInfoTip : 1;
730 BOOL fHideIcons : 1;
731 BOOL fWebView : 1;
732 BOOL fFilter : 1;
733 BOOL fShowSuperHidden : 1;
734 BOOL fNoNetCrawling : 1;
736 UINT :15; /* Required for proper binary layout with gcc */
737 DWORD dwWin95Unused;
738 UINT uWin95Unused;
739 LONG lParamSort;
740 int iSortDirection;
741 UINT version;
742 UINT uNotUsed;
743 BOOL fSepProcess: 1;
744 BOOL fStartPanelOn: 1;
745 BOOL fShowStartPage: 1;
746 UINT fSpareFlags : 13;
747 UINT :15; /* Required for proper binary layout with gcc */
748 } SHELLSTATE, *LPSHELLSTATE;
750 /**********************************************************************
751 * SHGetSettings ()
753 typedef struct
754 { BOOL fShowAllObjects : 1;
755 BOOL fShowExtensions : 1;
756 BOOL fNoConfirmRecycle : 1;
757 BOOL fShowSysFiles : 1;
759 BOOL fShowCompColor : 1;
760 BOOL fDoubleClickInWebView : 1;
761 BOOL fDesktopHTML : 1;
762 BOOL fWin95Classic : 1;
764 BOOL fDontPrettyPath : 1;
765 BOOL fShowAttribCol : 1;
766 BOOL fMapNetDrvBtn : 1;
767 BOOL fShowInfoTip : 1;
769 BOOL fHideIcons : 1;
770 UINT fRestFlags : 3;
771 UINT :15; /* Required for proper binary layout with gcc */
772 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
774 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
776 #define SSF_SHOWALLOBJECTS 0x0001
777 #define SSF_SHOWEXTENSIONS 0x0002
778 #define SSF_SHOWCOMPCOLOR 0x0008
779 #define SSF_SHOWSYSFILES 0x0020
780 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
781 #define SSF_SHOWATTRIBCOL 0x0100
782 #define SSF_DESKTOPHTML 0x0200
783 #define SSF_WIN95CLASSIC 0x0400
784 #define SSF_DONTPRETTYPATH 0x0800
785 #define SSF_SHOWINFOTIP 0x2000
786 #define SSF_MAPNETDRVBUTTON 0x1000
787 #define SSF_NOCONFIRMRECYCLE 0x8000
788 #define SSF_HIDEICONS 0x4000
790 /****************************************************************************
791 * SHRestricted API
793 typedef enum RESTRICTIONS
795 REST_NONE = 0x00000000,
796 REST_NORUN = 0x00000001,
797 REST_NOCLOSE = 0x00000002,
798 REST_NOSAVESET = 0x00000004,
799 REST_NOFILEMENU = 0x00000008,
800 REST_NOSETFOLDERS = 0x00000010,
801 REST_NOSETTASKBAR = 0x00000020,
802 REST_NODESKTOP = 0x00000040,
803 REST_NOFIND = 0x00000080,
804 REST_NODRIVES = 0x00000100,
805 REST_NODRIVEAUTORUN = 0x00000200,
806 REST_NODRIVETYPEAUTORUN = 0x00000400,
807 REST_NONETHOOD = 0x00000800,
808 REST_STARTBANNER = 0x00001000,
809 REST_RESTRICTRUN = 0x00002000,
810 REST_NOPRINTERTABS = 0x00004000,
811 REST_NOPRINTERDELETE = 0x00008000,
812 REST_NOPRINTERADD = 0x00010000,
813 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
814 REST_MYDOCSONNET = 0x00040000,
815 REST_NOEXITTODOS = 0x00080000,
816 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
817 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
818 REST_NOCOMMONGROUPS = 0x00400000,
819 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
820 REST_NOWEB = 0x01000000,
821 REST_NOTRAYCONTEXTMENU = 0x02000000,
822 REST_NOVIEWCONTEXTMENU = 0x04000000,
823 REST_NONETCONNECTDISCONNECT = 0x08000000,
824 REST_STARTMENULOGOFF = 0x10000000,
825 REST_NOSETTINGSASSIST = 0x20000000,
826 REST_NOINTERNETICON = 0x40000001,
827 REST_NORECENTDOCSHISTORY,
828 REST_NORECENTDOCSMENU,
829 REST_NOACTIVEDESKTOP,
830 REST_NOACTIVEDESKTOPCHANGES,
831 REST_NOFAVORITESMENU,
832 REST_CLEARRECENTDOCSONEXIT,
833 REST_CLASSICSHELL,
834 REST_NOCUSTOMIZEWEBVIEW,
836 REST_NOHTMLWALLPAPER = 0x40000010,
837 REST_NOCHANGINGWALLPAPER,
838 REST_NODESKCOMP,
839 REST_NOADDDESKCOMP,
840 REST_NODELDESKCOMP,
841 REST_NOCLOSEDESKCOMP,
842 REST_NOCLOSE_DRAGDROPBAND,
843 REST_NOMOVINGBAND,
844 REST_NOEDITDESKCOMP,
845 REST_NORESOLVESEARCH,
846 REST_NORESOLVETRACK,
847 REST_FORCECOPYACLWITHFILE,
848 REST_NOLOGO3CHANNELNOTIFY,
849 REST_NOFORGETSOFTWAREUPDATE,
850 REST_NOSETACTIVEDESKTOP,
851 REST_NOUPDATEWINDOWS,
852 REST_NOCHANGESTARMENU, /* 0x40000020 */
853 REST_NOFOLDEROPTIONS,
854 REST_HASFINDCOMPUTERS,
855 REST_INTELLIMENUS,
856 REST_RUNDLGMEMCHECKBOX,
857 REST_ARP_ShowPostSetup,
858 REST_NOCSC,
859 REST_NOCONTROLPANEL,
860 REST_ENUMWORKGROUP,
861 REST_ARP_NOARP,
862 REST_ARP_NOREMOVEPAGE,
863 REST_ARP_NOADDPAGE,
864 REST_ARP_NOWINSETUPPAGE,
865 REST_GREYMSIADS,
866 REST_NOCHANGEMAPPEDDRIVELABEL,
867 REST_NOCHANGEMAPPEDDRIVECOMMENT,
868 REST_MaxRecentDocs, /* 0x40000030 */
869 REST_NONETWORKCONNECTIONS,
870 REST_FORCESTARTMENULOGOFF,
871 REST_NOWEBVIEW,
872 REST_NOCUSTOMIZETHISFOLDER,
873 REST_NOENCRYPTION,
875 REST_ALLOWFRENCHENCRYPTION, /* not documented */
877 REST_DONTSHOWSUPERHIDDEN,
878 REST_NOSHELLSEARCHBUTTON,
879 REST_NOHARDWARETAB,
880 REST_NORUNASINSTALLPROMPT,
881 REST_PROMPTRUNASINSTALLNETPATH,
882 REST_NOMANAGEMYCOMPUTERVERB,
883 REST_NORECENTDOCSNETHOOD,
884 REST_DISALLOWRUN,
885 REST_NOWELCOMESCREEN,
886 REST_RESTRICTCPL, /* 0x40000040 */
887 REST_DISALLOWCPL,
888 REST_NOSMBALLOONTIP,
889 REST_NOSMHELP,
890 REST_NOWINKEYS,
891 REST_NOENCRYPTONMOVE,
892 REST_NOLOCALMACHINERUN,
893 REST_NOCURRENTUSERRUN,
894 REST_NOLOCALMACHINERUNONCE,
895 REST_NOCURRENTUSERRUNONCE,
896 REST_FORCEACTIVEDESKTOPON,
897 REST_NOCOMPUTERSNEARME,
898 REST_NOVIEWONDRIVE,
899 REST_NONETCRAWL,
900 REST_NOSHAREDDOCUMENTS,
901 REST_NOSMMYDOCS,
902 REST_NOSMMYPICS, /* 0x40000050 */
903 REST_ALLOWBITBUCKDRIVES,
904 REST_NONLEGACYSHELLMODE,
905 REST_NOCONTROLPANELBARRICADE,
906 REST_NOSTARTPAGE,
907 REST_NOAUTOTRAYNOTIFY,
908 REST_NOTASKGROUPING,
909 REST_NOCDBURNING,
910 REST_MYCOMPNOPROP,
911 REST_MYDOCSNOPROP,
912 REST_NOSTARTPANEL,
913 REST_NODISPLAYAPPEARANCEPAGE,
914 REST_NOTHEMESTAB,
915 REST_NOVISUALSTYLECHOICE,
916 REST_NOSIZECHOICE,
917 REST_NOCOLORCHOICE,
918 REST_SETVISUALSTYLE, /* 0x40000060 */
919 REST_STARTRUNNOHOMEPATH,
920 REST_NOUSERNAMEINSTARTPANEL,
921 REST_NOMYCOMPUTERICON,
922 REST_NOSMNETWORKPLACES,
923 REST_NOSMPINNEDLIST,
924 REST_NOSMMYMUSIC,
925 REST_NOSMEJECTPC,
926 REST_NOSMMOREPROGRAMS,
927 REST_NOSMMFUPROGRAMS,
928 REST_NOTRAYITEMSDISPLAY,
929 REST_NOTOOLBARSONTASKBAR,
930 /* 0x4000006C
931 0x4000006D
932 0x4000006E */
933 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
934 REST_HIDECLOCK, /* 0x40000070 */
935 REST_NOLOWDISKSPACECHECKS,
936 REST_NOENTIRENETWORK,
937 REST_NODESKTOPCLEANUP,
938 REST_BITBUCKNUKEONDELETE,
939 REST_BITBUCKCONFIRMDELETE,
940 REST_BITBUCKNOPROP,
941 REST_NODISPBACKGROUND,
942 REST_NODISPSCREENSAVEPG,
943 REST_NODISPSETTINGSPG,
944 REST_NODISPSCREENSAVEPREVIEW,
945 REST_NODISPLAYCPL,
946 REST_HIDERUNASVERB,
947 REST_NOTHUMBNAILCACHE,
948 REST_NOSTRCMPLOGICAL,
949 REST_NOPUBLISHWIZARD,
950 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
951 REST_NOWEBSERVICES,
952 REST_ALLOWUNHASHEDWEBVIEW,
953 REST_ALLOWLEGACYWEBVIEW,
954 REST_REVERTWEBVIEWSECURITY,
956 REST_INHERITCONSOLEHANDLES = 0x40000086,
958 REST_NODISCONNECT = 0x41000001,
959 REST_NOSECURITY,
960 REST_NOFILEASSOCIATE, /* 0x41000003 */
961 } RESTRICTIONS;
963 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
965 /****************************************************************************
966 * SHChangeNotify API
968 typedef struct _SHChangeNotifyEntry
970 LPCITEMIDLIST pidl;
971 BOOL fRecursive;
972 } SHChangeNotifyEntry;
974 #define SHCNE_RENAMEITEM 0x00000001
975 #define SHCNE_CREATE 0x00000002
976 #define SHCNE_DELETE 0x00000004
977 #define SHCNE_MKDIR 0x00000008
978 #define SHCNE_RMDIR 0x00000010
979 #define SHCNE_MEDIAINSERTED 0x00000020
980 #define SHCNE_MEDIAREMOVED 0x00000040
981 #define SHCNE_DRIVEREMOVED 0x00000080
982 #define SHCNE_DRIVEADD 0x00000100
983 #define SHCNE_NETSHARE 0x00000200
984 #define SHCNE_NETUNSHARE 0x00000400
985 #define SHCNE_ATTRIBUTES 0x00000800
986 #define SHCNE_UPDATEDIR 0x00001000
987 #define SHCNE_UPDATEITEM 0x00002000
988 #define SHCNE_SERVERDISCONNECT 0x00004000
989 #define SHCNE_UPDATEIMAGE 0x00008000
990 #define SHCNE_DRIVEADDGUI 0x00010000
991 #define SHCNE_RENAMEFOLDER 0x00020000
992 #define SHCNE_FREESPACE 0x00040000
994 #define SHCNE_EXTENDED_EVENT 0x04000000
995 #define SHCNE_ASSOCCHANGED 0x08000000
996 #define SHCNE_DISKEVENTS 0x0002381F
997 #define SHCNE_GLOBALEVENTS 0x0C0581E0
998 #define SHCNE_ALLEVENTS 0x7FFFFFFF
999 #define SHCNE_INTERRUPT 0x80000000
1001 #define SHCNEE_ORDERCHANGED 0x0002L
1002 #define SHCNEE_MSI_CHANGE 0x0004L
1003 #define SHCNEE_MSI_UNINSTALL 0x0005L
1005 #define SHCNF_IDLIST 0x0000
1006 #define SHCNF_PATHA 0x0001
1007 #define SHCNF_PRINTERA 0x0002
1008 #define SHCNF_DWORD 0x0003
1009 #define SHCNF_PATHW 0x0005
1010 #define SHCNF_PRINTERW 0x0006
1011 #define SHCNF_TYPE 0x00FF
1012 #define SHCNF_FLUSH 0x1000
1013 #define SHCNF_FLUSHNOWAIT 0x2000
1015 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1016 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1018 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
1020 typedef enum {
1021 SLDF_HAS_ID_LIST = 0x00000001,
1022 SLDF_HAS_LINK_INFO = 0x00000002,
1023 SLDF_HAS_NAME = 0x00000004,
1024 SLDF_HAS_RELPATH = 0x00000008,
1025 SLDF_HAS_WORKINGDIR = 0x00000010,
1026 SLDF_HAS_ARGS = 0x00000020,
1027 SLDF_HAS_ICONLOCATION = 0x00000040,
1028 SLDF_UNICODE = 0x00000080,
1029 SLDF_FORCE_NO_LINKINFO = 0x00000100,
1030 SLDF_HAS_EXP_SZ = 0x00000200,
1031 SLDF_RUN_IN_SEPARATE = 0x00000400,
1032 SLDF_HAS_LOGO3ID = 0x00000800,
1033 SLDF_HAS_DARWINID = 0x00001000,
1034 SLDF_RUNAS_USER = 0x00002000,
1035 SLDF_HAS_EXP_ICON_SZ = 0x00004000,
1036 SLDF_NO_PIDL_ALIAS = 0x00008000,
1037 SLDF_FORCE_UNCNAME = 0x00010000,
1038 SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
1039 SLDF_FORCE_NO_LINKTRACK = 0x00040000,
1040 SLDF_ENABLE_TARGET_METADATA = 0x00080000,
1041 SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING = 0x00200000,
1042 SLDF_VALID = 0x003ff7ff,
1043 SLDF_RESERVED = 0x80000000,
1044 } SHELL_LINK_DATA_FLAGS;
1046 typedef struct tagDATABLOCKHEADER
1048 DWORD cbSize;
1049 DWORD dwSignature;
1050 } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
1052 typedef struct {
1053 DATABLOCK_HEADER dbh;
1054 CHAR szDarwinID[MAX_PATH];
1055 WCHAR szwDarwinID[MAX_PATH];
1056 } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
1058 typedef struct {
1059 DWORD cbSize;
1060 DWORD cbSignature;
1061 CHAR szTarget[MAX_PATH];
1062 WCHAR szwTarget[MAX_PATH];
1063 } EXP_SZ_LINK, *LPEXP_SZ_LINK;
1065 typedef struct {
1066 DWORD cbSize;
1067 DWORD dwSignature;
1068 DWORD idSpecialFolder;
1069 DWORD cbOffset;
1070 } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
1072 typedef struct {
1073 DWORD cbSize;
1074 DWORD dwSignature;
1075 BYTE abPropertyStorage[1];
1076 } EXP_PROPERTYSTORAGE;
1078 #define EXP_SZ_LINK_SIG 0xa0000001
1079 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1080 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1081 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1082 #define EXP_DARWIN_ID_SIG 0xa0000006
1083 #define EXP_SZ_ICON_SIG 0xa0000007
1084 #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
1085 #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
1087 typedef struct _SHChangeDWORDAsIDList {
1088 USHORT cb;
1089 DWORD dwItem1;
1090 DWORD dwItem2;
1091 USHORT cbZero;
1092 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
1094 typedef struct _SHChangeProductKeyAsIDList {
1095 USHORT cb;
1096 WCHAR wszProductKey[39];
1097 USHORT cbZero;
1098 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
1100 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
1101 int cEntries, SHChangeNotifyEntry *pshcne);
1102 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
1103 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
1104 LPITEMIDLIST **pppidl, LONG *plEvent);
1105 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
1107 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
1109 /****************************************************************************
1110 * SHCreateDirectory API
1112 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
1113 int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
1114 int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
1116 /****************************************************************************
1117 * SHGetSpecialFolderLocation API
1119 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
1120 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
1122 /****************************************************************************
1123 * SHGetFolderPath API
1125 typedef enum {
1126 SHGFP_TYPE_CURRENT = 0,
1127 SHGFP_TYPE_DEFAULT = 1
1128 } SHGFP_TYPE;
1130 HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
1131 HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
1132 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1134 #define CSIDL_DESKTOP 0x0000
1135 #define CSIDL_INTERNET 0x0001
1136 #define CSIDL_PROGRAMS 0x0002
1137 #define CSIDL_CONTROLS 0x0003
1138 #define CSIDL_PRINTERS 0x0004
1139 #define CSIDL_PERSONAL 0x0005
1140 #define CSIDL_FAVORITES 0x0006
1141 #define CSIDL_STARTUP 0x0007
1142 #define CSIDL_RECENT 0x0008
1143 #define CSIDL_SENDTO 0x0009
1144 #define CSIDL_BITBUCKET 0x000a
1145 #define CSIDL_STARTMENU 0x000b
1146 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1147 #define CSIDL_MYMUSIC 0x000d
1148 #define CSIDL_MYVIDEO 0x000e
1149 #define CSIDL_DESKTOPDIRECTORY 0x0010
1150 #define CSIDL_DRIVES 0x0011
1151 #define CSIDL_NETWORK 0x0012
1152 #define CSIDL_NETHOOD 0x0013
1153 #define CSIDL_FONTS 0x0014
1154 #define CSIDL_TEMPLATES 0x0015
1155 #define CSIDL_COMMON_STARTMENU 0x0016
1156 #define CSIDL_COMMON_PROGRAMS 0X0017
1157 #define CSIDL_COMMON_STARTUP 0x0018
1158 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1159 #define CSIDL_APPDATA 0x001a
1160 #define CSIDL_PRINTHOOD 0x001b
1161 #define CSIDL_LOCAL_APPDATA 0x001c
1162 #define CSIDL_ALTSTARTUP 0x001d
1163 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1164 #define CSIDL_COMMON_FAVORITES 0x001f
1165 #define CSIDL_INTERNET_CACHE 0x0020
1166 #define CSIDL_COOKIES 0x0021
1167 #define CSIDL_HISTORY 0x0022
1168 #define CSIDL_COMMON_APPDATA 0x0023
1169 #define CSIDL_WINDOWS 0x0024
1170 #define CSIDL_SYSTEM 0x0025
1171 #define CSIDL_PROGRAM_FILES 0x0026
1172 #define CSIDL_MYPICTURES 0x0027
1173 #define CSIDL_PROFILE 0x0028
1174 #define CSIDL_SYSTEMX86 0x0029
1175 #define CSIDL_PROGRAM_FILESX86 0x002a
1176 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1177 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1178 #define CSIDL_COMMON_TEMPLATES 0x002d
1179 #define CSIDL_COMMON_DOCUMENTS 0x002e
1180 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1181 #define CSIDL_ADMINTOOLS 0x0030
1182 #define CSIDL_CONNECTIONS 0x0031
1183 #define CSIDL_COMMON_MUSIC 0x0035
1184 #define CSIDL_COMMON_PICTURES 0x0036
1185 #define CSIDL_COMMON_VIDEO 0x0037
1186 #define CSIDL_RESOURCES 0x0038
1187 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1188 #define CSIDL_COMMON_OEM_LINKS 0x003a
1189 #define CSIDL_CDBURN_AREA 0x003b
1190 #define CSIDL_COMPUTERSNEARME 0x003d
1191 #define CSIDL_PROFILES 0x003e
1192 #define CSIDL_FOLDER_MASK 0x00ff
1193 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1194 #define CSIDL_FLAG_NO_ALIAS 0x1000
1195 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1196 #define CSIDL_FLAG_CREATE 0x8000
1198 #define CSIDL_FLAG_MASK 0xff00
1200 /****************************************************************************
1201 * SHGetDesktopFolder API
1203 HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
1205 /****************************************************************************
1206 * SHBindToParent API
1208 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
1210 /****************************************************************************
1211 * SHDefExtractIcon API
1213 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
1214 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1215 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
1216 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
1217 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1220 * DROPFILES for CF_HDROP and CF_PRINTERS
1222 typedef struct _DROPFILES
1224 DWORD pFiles;
1225 POINT pt;
1226 BOOL fNC;
1227 BOOL fWide;
1228 } DROPFILES, *LPDROPFILES;
1231 * Properties of a file in the clipboard
1233 typedef struct _FILEDESCRIPTORA {
1234 DWORD dwFlags;
1235 CLSID clsid;
1236 SIZEL sizel;
1237 POINTL pointl;
1238 DWORD dwFileAttributes;
1239 FILETIME ftCreationTime;
1240 FILETIME ftLastAccessTime;
1241 FILETIME ftLastWriteTime;
1242 DWORD nFileSizeHigh;
1243 DWORD nFileSizeLow;
1244 CHAR cFileName[MAX_PATH];
1245 } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
1247 typedef struct _FILEDESCRIPTORW {
1248 DWORD dwFlags;
1249 CLSID clsid;
1250 SIZEL sizel;
1251 POINTL pointl;
1252 DWORD dwFileAttributes;
1253 FILETIME ftCreationTime;
1254 FILETIME ftLastAccessTime;
1255 FILETIME ftLastWriteTime;
1256 DWORD nFileSizeHigh;
1257 DWORD nFileSizeLow;
1258 WCHAR cFileName[MAX_PATH];
1259 } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
1261 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
1262 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
1265 * CF_FILEGROUPDESCRIPTOR clipboard format
1267 typedef struct _FILEGROUPDESCRIPTORA {
1268 UINT cItems;
1269 FILEDESCRIPTORA fgd[1];
1270 } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
1272 typedef struct _FILEGROUPDESCRIPTORW {
1273 UINT cItems;
1274 FILEDESCRIPTORW fgd[1];
1275 } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
1277 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
1278 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
1280 /****************************************************************************
1281 * Cabinet functions
1284 typedef struct {
1285 WORD cLength;
1286 WORD nVersion;
1287 BOOL fFullPathTitle:1;
1288 BOOL fSaveLocalView:1;
1289 BOOL fNotShell:1;
1290 BOOL fSimpleDefault:1;
1291 BOOL fDontShowDescBar:1;
1292 BOOL fNewWindowMode:1;
1293 BOOL fShowCompColor:1;
1294 BOOL fDontPrettyNames:1;
1295 BOOL fAdminsCreateCommonGroups:1;
1296 UINT fUnusedFlags:7;
1297 UINT :15; /* Required for proper binary layout with gcc */
1298 UINT fMenuEnumFilter;
1299 } CABINETSTATE, *LPCABINETSTATE;
1301 #define CABINETSTATE_VERSION 2
1303 BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
1304 BOOL WINAPI WriteCabinetState(CABINETSTATE *);
1306 /****************************************************************************
1307 * Path Manipulation Routines
1310 /* PathProcessCommand flags */
1311 #define PPCF_ADDQUOTES 0x01
1312 #define PPCF_INCLUDEARGS 0x02
1313 #define PPCF_ADDARGUMENTS 0x03
1314 #define PPCF_NODIRECTORIES 0x10
1315 #define PPCF_DONTRESOLVE 0x20
1316 #define PPCF_FORCEQUALIFY 0x40
1317 #define PPCF_LONGESTPOSSIBLE 0x80
1319 /* PathResolve flags */
1320 #define PRF_VERIFYEXISTS 0x01
1321 #define PRF_EXECUTABLE 0x02
1322 #define PRF_TRYPROGRAMEXTENSIONS 0x03
1323 #define PRF_FIRSTDIRDEF 0x04
1324 #define PRF_DONTFINDLINK 0x08
1326 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
1327 LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
1328 BOOL WINAPI PathYetAnotherMakeUniqueName(LPWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
1330 /****************************************************************************
1331 * Drag And Drop Routines
1334 /* DAD_AutoScroll sample structure */
1335 #define NUM_POINTS 3
1336 typedef struct
1338 int iNextSample;
1339 DWORD dwLastScroll;
1340 BOOL bFull;
1341 POINT pts[NUM_POINTS];
1342 DWORD dwTimes[NUM_POINTS];
1343 } AUTO_SCROLL_DATA;
1345 BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
1346 BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
1347 BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
1348 BOOL WINAPI DAD_DragMove(POINT);
1349 BOOL WINAPI DAD_DragLeave(void);
1350 BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
1351 HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
1353 LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
1354 LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
1355 LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
1356 LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
1357 LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
1358 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1359 LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
1360 LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
1361 LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
1362 void WINAPI ILFree(LPITEMIDLIST);
1363 LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
1364 UINT WINAPI ILGetSize(LPCITEMIDLIST);
1365 BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
1366 BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
1367 HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
1368 BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
1369 HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
1372 #include <poppack.h>
1374 #ifdef __cplusplus
1375 } /* extern "C" */
1376 #endif /* defined(__cplusplus) */
1378 #endif /* __WINE_SHLOBJ_H */