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 #endif /* defined(__cplusplus) */
31 /* Except for specific structs, this header is byte packed */
39 DECLARE_HANDLE(HPSXA
);
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 BOOL WINAPI
SHGetPathFromIDListA(LPCITEMIDLIST
,LPSTR
);
58 BOOL WINAPI
SHGetPathFromIDListW(LPCITEMIDLIST
,LPWSTR
);
59 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
60 INT WINAPI
SHHandleUpdateImage(LPCITEMIDLIST
);
61 HRESULT WINAPI
SHILCreateFromPath(LPCWSTR
,LPITEMIDLIST
*,DWORD
*);
62 HRESULT WINAPI
SHLoadOLE(LPARAM
);
63 HRESULT WINAPI
SHPathPrepareForWriteA(HWND
,IUnknown
*,LPCSTR
,DWORD
);
64 HRESULT WINAPI
SHPathPrepareForWriteW(HWND
,IUnknown
*,LPCWSTR
,DWORD
);
65 #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite);
66 UINT WINAPI
SHReplaceFromPropSheetExtArray(HPSXA
,UINT
,LPFNADDPROPSHEETPAGE
,LPARAM
);
67 LPITEMIDLIST WINAPI
SHSimpleIDListFromPath(LPCWSTR
);
68 int WINAPI
SHMapPIDLToSystemImageListIndex(IShellFolder
*,LPCITEMIDLIST
,int*);
69 HRESULT WINAPI
SHStartNetConnectionDialog(HWND
,LPCSTR
,DWORD
);
70 VOID WINAPI
SHUpdateImageA(LPCSTR
,INT
,UINT
,INT
);
71 VOID WINAPI
SHUpdateImageW(LPCWSTR
,INT
,UINT
,INT
);
72 #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
73 int WINAPI
RestartDialog(HWND
,LPCWSTR
,DWORD
);
74 int WINAPI
RestartDialogEx(HWND
,LPCWSTR
,DWORD
,DWORD
);
76 #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formatable */
77 #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was canceled */
78 #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formatable */
80 /* SHFormatDrive flags */
81 #define SHFMT_ID_DEFAULT 0xFFFF
82 #define SHFMT_OPT_FULL 1
83 #define SHFMT_OPT_SYSONLY 2
85 /* SHPathPrepareForWrite flags */
86 #define SHPPFW_NONE 0x00000000
87 #define SHPPFW_DIRCREATE 0x00000001
88 #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
89 #define SHPPFW_ASKDIRCREATE 0x00000002
90 #define SHPPFW_IGNOREFILENAME 0x00000004
91 #define SHPPFW_NOWRITECHECK 0x00000008
92 #define SHPPFW_MEDIACHECKONLY 0x00000010
94 /* SHObjectProperties flags */
95 #define SHOP_PRINTERNAME 0x01
96 #define SHOP_FILEPATH 0x02
97 #define SHOP_VOLUMEGUID 0x04
99 BOOL WINAPI
SHObjectProperties(HWND
,DWORD
,LPCWSTR
,LPCWSTR
);
101 #define PCS_FATAL 0x80000000
102 #define PCS_REPLACEDCHAR 0x00000001
103 #define PCS_REMOVEDCHAR 0x00000002
104 #define PCS_TRUNCATED 0x00000004
105 #define PCS_PATHTOOLONG 0x00000008
107 int WINAPI
PathCleanupSpec(LPCWSTR
,LPWSTR
);
109 /*****************************************************************************
110 * IContextMenu interface
114 /* DATAOBJECT_InitShellIDList*/
115 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
122 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
123 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
125 /* DATAOBJECT_InitFileGroupDesc */
126 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
128 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
130 /* DATAOBJECT_InitFileContents*/
131 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
133 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
134 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
135 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
136 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
137 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
138 #define CFSTR_SHELLURL "UniformResourceLocator"
139 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
140 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
141 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
142 #define CFSTR_INDRAGLOOP "InShellDragLoop"
144 #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
145 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
148 /************************************************************************
149 * IShellView interface
152 typedef GUID SHELLVIEWID
;
154 #define FCIDM_SHVIEWFIRST 0x0000
156 #define FCIDM_SHVIEW_ARRANGE 0x7001
157 #define FCIDM_SHVIEW_DELETE 0x7011
158 #define FCIDM_SHVIEW_PROPERTIES 0x7013
159 #define FCIDM_SHVIEW_CUT 0x7018
160 #define FCIDM_SHVIEW_COPY 0x7019
161 #define FCIDM_SHVIEW_INSERT 0x701A
162 #define FCIDM_SHVIEW_UNDO 0x701B
163 #define FCIDM_SHVIEW_INSERTLINK 0x701C
164 #define FCIDM_SHVIEW_SELECTALL 0x7021
165 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
167 #define FCIDM_SHVIEW_BIGICON 0x7029
168 #define FCIDM_SHVIEW_SMALLICON 0x702A
169 #define FCIDM_SHVIEW_LISTVIEW 0x702B
170 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
171 /* 0x7030-0x703f are used by the shellbrowser */
172 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
173 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
175 #define FCIDM_SHVIEW_HELP 0x7041
176 #define FCIDM_SHVIEW_RENAME 0x7050
177 #define FCIDM_SHVIEW_CREATELINK 0x7051
178 #define FCIDM_SHVIEW_NEWLINK 0x7052
179 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
181 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
182 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
183 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
185 #define FCIDM_SHVIEWLAST 0x7fff
186 #define FCIDM_BROWSERFIRST 0xA000
187 /* undocumented toolbar items from stddlg's*/
188 #define FCIDM_TB_UPFOLDER 0xA001
189 #define FCIDM_TB_NEWFOLDER 0xA002
190 #define FCIDM_TB_SMALLICON 0xA003
191 #define FCIDM_TB_REPORTVIEW 0xA004
192 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
194 #define FCIDM_BROWSERLAST 0xbf00
195 #define FCIDM_GLOBALFIRST 0x8000
196 #define FCIDM_GLOBALLAST 0x9fff
199 * Global submenu IDs and separator IDs
201 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
202 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
203 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
204 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
205 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
206 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
207 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
208 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
209 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
210 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
212 /* control IDs known to the view */
213 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
214 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
217 /****************************************************************************
218 * IShellIcon interface
221 #define INTERFACE IShellIcon
222 DECLARE_INTERFACE_(IShellIcon
,IUnknown
)
224 /*** IUnknown methods ***/
225 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
226 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
227 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
228 /*** IShellIcon methods ***/
229 STDMETHOD(GetIconOf
)(THIS_ LPCITEMIDLIST pidl
, UINT flags
, LPINT lpIconIndex
) PURE
;
233 #if !defined(__cplusplus) || defined(CINTERFACE)
234 /*** IUnknown methods ***/
235 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
236 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
237 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
238 /*** IShellIcon methods ***/
239 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
242 typedef IShellIcon
*LPSHELLICON
;
244 /* IQueryInfo interface */
245 #define INTERFACE IQueryInfo
246 DECLARE_INTERFACE_(IQueryInfo
,IUnknown
)
248 /*** IUnknown methods ***/
249 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
250 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
251 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
252 /*** IQueryInfo methods ***/
253 STDMETHOD(GetInfoTip
)(THIS_ DWORD dwFlags
, WCHAR
** lppTips
) PURE
;
254 STDMETHOD(GetInfoFlags
)(THIS_ DWORD
* lpFlags
) PURE
;
258 #if !defined(__cplusplus) || defined(CINTERFACE)
259 /*** IUnknown methods ***/
260 #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
261 #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
262 #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
263 /*** IQueryInfo methods ***/
264 #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
265 #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
268 /* IInputObject interface */
269 #define INTERFACE IInputObject
270 DECLARE_INTERFACE_(IInputObject
,IUnknown
)
272 /*** IUnknown methods ***/
273 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
274 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
275 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
276 /*** IInputObject methods ***/
277 STDMETHOD(UIActivateIO
)(THIS_ BOOL bActivating
, LPMSG lpMsg
) PURE
;
278 STDMETHOD(HasFocusIO
)(THIS
) PURE
;
279 STDMETHOD(TranslateAcceleratorIO
)(THIS_ LPMSG lpMsg
) PURE
;
283 #if !defined(__cplusplus) || defined(CINTERFACE)
284 /*** IUnknown methods ***/
285 #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
286 #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
287 #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
288 /*** IInputObject methods ***/
289 #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
290 #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
291 #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
294 /* IInputObjectSite interface */
295 #define INTERFACE IInputObjectSite
296 DECLARE_INTERFACE_(IInputObjectSite
,IUnknown
)
298 /*** IUnknown methods ***/
299 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
300 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
301 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
302 /*** IInputObjectSite methods ***/
303 STDMETHOD(OnFocusChangeIS
)(THIS_ LPUNKNOWN lpUnknown
, BOOL bFocus
) PURE
;
307 #if !defined(__cplusplus) || defined(CINTERFACE)
308 /*** IUnknown methods ***/
309 #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
310 #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
311 #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
312 /*** IInputObject methods ***/
313 #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
316 /* IObjMgr interface */
317 #define INTERFACE IObjMgr
318 DECLARE_INTERFACE_(IObjMgr
,IUnknown
)
320 /*** IUnknown methods ***/
321 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
322 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
323 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
324 /*** IObjMgr methods ***/
325 STDMETHOD(Append
)(THIS_ LPUNKNOWN punk
) PURE
;
326 STDMETHOD(Remove
)(THIS_ LPUNKNOWN punk
) PURE
;
330 #if !defined(__cplusplus) || defined(CINTERFACE)
331 /*** IUnknown methods ***/
332 #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
333 #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
334 #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
335 /*** IObjMgr methods ***/
336 #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
337 #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
340 /* IACList interface */
341 #define INTERFACE IACList
342 DECLARE_INTERFACE_(IACList
,IUnknown
)
344 /*** IUnknown methods ***/
345 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
346 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
347 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
348 /*** IACList methods ***/
349 STDMETHOD(Expand
)(THIS_ LPCOLESTR str
) PURE
;
353 #if !defined(__cplusplus) || defined(CINTERFACE)
354 /*** IUnknown methods ***/
355 #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
356 #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
357 #define IACList_Release(p) (p)->lpVtbl->Release(p)
358 /*** IACList methods ***/
359 #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
362 /* IProgressDialog interface */
363 #define PROGDLG_NORMAL 0x00000000
364 #define PROGDLG_MODAL 0x00000001
365 #define PROGDLG_AUTOTIME 0x00000002
366 #define PROGDLG_NOTIME 0x00000004
367 #define PROGDLG_NOMINIMIZE 0x00000008
368 #define PROGDLG_NOPROGRESSBAR 0x00000010
369 #define PROGDLG_MARQUEEPROGRESS 0x00000020
370 #define PROGDLG_NOCANCEL 0x00000040
372 #define PDTIMER_RESET 0x00000001
373 #define PDTIMER_PAUSE 0x00000002
374 #define PDTIMER_RESUME 0x00000003
376 #define INTERFACE IProgressDialog
377 DECLARE_INTERFACE_(IProgressDialog
,IUnknown
)
379 /*** IUnknown methods ***/
380 STDMETHOD_(HRESULT
,QueryInterface
) (THIS_ REFIID riid
, void** ppvObject
) PURE
;
381 STDMETHOD_(ULONG
,AddRef
) (THIS
) PURE
;
382 STDMETHOD_(ULONG
,Release
) (THIS
) PURE
;
383 /*** IProgressDialog methods ***/
384 STDMETHOD(StartProgressDialog
)(THIS_ HWND hwndParent
, IUnknown
*punkEnableModeless
, DWORD dwFlags
, LPCVOID reserved
) PURE
;
385 STDMETHOD(StopProgressDialog
)(THIS
) PURE
;
386 STDMETHOD(SetTitle
)(THIS_ LPCWSTR pwzTitle
) PURE
;
387 STDMETHOD(SetAnimation
)(THIS_ HINSTANCE hInstance
, UINT uiResourceId
) PURE
;
388 STDMETHOD_(BOOL
,HasUserCancelled
)(THIS
) PURE
;
389 STDMETHOD(SetProgress
)(THIS_ DWORD dwCompleted
, DWORD dwTotal
) PURE
;
390 STDMETHOD(SetProgress64
)(THIS_ ULONGLONG ullCompleted
, ULONGLONG ullTotal
) PURE
;
391 STDMETHOD(SetLine
)(THIS_ DWORD dwLineNum
, LPCWSTR pwzString
, BOOL bPath
, LPCVOID reserved
) PURE
;
392 STDMETHOD(SetCancelMsg
)(THIS_ LPCWSTR pwzCancelMsg
, LPCVOID reserved
) PURE
;
393 STDMETHOD(Timer
)(THIS_ DWORD dwTimerAction
, LPCVOID reserved
) PURE
;
397 #if !defined(__cplusplus) || defined(CINTERFACE)
398 /*** IUnknown methods ***/
399 #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
400 #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
401 #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
402 /*** IProgressDialog methods ***/
403 #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
404 #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
405 #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
406 #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
407 #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
408 #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
409 #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
410 #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
411 #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
412 #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
416 /****************************************************************************
417 * SHAddToRecentDocs API
419 #define SHARD_PIDL 0x00000001L
420 #define SHARD_PATHA 0x00000002L
421 #define SHARD_PATHW 0x00000003L
422 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
424 void WINAPI
SHAddToRecentDocs(UINT
,LPCVOID
);
426 /****************************************************************************
427 * SHBrowseForFolder API
429 typedef INT (CALLBACK
*BFFCALLBACK
)(HWND
,UINT
,LPARAM
,LPARAM
);
431 #include <pshpack8.h>
433 typedef struct tagBROWSEINFOA
{
435 LPCITEMIDLIST pidlRoot
;
436 LPSTR pszDisplayName
;
442 } BROWSEINFOA
, *PBROWSEINFOA
, *LPBROWSEINFOA
;
444 typedef struct tagBROWSEINFOW
{
446 LPCITEMIDLIST pidlRoot
;
447 LPWSTR pszDisplayName
;
453 } BROWSEINFOW
, *PBROWSEINFOW
, *LPBROWSEINFOW
;
455 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
456 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
457 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
461 /* Browsing for directory. */
462 #define BIF_RETURNONLYFSDIRS 0x0001
463 #define BIF_DONTGOBELOWDOMAIN 0x0002
464 #define BIF_STATUSTEXT 0x0004
465 #define BIF_RETURNFSANCESTORS 0x0008
466 #define BIF_EDITBOX 0x0010
467 #define BIF_VALIDATE 0x0020
468 #define BIF_NEWDIALOGSTYLE 0x0040
469 #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
470 #define BIF_BROWSEINCLUDEURLS 0x0080
471 #define BIF_UAHINT 0x0100
472 #define BIF_NONEWFOLDERBUTTON 0x0200
473 #define BIF_NOTRANSLATETARGETS 0x0400
475 #define BIF_BROWSEFORCOMPUTER 0x1000
476 #define BIF_BROWSEFORPRINTER 0x2000
477 #define BIF_BROWSEINCLUDEFILES 0x4000
479 /* message from browser */
480 #define BFFM_INITIALIZED 1
481 #define BFFM_SELCHANGED 2
482 #define BFFM_VALIDATEFAILEDA 3
483 #define BFFM_VALIDATEFAILEDW 4
484 #define BFFM_IUNKNOWN 5
486 /* messages to browser */
487 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
488 #define BFFM_ENABLEOK (WM_USER+101)
489 #define BFFM_SETSELECTIONA (WM_USER+102)
490 #define BFFM_SETSELECTIONW (WM_USER+103)
491 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
492 #define BFFM_SETOKTEXT (WM_USER+105)
493 #define BFFM_SETEXPANDED (WM_USER+106)
495 LPITEMIDLIST WINAPI
SHBrowseForFolderA(LPBROWSEINFOA lpbi
);
496 LPITEMIDLIST WINAPI
SHBrowseForFolderW(LPBROWSEINFOW lpbi
);
497 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
498 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
499 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
500 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
502 /**********************************************************************
503 * SHCreateShellFolderViewEx API
506 typedef HRESULT (CALLBACK
*LPFNVIEWCALLBACK
)(
518 IShellView
* psvOuter
;
521 LPFNVIEWCALLBACK pfnCallback
;
525 HRESULT WINAPI
SHCreateShellFolderViewEx(LPCSFV pshfvi
, IShellView
**ppshv
);
527 /* SHCreateShellFolderViewEx callback messages */
528 #define SFVM_MERGEMENU 1
529 #define SFVM_INVOKECOMMAND 2
530 #define SFVM_GETHELPTEXT 3
531 #define SFVM_GETTOOLTIPTEXT 4
532 #define SFVM_GETBUTTONINFO 5
533 #define SFVM_GETBUTTONS 6
534 #define SFVM_INITMENUPOPUP 7
535 #define SFVM_SELECTIONCHANGED 8 /* undocumented */
536 #define SFVM_DRAWMENUITEM 9 /* undocumented */
537 #define SFVM_MEASUREMENUITEM 10 /* undocumented */
538 #define SFVM_EXITMENULOOP 11 /* undocumented */
539 #define SFVM_VIEWRELEASE 12 /* undocumented */
540 #define SFVM_GETNAMELENGTH 13 /* undocumented */
541 #define SFVM_FSNOTIFY 14
542 #define SFVM_WINDOWCREATED 15
543 #define SFVM_WINDOWCLOSING 16 /* undocumented */
544 #define SFVM_LISTREFRESHED 17 /* undocumented */
545 #define SFVM_WINDOWFOCUSED 18 /* undocumented */
546 #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
547 #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
548 #define SFVM_GETDETAILSOF 23
549 #define SFVM_COLUMNCLICK 24
550 #define SFVM_QUERYFSNOTIFY 25
551 #define SFVM_DEFITEMCOUNT 26
552 #define SFVM_DEFVIEWMODE 27
553 #define SFVM_UNMERGEFROMMENU 28
554 #define SFVM_ADDINGOBJECT 29 /* undocumented */
555 #define SFVM_REMOVINGOBJECT 30 /* undocumented */
556 #define SFVM_UPDATESTATUSBAR 31
557 #define SFVM_BACKGROUNDENUM 32
558 #define SFVM_GETCOMMANDDIR 33 /* undocumented */
559 #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
560 #define SFVM_CANSELECTALL 35 /* undocumented */
561 #define SFVM_DIDDRAGDROP 36
562 #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
563 #define SFVM_ISCHILDOBJECT 38 /* undocumented */
564 #define SFVM_SETISFV 39
565 #define SFVM_GETEXTVIEWS 40 /* undocumented */
566 #define SFVM_THISIDLIST 41
567 #define SFVM_ADDPROPERTYPAGES 47
568 #define SFVM_BACKGROUNDENUMDONE 48
569 #define SFVM_GETNOTIFY 49
570 #define SFVM_GETSORTDEFAULTS 53
572 #define SFVM_GETZONE 58
573 #define SFVM_GETPANE 59
574 #define SFVM_GETHELPTOPIC 63
575 #define SFVM_GETANIMATION 68
576 #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
577 #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
578 #define SFVM_GET_VIEW_DATA 80 /* undocumented */
579 #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
580 #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
581 #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
582 #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
583 #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
585 /* Types and definitions for the SFM_* parameters */
586 #include <pshpack8.h>
588 #define QCMINFO_PLACE_BEFORE 0
589 #define QCMINFO_PLACE_AFTER 1
590 typedef struct _QCMINFO_IDMAP_PLACEMENT
594 } QCMINFO_IDMAP_PLACEMENT
;
596 typedef struct _QCMINFO_IDMAP
599 QCMINFO_IDMAP_PLACEMENT pIdList
[1];
602 typedef struct _QCMINFO
608 QCMINFO_IDMAP
const* pIdMap
;
609 } QCMINFO
, *LPQCMINFO
;
611 #define TBIF_DEFAULT 0x00000000
612 #define TBIF_APPEND 0x00000000
613 #define TBIF_PREPEND 0x00000001
614 #define TBIF_REPLACE 0x00000002
615 #define TBIF_INTERNETBAR 0x00010000
616 #define TBIF_STANDARDTOOLBAR 0x00020000
617 #define TBIF_NOTOOLBAR 0x00030000
619 typedef struct _TBINFO
627 /****************************************************************************
628 * SHShellFolderView_Message API
631 LRESULT WINAPI
SHShellFolderView_Message(
636 /* SHShellFolderView_Message messages */
637 #define SFVM_REARRANGE 0x0001
638 #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
639 #define SFVM_ADDOBJECT 0x0003
640 #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
641 #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
642 #define SFVM_REMOVEOBJECT 0x0006
643 #define SFVM_UPDATEOBJECT 0x0007
644 #define SFVM_SETREDRAW 0x0008 /* undocumented */
645 #define SFVM_GETSELECTEDOBJECTS 0x0009
646 #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
647 #define SFVM_MOVEICONS 0x000B /* undocumented */
648 #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
649 #define SFVM_GETDROPPOINT 0x000D /* undocumented */
650 #define SFVM_SETITEMPOS 0x000E
651 #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
652 #define SFVM_SETCLIPBOARD 0x0010
653 #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
654 #define SFVM_LINEUPICONS 0x0012 /* undocumented */
655 #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
656 #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
657 #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
658 #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
659 #define SFVM_SETPOINTS 0x0017
661 /****************************************************************************
662 * SHGetDataFromIDList API
664 #define SHGDFIL_FINDDATA 1
665 #define SHGDFIL_NETRESOURCE 2
666 #define SHGDFIL_DESCRIPTIONID 3
668 #define SHDID_ROOT_REGITEM 1
669 #define SHDID_FS_FILE 2
670 #define SHDID_FS_DIRECTORY 3
671 #define SHDID_FS_OTHER 4
672 #define SHDID_COMPUTER_DRIVE35 5
673 #define SHDID_COMPUTER_DRIVE525 6
674 #define SHDID_COMPUTER_REMOVABLE 7
675 #define SHDID_COMPUTER_FIXED 8
676 #define SHDID_COMPUTER_NETDRIVE 9
677 #define SHDID_COMPUTER_CDROM 10
678 #define SHDID_COMPUTER_RAMDISK 11
679 #define SHDID_COMPUTER_OTHER 12
680 #define SHDID_NET_DOMAIN 13
681 #define SHDID_NET_SERVER 14
682 #define SHDID_NET_SHARE 15
683 #define SHDID_NET_RESTOFNET 16
684 #define SHDID_NET_OTHER 17
685 #define SHDID_COMPUTER_IMAGING 18
686 #define SHDID_COMPUTER_AUDIO 19
687 #define SHDID_COMPUTER_SHAREDDOCS 20
689 #include <pshpack8.h>
691 typedef struct _SHDESCRIPTIONID
692 { DWORD dwDescriptionId
;
694 } SHDESCRIPTIONID
, *LPSHDESCRIPTIONID
;
698 HRESULT WINAPI
SHGetDataFromIDListA(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
699 HRESULT WINAPI
SHGetDataFromIDListW(LPSHELLFOLDER psf
, LPCITEMIDLIST pidl
, int nFormat
, LPVOID pv
, int cb
);
700 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
702 BOOL WINAPI
SHGetSpecialFolderPathA (HWND hwndOwner
, LPSTR szPath
, int nFolder
, BOOL bCreate
);
703 BOOL WINAPI
SHGetSpecialFolderPathW (HWND hwndOwner
, LPWSTR szPath
, int nFolder
, BOOL bCreate
);
704 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
706 HRESULT WINAPI
SHGetMalloc(LPMALLOC
*lpmal
) ;
708 /**********************************************************************
709 * SHGetSetSettings ()
714 BOOL fShowAllObjects
: 1;
715 BOOL fShowExtensions
: 1;
716 BOOL fNoConfirmRecycle
: 1;
718 BOOL fShowSysFiles
: 1;
719 BOOL fShowCompColor
: 1;
720 BOOL fDoubleClickInWebView
: 1;
721 BOOL fDesktopHTML
: 1;
722 BOOL fWin95Classic
: 1;
723 BOOL fDontPrettyPath
: 1;
724 BOOL fShowAttribCol
: 1;
725 BOOL fMapNetDrvBtn
: 1;
726 BOOL fShowInfoTip
: 1;
730 BOOL fShowSuperHidden
: 1;
731 BOOL fNoNetCrawling
: 1;
733 UINT
:15; /* Required for proper binary layout with gcc */
741 BOOL fStartPanelOn
: 1;
742 BOOL fShowStartPage
: 1;
743 UINT fSpareFlags
: 13;
744 UINT
:15; /* Required for proper binary layout with gcc */
745 } SHELLSTATE
, *LPSHELLSTATE
;
747 /**********************************************************************
751 { BOOL fShowAllObjects
: 1;
752 BOOL fShowExtensions
: 1;
753 BOOL fNoConfirmRecycle
: 1;
754 BOOL fShowSysFiles
: 1;
756 BOOL fShowCompColor
: 1;
757 BOOL fDoubleClickInWebView
: 1;
758 BOOL fDesktopHTML
: 1;
759 BOOL fWin95Classic
: 1;
761 BOOL fDontPrettyPath
: 1;
762 BOOL fShowAttribCol
: 1;
763 BOOL fMapNetDrvBtn
: 1;
764 BOOL fShowInfoTip
: 1;
768 UINT
:15; /* Required for proper binary layout with gcc */
769 } SHELLFLAGSTATE
, * LPSHELLFLAGSTATE
;
771 VOID WINAPI
SHGetSettings(LPSHELLFLAGSTATE lpsfs
, DWORD dwMask
);
773 #define SSF_SHOWALLOBJECTS 0x0001
774 #define SSF_SHOWEXTENSIONS 0x0002
775 #define SSF_SHOWCOMPCOLOR 0x0008
776 #define SSF_SHOWSYSFILES 0x0020
777 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
778 #define SSF_SHOWATTRIBCOL 0x0100
779 #define SSF_DESKTOPHTML 0x0200
780 #define SSF_WIN95CLASSIC 0x0400
781 #define SSF_DONTPRETTYPATH 0x0800
782 #define SSF_SHOWINFOTIP 0x2000
783 #define SSF_MAPNETDRVBUTTON 0x1000
784 #define SSF_NOCONFIRMRECYCLE 0x8000
785 #define SSF_HIDEICONS 0x4000
787 /****************************************************************************
790 typedef enum RESTRICTIONS
792 REST_NONE
= 0x00000000,
793 REST_NORUN
= 0x00000001,
794 REST_NOCLOSE
= 0x00000002,
795 REST_NOSAVESET
= 0x00000004,
796 REST_NOFILEMENU
= 0x00000008,
797 REST_NOSETFOLDERS
= 0x00000010,
798 REST_NOSETTASKBAR
= 0x00000020,
799 REST_NODESKTOP
= 0x00000040,
800 REST_NOFIND
= 0x00000080,
801 REST_NODRIVES
= 0x00000100,
802 REST_NODRIVEAUTORUN
= 0x00000200,
803 REST_NODRIVETYPEAUTORUN
= 0x00000400,
804 REST_NONETHOOD
= 0x00000800,
805 REST_STARTBANNER
= 0x00001000,
806 REST_RESTRICTRUN
= 0x00002000,
807 REST_NOPRINTERTABS
= 0x00004000,
808 REST_NOPRINTERDELETE
= 0x00008000,
809 REST_NOPRINTERADD
= 0x00010000,
810 REST_NOSTARTMENUSUBFOLDERS
= 0x00020000,
811 REST_MYDOCSONNET
= 0x00040000,
812 REST_NOEXITTODOS
= 0x00080000,
813 REST_ENFORCESHELLEXTSECURITY
= 0x00100000,
814 REST_LINKRESOLVEIGNORELINKINFO
= 0x00200000,
815 REST_NOCOMMONGROUPS
= 0x00400000,
816 REST_SEPARATEDESKTOPPROCESS
= 0x00800000,
817 REST_NOWEB
= 0x01000000,
818 REST_NOTRAYCONTEXTMENU
= 0x02000000,
819 REST_NOVIEWCONTEXTMENU
= 0x04000000,
820 REST_NONETCONNECTDISCONNECT
= 0x08000000,
821 REST_STARTMENULOGOFF
= 0x10000000,
822 REST_NOSETTINGSASSIST
= 0x20000000,
823 REST_NOINTERNETICON
= 0x40000001,
824 REST_NORECENTDOCSHISTORY
,
825 REST_NORECENTDOCSMENU
,
826 REST_NOACTIVEDESKTOP
,
827 REST_NOACTIVEDESKTOPCHANGES
,
828 REST_NOFAVORITESMENU
,
829 REST_CLEARRECENTDOCSONEXIT
,
831 REST_NOCUSTOMIZEWEBVIEW
,
833 REST_NOHTMLWALLPAPER
= 0x40000010,
834 REST_NOCHANGINGWALLPAPER
,
838 REST_NOCLOSEDESKCOMP
,
839 REST_NOCLOSE_DRAGDROPBAND
,
842 REST_NORESOLVESEARCH
,
844 REST_FORCECOPYACLWITHFILE
,
845 REST_NOLOGO3CHANNELNOTIFY
,
846 REST_NOFORGETSOFTWAREUPDATE
,
847 REST_NOSETACTIVEDESKTOP
,
848 REST_NOUPDATEWINDOWS
,
849 REST_NOCHANGESTARMENU
, /* 0x40000020 */
850 REST_NOFOLDEROPTIONS
,
851 REST_HASFINDCOMPUTERS
,
853 REST_RUNDLGMEMCHECKBOX
,
854 REST_ARP_ShowPostSetup
,
859 REST_ARP_NOREMOVEPAGE
,
861 REST_ARP_NOWINSETUPPAGE
,
863 REST_NOCHANGEMAPPEDDRIVELABEL
,
864 REST_NOCHANGEMAPPEDDRIVECOMMENT
,
865 REST_MaxRecentDocs
, /* 0x40000030 */
866 REST_NONETWORKCONNECTIONS
,
867 REST_FORCESTARTMENULOGOFF
,
869 REST_NOCUSTOMIZETHISFOLDER
,
872 REST_ALLOWFRENCHENCRYPTION
, /* not documented */
874 REST_DONTSHOWSUPERHIDDEN
,
875 REST_NOSHELLSEARCHBUTTON
,
877 REST_NORUNASINSTALLPROMPT
,
878 REST_PROMPTRUNASINSTALLNETPATH
,
879 REST_NOMANAGEMYCOMPUTERVERB
,
880 REST_NORECENTDOCSNETHOOD
,
882 REST_NOWELCOMESCREEN
,
883 REST_RESTRICTCPL
, /* 0x40000040 */
888 REST_NOENCRYPTONMOVE
,
889 REST_NOLOCALMACHINERUN
,
890 REST_NOCURRENTUSERRUN
,
891 REST_NOLOCALMACHINERUNONCE
,
892 REST_NOCURRENTUSERRUNONCE
,
893 REST_FORCEACTIVEDESKTOPON
,
894 REST_NOCOMPUTERSNEARME
,
897 REST_NOSHAREDDOCUMENTS
,
899 REST_NOSMMYPICS
, /* 0x40000050 */
900 REST_ALLOWBITBUCKDRIVES
,
901 REST_NONLEGACYSHELLMODE
,
902 REST_NOCONTROLPANELBARRICADE
,
904 REST_NOAUTOTRAYNOTIFY
,
910 REST_NODISPLAYAPPEARANCEPAGE
,
912 REST_NOVISUALSTYLECHOICE
,
915 REST_SETVISUALSTYLE
, /* 0x40000060 */
916 REST_STARTRUNNOHOMEPATH
,
917 REST_NOUSERNAMEINSTARTPANEL
,
918 REST_NOMYCOMPUTERICON
,
919 REST_NOSMNETWORKPLACES
,
923 REST_NOSMMOREPROGRAMS
,
924 REST_NOSMMFUPROGRAMS
,
925 REST_NOTRAYITEMSDISPLAY
,
926 REST_NOTOOLBARSONTASKBAR
,
930 REST_NOSMCONFIGUREPROGRAMS
= 0x4000006F,
931 REST_HIDECLOCK
, /* 0x40000070 */
932 REST_NOLOWDISKSPACECHECKS
,
933 REST_NOENTIRENETWORK
,
934 REST_NODESKTOPCLEANUP
,
935 REST_BITBUCKNUKEONDELETE
,
936 REST_BITBUCKCONFIRMDELETE
,
938 REST_NODISPBACKGROUND
,
939 REST_NODISPSCREENSAVEPG
,
940 REST_NODISPSETTINGSPG
,
941 REST_NODISPSCREENSAVEPREVIEW
,
944 REST_NOTHUMBNAILCACHE
,
945 REST_NOSTRCMPLOGICAL
,
946 REST_NOPUBLISHWIZARD
,
947 REST_NOONLINEPRINTSWIZARD
, /* 0x40000080 */
949 REST_ALLOWUNHASHEDWEBVIEW
,
950 REST_ALLOWLEGACYWEBVIEW
,
951 REST_REVERTWEBVIEWSECURITY
,
953 REST_INHERITCONSOLEHANDLES
= 0x40000086,
955 REST_NODISCONNECT
= 0x41000001,
957 REST_NOFILEASSOCIATE
, /* 0x41000003 */
960 DWORD WINAPI
SHRestricted(RESTRICTIONS rest
);
962 /****************************************************************************
965 typedef struct _SHChangeNotifyEntry
969 } SHChangeNotifyEntry
;
971 #define SHCNE_RENAMEITEM 0x00000001
972 #define SHCNE_CREATE 0x00000002
973 #define SHCNE_DELETE 0x00000004
974 #define SHCNE_MKDIR 0x00000008
975 #define SHCNE_RMDIR 0x00000010
976 #define SHCNE_MEDIAINSERTED 0x00000020
977 #define SHCNE_MEDIAREMOVED 0x00000040
978 #define SHCNE_DRIVEREMOVED 0x00000080
979 #define SHCNE_DRIVEADD 0x00000100
980 #define SHCNE_NETSHARE 0x00000200
981 #define SHCNE_NETUNSHARE 0x00000400
982 #define SHCNE_ATTRIBUTES 0x00000800
983 #define SHCNE_UPDATEDIR 0x00001000
984 #define SHCNE_UPDATEITEM 0x00002000
985 #define SHCNE_SERVERDISCONNECT 0x00004000
986 #define SHCNE_UPDATEIMAGE 0x00008000
987 #define SHCNE_DRIVEADDGUI 0x00010000
988 #define SHCNE_RENAMEFOLDER 0x00020000
989 #define SHCNE_FREESPACE 0x00040000
991 #define SHCNE_EXTENDED_EVENT 0x04000000
992 #define SHCNE_ASSOCCHANGED 0x08000000
993 #define SHCNE_DISKEVENTS 0x0002381F
994 #define SHCNE_GLOBALEVENTS 0x0C0581E0
995 #define SHCNE_ALLEVENTS 0x7FFFFFFF
996 #define SHCNE_INTERRUPT 0x80000000
998 #define SHCNEE_ORDERCHANGED 0x0002L
999 #define SHCNEE_MSI_CHANGE 0x0004L
1000 #define SHCNEE_MSI_UNINSTALL 0x0005L
1002 #define SHCNF_IDLIST 0x0000
1003 #define SHCNF_PATHA 0x0001
1004 #define SHCNF_PRINTERA 0x0002
1005 #define SHCNF_DWORD 0x0003
1006 #define SHCNF_PATHW 0x0005
1007 #define SHCNF_PRINTERW 0x0006
1008 #define SHCNF_TYPE 0x00FF
1009 #define SHCNF_FLUSH 0x1000
1010 #define SHCNF_FLUSHNOWAIT 0x2000
1012 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
1013 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
1015 void WINAPI
SHChangeNotify(LONG wEventId
, UINT uFlags
, LPCVOID dwItem1
, LPCVOID dwItem2
);
1018 SLDF_HAS_ID_LIST
= 0x00000001,
1019 SLDF_HAS_LINK_INFO
= 0x00000002,
1020 SLDF_HAS_NAME
= 0x00000004,
1021 SLDF_HAS_RELPATH
= 0x00000008,
1022 SLDF_HAS_WORKINGDIR
= 0x00000010,
1023 SLDF_HAS_ARGS
= 0x00000020,
1024 SLDF_HAS_ICONLOCATION
= 0x00000040,
1025 SLDF_UNICODE
= 0x00000080,
1026 SLDF_FORCE_NO_LINKINFO
= 0x00000100,
1027 SLDF_HAS_EXP_SZ
= 0x00000200,
1028 SLDF_RUN_IN_SEPARATE
= 0x00000400,
1029 SLDF_HAS_LOGO3ID
= 0x00000800,
1030 SLDF_HAS_DARWINID
= 0x00001000,
1031 SLDF_RUNAS_USER
= 0x00002000,
1032 SLDF_HAS_EXP_ICON_SZ
= 0x00004000,
1033 SLDF_NO_PIDL_ALIAS
= 0x00008000,
1034 SLDF_FORCE_UNCNAME
= 0x00010000,
1035 SLDF_RUN_WITH_SHIMLAYER
= 0x00020000,
1036 SLDF_RESERVED
= 0x80000000,
1037 } SHELL_LINK_DATA_FLAGS
;
1039 typedef struct tagDATABLOCKHEADER
1043 } DATABLOCK_HEADER
, *LPDATABLOCK_HEADER
, *LPDBLIST
;
1046 DATABLOCK_HEADER dbh
;
1047 CHAR szDarwinID
[MAX_PATH
];
1048 WCHAR szwDarwinID
[MAX_PATH
];
1049 } EXP_DARWIN_LINK
, *LPEXP_DARWIN_LINK
;
1054 CHAR szTarget
[MAX_PATH
];
1055 WCHAR szwTarget
[MAX_PATH
];
1056 } EXP_SZ_LINK
, *LPEXP_SZ_LINK
;
1061 DWORD idSpecialFolder
;
1063 } EXP_SPECIAL_FOLDER
, *LPEXP_SPECIAL_FOLDER
;
1065 #define EXP_SZ_LINK_SIG 0xa0000001
1066 #define NT_CONSOLE_PROPS_SIG 0xa0000002
1067 #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
1068 #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
1069 #define EXP_DARWIN_ID_SIG 0xa0000006
1070 #define EXP_LOGO3_ID_SIG 0xa0000007
1071 #define EXP_SZ_ICON_SIG 0xa0000007
1073 typedef struct _SHChangeDWORDAsIDList
{
1078 } SHChangeDWORDAsIDList
, *LPSHChangeDWORDAsIDList
;
1080 typedef struct _SHChangeProductKeyAsIDList
{
1082 WCHAR wszProductKey
[39];
1084 } SHChangeProductKeyAsIDList
, *LPSHChangeProductKeyAsIDList
;
1086 ULONG WINAPI
SHChangeNotifyRegister(HWND hwnd
, int fSources
, LONG fEvents
, UINT wMsg
,
1087 int cEntries
, SHChangeNotifyEntry
*pshcne
);
1088 BOOL WINAPI
SHChangeNotifyDeregister(ULONG ulID
);
1089 HANDLE WINAPI
SHChangeNotification_Lock(HANDLE hChangeNotification
, DWORD dwProcessId
,
1090 LPITEMIDLIST
**pppidl
, LONG
*plEvent
);
1091 BOOL WINAPI
SHChangeNotification_Unlock(HANDLE hLock
);
1093 HRESULT WINAPI
SHGetRealIDL(IShellFolder
*psf
, LPCITEMIDLIST pidlSimple
, LPITEMIDLIST
* ppidlReal
);
1095 /****************************************************************************
1096 * SHCreateDirectory API
1098 DWORD WINAPI
SHCreateDirectory(HWND
, LPCVOID
);
1099 int WINAPI
SHCreateDirectoryExA(HWND
, LPCSTR
, LPSECURITY_ATTRIBUTES
);
1100 int WINAPI
SHCreateDirectoryExW(HWND
, LPCWSTR
, LPSECURITY_ATTRIBUTES
);
1102 /****************************************************************************
1103 * SHGetSpecialFolderLocation API
1105 HRESULT WINAPI
SHGetSpecialFolderLocation(HWND hwndOwner
, int nFolder
, LPITEMIDLIST
* ppidl
);
1106 HRESULT WINAPI
SHGetFolderLocation(HWND hwndOwner
, int nFolder
, HANDLE hToken
, DWORD dwReserved
, LPITEMIDLIST
*ppidl
);
1108 /****************************************************************************
1109 * SHGetFolderPath API
1112 SHGFP_TYPE_CURRENT
= 0,
1113 SHGFP_TYPE_DEFAULT
= 1
1116 HRESULT WINAPI
SHGetFolderPathA(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPSTR pszPath
);
1117 HRESULT WINAPI
SHGetFolderPathW(HWND hwnd
, int nFolder
, HANDLE hToken
, DWORD dwFlags
, LPWSTR pszPath
);
1118 #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
1120 #define CSIDL_DESKTOP 0x0000
1121 #define CSIDL_INTERNET 0x0001
1122 #define CSIDL_PROGRAMS 0x0002
1123 #define CSIDL_CONTROLS 0x0003
1124 #define CSIDL_PRINTERS 0x0004
1125 #define CSIDL_PERSONAL 0x0005
1126 #define CSIDL_FAVORITES 0x0006
1127 #define CSIDL_STARTUP 0x0007
1128 #define CSIDL_RECENT 0x0008
1129 #define CSIDL_SENDTO 0x0009
1130 #define CSIDL_BITBUCKET 0x000a
1131 #define CSIDL_STARTMENU 0x000b
1132 #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
1133 #define CSIDL_MYMUSIC 0x000d
1134 #define CSIDL_MYVIDEO 0x000e
1135 #define CSIDL_DESKTOPDIRECTORY 0x0010
1136 #define CSIDL_DRIVES 0x0011
1137 #define CSIDL_NETWORK 0x0012
1138 #define CSIDL_NETHOOD 0x0013
1139 #define CSIDL_FONTS 0x0014
1140 #define CSIDL_TEMPLATES 0x0015
1141 #define CSIDL_COMMON_STARTMENU 0x0016
1142 #define CSIDL_COMMON_PROGRAMS 0X0017
1143 #define CSIDL_COMMON_STARTUP 0x0018
1144 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
1145 #define CSIDL_APPDATA 0x001a
1146 #define CSIDL_PRINTHOOD 0x001b
1147 #define CSIDL_LOCAL_APPDATA 0x001c
1148 #define CSIDL_ALTSTARTUP 0x001d
1149 #define CSIDL_COMMON_ALTSTARTUP 0x001e
1150 #define CSIDL_COMMON_FAVORITES 0x001f
1151 #define CSIDL_INTERNET_CACHE 0x0020
1152 #define CSIDL_COOKIES 0x0021
1153 #define CSIDL_HISTORY 0x0022
1154 #define CSIDL_COMMON_APPDATA 0x0023
1155 #define CSIDL_WINDOWS 0x0024
1156 #define CSIDL_SYSTEM 0x0025
1157 #define CSIDL_PROGRAM_FILES 0x0026
1158 #define CSIDL_MYPICTURES 0x0027
1159 #define CSIDL_PROFILE 0x0028
1160 #define CSIDL_SYSTEMX86 0x0029
1161 #define CSIDL_PROGRAM_FILESX86 0x002a
1162 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
1163 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
1164 #define CSIDL_COMMON_TEMPLATES 0x002d
1165 #define CSIDL_COMMON_DOCUMENTS 0x002e
1166 #define CSIDL_COMMON_ADMINTOOLS 0x002f
1167 #define CSIDL_ADMINTOOLS 0x0030
1168 #define CSIDL_CONNECTIONS 0x0031
1169 #define CSIDL_COMMON_MUSIC 0x0035
1170 #define CSIDL_COMMON_PICTURES 0x0036
1171 #define CSIDL_COMMON_VIDEO 0x0037
1172 #define CSIDL_RESOURCES 0x0038
1173 #define CSIDL_RESOURCES_LOCALIZED 0x0039
1174 #define CSIDL_COMMON_OEM_LINKS 0x003a
1175 #define CSIDL_CDBURN_AREA 0x003b
1176 #define CSIDL_COMPUTERSNEARME 0x003d
1177 #define CSIDL_PROFILES 0x003e
1178 #define CSIDL_FOLDER_MASK 0x00ff
1179 #define CSIDL_FLAG_PER_USER_INIT 0x0800
1180 #define CSIDL_FLAG_NO_ALIAS 0x1000
1181 #define CSIDL_FLAG_DONT_VERIFY 0x4000
1182 #define CSIDL_FLAG_CREATE 0x8000
1184 #define CSIDL_FLAG_MASK 0xff00
1186 /****************************************************************************
1187 * SHGetDesktopFolder API
1189 HRESULT WINAPI
SHGetDesktopFolder(IShellFolder
* *);
1191 /****************************************************************************
1192 * SHBindToParent API
1194 HRESULT WINAPI
SHBindToParent(LPCITEMIDLIST pidl
, REFIID riid
, LPVOID
*ppv
, LPCITEMIDLIST
*ppidlLast
);
1196 /****************************************************************************
1197 * SHDefExtractIcon API
1199 HRESULT WINAPI
SHDefExtractIconA(LPCSTR pszIconFile
, int iIndex
, UINT uFlags
,
1200 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
1201 HRESULT WINAPI
SHDefExtractIconW(LPCWSTR pszIconFile
, int iIndex
, UINT uFlags
,
1202 HICON
* phiconLarge
, HICON
* phiconSmall
, UINT nIconSize
);
1203 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
1206 * DROPFILES for CF_HDROP and CF_PRINTERS
1208 typedef struct _DROPFILES
1214 } DROPFILES
, *LPDROPFILES
;
1217 * Properties of a file in the clipboard
1219 typedef struct _FILEDESCRIPTORA
{
1224 DWORD dwFileAttributes
;
1225 FILETIME ftCreationTime
;
1226 FILETIME ftLastAccessTime
;
1227 FILETIME ftLastWriteTime
;
1228 DWORD nFileSizeHigh
;
1230 CHAR cFileName
[MAX_PATH
];
1231 } FILEDESCRIPTORA
, *LPFILEDESCRIPTORA
;
1233 typedef struct _FILEDESCRIPTORW
{
1238 DWORD dwFileAttributes
;
1239 FILETIME ftCreationTime
;
1240 FILETIME ftLastAccessTime
;
1241 FILETIME ftLastWriteTime
;
1242 DWORD nFileSizeHigh
;
1244 WCHAR cFileName
[MAX_PATH
];
1245 } FILEDESCRIPTORW
, *LPFILEDESCRIPTORW
;
1247 DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR
)
1248 DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR
)
1251 * CF_FILEGROUPDESCRIPTOR clipboard format
1253 typedef struct _FILEGROUPDESCRIPTORA
{
1255 FILEDESCRIPTORA fgd
[1];
1256 } FILEGROUPDESCRIPTORA
, *LPFILEGROUPDESCRIPTORA
;
1258 typedef struct _FILEGROUPDESCRIPTORW
{
1260 FILEDESCRIPTORW fgd
[1];
1261 } FILEGROUPDESCRIPTORW
, *LPFILEGROUPDESCRIPTORW
;
1263 DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR
)
1264 DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR
)
1266 /****************************************************************************
1273 BOOL fFullPathTitle
:1;
1274 BOOL fSaveLocalView
:1;
1276 BOOL fSimpleDefault
:1;
1277 BOOL fDontShowDescBar
:1;
1278 BOOL fNewWindowMode
:1;
1279 BOOL fShowCompColor
:1;
1280 BOOL fDontPrettyNames
:1;
1281 BOOL fAdminsCreateCommonGroups
:1;
1282 UINT fUnusedFlags
:7;
1283 UINT
:15; /* Required for proper binary layout with gcc */
1284 UINT fMenuEnumFilter
;
1285 } CABINETSTATE
, *LPCABINETSTATE
;
1287 #define CABINETSTATE_VERSION 2
1289 BOOL WINAPI
ReadCabinetState(CABINETSTATE
*, int);
1290 BOOL WINAPI
WriteCabinetState(CABINETSTATE
*);
1292 /****************************************************************************
1293 * Path Manipulation Routines
1295 VOID WINAPI
PathGetShortPath(LPWSTR pszPath
);
1296 LONG WINAPI
PathProcessCommand(LPCWSTR
, LPWSTR
, int, DWORD
);
1298 /****************************************************************************
1299 * Drag And Drop Routines
1302 /* DAD_AutoScroll sample structure */
1303 #define NUM_POINTS 3
1309 POINT pts
[NUM_POINTS
];
1310 DWORD dwTimes
[NUM_POINTS
];
1313 BOOL WINAPI
DAD_SetDragImage(HIMAGELIST
,LPPOINT
);
1314 BOOL WINAPI
DAD_DragEnterEx(HWND
,POINT
);
1315 BOOL WINAPI
DAD_DragEnterEx2(HWND
,POINT
,IDataObject
*);
1316 BOOL WINAPI
DAD_DragMove(POINT
);
1317 BOOL WINAPI
DAD_DragLeave(void);
1318 BOOL WINAPI
DAD_AutoScroll(HWND
,AUTO_SCROLL_DATA
*,LPPOINT
);
1319 HRESULT WINAPI
SHDoDragDrop(HWND
,IDataObject
*,IDropSource
*,DWORD
,LPDWORD
);
1321 LPITEMIDLIST WINAPI
ILAppendID(LPITEMIDLIST
,LPCSHITEMID
,BOOL
);
1322 LPITEMIDLIST WINAPI
ILClone(LPCITEMIDLIST
);
1323 LPITEMIDLIST WINAPI
ILCloneFirst(LPCITEMIDLIST
);
1324 LPITEMIDLIST WINAPI
ILCreateFromPathA(LPCSTR
);
1325 LPITEMIDLIST WINAPI
ILCreateFromPathW(LPCWSTR
);
1326 #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
1327 LPITEMIDLIST WINAPI
ILCombine(LPCITEMIDLIST
,LPCITEMIDLIST
);
1328 LPITEMIDLIST WINAPI
ILFindChild(LPCITEMIDLIST
,LPCITEMIDLIST
);
1329 LPITEMIDLIST WINAPI
ILFindLastID(LPCITEMIDLIST
);
1330 void WINAPI
ILFree(LPITEMIDLIST
);
1331 LPITEMIDLIST WINAPI
ILGetNext(LPCITEMIDLIST
);
1332 UINT WINAPI
ILGetSize(LPCITEMIDLIST
);
1333 BOOL WINAPI
ILIsEqual(LPCITEMIDLIST
,LPCITEMIDLIST
);
1334 BOOL WINAPI
ILIsParent(LPCITEMIDLIST
,LPCITEMIDLIST
,BOOL
);
1335 HRESULT WINAPI
ILLoadFromStream(LPSTREAM
,LPITEMIDLIST
*);
1336 BOOL WINAPI
ILRemoveLastID(LPITEMIDLIST
);
1337 HRESULT WINAPI
ILSaveToStream(LPSTREAM
,LPCITEMIDLIST
);
1340 #include <poppack.h>
1344 #endif /* defined(__cplusplus) */
1346 #endif /* __WINE_SHLOBJ_H */