Removed reference to 'systemname' and added a link to winsite in
[wine/hacks.git] / include / shlobj.h
blob8f707b9c59c35a62b829981428bc3729df84175d
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 #include <pshpack1.h>
33 #include <shtypes.h>
34 #include <shobjidl.h>
37 BOOL WINAPI SHGetPathFromIDListA (LPCITEMIDLIST pidl,LPSTR pszPath);
38 BOOL WINAPI SHGetPathFromIDListW (LPCITEMIDLIST pidl,LPWSTR pszPath);
39 #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
42 /*****************************************************************************
43 * Predeclare interfaces
45 typedef struct IShellIcon IShellIcon, *LPSHELLICON;
48 /*****************************************************************************
49 * IContextMenu interface
53 /* DATAOBJECT_InitShellIDList*/
54 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
56 extern UINT cfShellIDList;
58 typedef struct
59 { UINT cidl;
60 UINT aoffset[1];
61 } CIDA, *LPIDA;
63 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
64 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
66 /* DATAOBJECT_InitFileGroupDesc */
67 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
68 extern UINT cfFileGroupDesc;
70 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
72 /* DATAOBJECT_InitFileContents*/
73 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
74 extern UINT cfFileContents;
76 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
77 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
78 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
79 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
80 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
81 #define CFSTR_SHELLURL "UniformResourceLocator"
82 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
83 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
84 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
85 #define CFSTR_INDRAGLOOP "InShellDragLoop"
87 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
90 /************************************************************************
91 * IShellView interface
94 typedef GUID SHELLVIEWID;
95 #define SV_CLASS_NAME ("SHELLDLL_DefView")
97 #define FCIDM_SHVIEWFIRST 0x0000
98 /* undocumented */
99 #define FCIDM_SHVIEW_ARRANGE 0x7001
100 #define FCIDM_SHVIEW_DELETE 0x7011
101 #define FCIDM_SHVIEW_PROPERTIES 0x7013
102 #define FCIDM_SHVIEW_CUT 0x7018
103 #define FCIDM_SHVIEW_COPY 0x7019
104 #define FCIDM_SHVIEW_INSERT 0x701A
105 #define FCIDM_SHVIEW_UNDO 0x701B
106 #define FCIDM_SHVIEW_INSERTLINK 0x701C
107 #define FCIDM_SHVIEW_SELECTALL 0x7021
108 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
110 #define FCIDM_SHVIEW_BIGICON 0x7029
111 #define FCIDM_SHVIEW_SMALLICON 0x702A
112 #define FCIDM_SHVIEW_LISTVIEW 0x702B
113 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
114 /* 0x7030-0x703f are used by the shellbrowser */
115 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
116 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
118 #define FCIDM_SHVIEW_HELP 0x7041
119 #define FCIDM_SHVIEW_RENAME 0x7050
120 #define FCIDM_SHVIEW_CREATELINK 0x7051
121 #define FCIDM_SHVIEW_NEWLINK 0x7052
122 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
124 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
125 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
126 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
128 #define FCIDM_SHVIEWLAST 0x7fff
129 #define FCIDM_BROWSERFIRST 0xA000
130 /* undocumented toolbar items from stddlg's*/
131 #define FCIDM_TB_UPFOLDER 0xA001
132 #define FCIDM_TB_NEWFOLDER 0xA002
133 #define FCIDM_TB_SMALLICON 0xA003
134 #define FCIDM_TB_REPORTVIEW 0xA004
135 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
137 #define FCIDM_BROWSERLAST 0xbf00
138 #define FCIDM_GLOBALFIRST 0x8000
139 #define FCIDM_GLOBALLAST 0x9fff
142 * Global submenu IDs and separator IDs
144 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
145 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
146 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
147 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
148 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
149 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
150 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
151 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
152 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
153 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
155 /* control IDs known to the view */
156 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
157 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
160 /****************************************************************************
161 * IShellIcon interface
164 #define INTERFACE IShellIcon
165 #define IShellIcon_METHODS \
166 IUnknown_METHODS \
167 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
168 ICOM_DEFINE(IShellIcon, IUnknown)
169 #undef INTERFACE
171 #ifdef COBJMACROS
172 /*** IUnknown methods ***/
173 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
174 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
175 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
176 /*** IShellIcon methods ***/
177 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
178 #endif
180 /****************************************************************************
181 * SHAddToRecentDocs API
183 #define SHARD_PIDL 0x00000001L
184 #define SHARD_PATHA 0x00000002L
185 #define SHARD_PATHW 0x00000003L
186 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
188 DWORD WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv);
190 /****************************************************************************
191 * Shell Execute API
193 #define SE_ERR_FNF 2 /* file not found */
194 #define SE_ERR_PNF 3 /* path not found */
195 #define SE_ERR_ACCESSDENIED 5 /* access denied */
196 #define SE_ERR_OOM 8 /* out of memory */
197 #define SE_ERR_DLLNOTFOUND 32
198 #define SE_ERR_SHARE 26
199 #define SE_ERR_ASSOCINCOMPLETE 27
200 #define SE_ERR_DDETIMEOUT 28
201 #define SE_ERR_DDEFAIL 29
202 #define SE_ERR_DDEBUSY 30
203 #define SE_ERR_NOASSOC 31
205 #define SEE_MASK_CLASSNAME 0x00000001
206 #define SEE_MASK_CLASSKEY 0x00000003
207 #define SEE_MASK_IDLIST 0x00000004
208 #define SEE_MASK_INVOKEIDLIST 0x0000000c
209 #define SEE_MASK_ICON 0x00000010
210 #define SEE_MASK_HOTKEY 0x00000020
211 #define SEE_MASK_NOCLOSEPROCESS 0x00000040
212 #define SEE_MASK_CONNECTNETDRV 0x00000080
213 #define SEE_MASK_FLAG_DDEWAIT 0x00000100
214 #define SEE_MASK_DOENVSUBST 0x00000200
215 #define SEE_MASK_FLAG_NO_UI 0x00000400
216 #define SEE_MASK_UNICODE 0x00004000
217 #define SEE_MASK_NO_CONSOLE 0x00008000
218 #define SEE_MASK_ASYNCOK 0x00100000
219 #define SEE_MASK_HMONITOR 0x00200000
221 typedef struct _SHELLEXECUTEINFOA
222 { DWORD cbSize;
223 ULONG fMask;
224 HWND hwnd;
225 LPCSTR lpVerb;
226 LPCSTR lpFile;
227 LPCSTR lpParameters;
228 LPCSTR lpDirectory;
229 INT nShow;
230 HINSTANCE hInstApp;
231 /* Optional fields */
232 LPVOID lpIDList;
233 LPCSTR lpClass;
234 HKEY hkeyClass;
235 DWORD dwHotKey;
236 union
237 { HANDLE hIcon;
238 HANDLE hMonitor;
239 } DUMMYUNIONNAME;
240 HANDLE hProcess;
241 } SHELLEXECUTEINFOA, *LPSHELLEXECUTEINFOA;
243 typedef struct _SHELLEXECUTEINFOW
244 { DWORD cbSize;
245 ULONG fMask;
246 HWND hwnd;
247 LPCWSTR lpVerb;
248 LPCWSTR lpFile;
249 LPCWSTR lpParameters;
250 LPCWSTR lpDirectory;
251 INT nShow;
252 HINSTANCE hInstApp;
253 /* Optional fields*/
254 LPVOID lpIDList;
255 LPCWSTR lpClass;
256 HKEY hkeyClass;
257 DWORD dwHotKey;
258 union
259 { HANDLE hIcon;
260 HANDLE hMonitor;
261 } DUMMYUNIONNAME;
262 HANDLE hProcess;
263 } SHELLEXECUTEINFOW, *LPSHELLEXECUTEINFOW;
265 #define SHELLEXECUTEINFO WINELIB_NAME_AW(SHELLEXECUTEINFO)
266 #define LPSHELLEXECUTEINFO WINELIB_NAME_AW(LPSHELLEXECUTEINFO)
268 BOOL WINAPI ShellExecuteExA(LPSHELLEXECUTEINFOA lpExecInfo);
269 BOOL WINAPI ShellExecuteExW(LPSHELLEXECUTEINFOW lpExecInfo);
270 #define ShellExecuteEx WINELIB_NAME_AW(ShellExecuteEx)
272 void WINAPI WinExecErrorA(HWND hwnd,INT error, LPCSTR lpstrFileName, LPCSTR lpstrTitle);
273 void WINAPI WinExecErrorW(HWND hwnd,INT error, LPCWSTR lpstrFileName, LPCWSTR lpstrTitle);
274 #define WinExecError WINELIB_NAME_AW(WinExecError)
278 /****************************************************************************
279 * SHBrowseForFolder API
281 typedef INT (CALLBACK *BFFCALLBACK)(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
283 typedef struct tagBROWSEINFOA {
284 HWND hwndOwner;
285 LPCITEMIDLIST pidlRoot;
286 LPSTR pszDisplayName;
287 LPCSTR lpszTitle;
288 UINT ulFlags;
289 BFFCALLBACK lpfn;
290 LPARAM lParam;
291 INT iImage;
292 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
294 typedef struct tagBROWSEINFOW {
295 HWND hwndOwner;
296 LPCITEMIDLIST pidlRoot;
297 LPWSTR pszDisplayName;
298 LPCWSTR lpszTitle;
299 UINT ulFlags;
300 BFFCALLBACK lpfn;
301 LPARAM lParam;
302 INT iImage;
303 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
305 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
306 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
307 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
309 /* Browsing for directory. */
310 #define BIF_RETURNONLYFSDIRS 0x0001
311 #define BIF_DONTGOBELOWDOMAIN 0x0002
312 #define BIF_STATUSTEXT 0x0004
313 #define BIF_RETURNFSANCESTORS 0x0008
314 #define BIF_EDITBOX 0x0010
315 #define BIF_VALIDATE 0x0020
316 #define BIF_NEWDIALOGSTYLE 0x0040
318 #define BIF_BROWSEFORCOMPUTER 0x1000
319 #define BIF_BROWSEFORPRINTER 0x2000
320 #define BIF_BROWSEINCLUDEFILES 0x4000
322 /* message from browser */
323 #define BFFM_INITIALIZED 1
324 #define BFFM_SELCHANGED 2
325 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
326 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
328 /* messages to browser */
329 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
330 #define BFFM_ENABLEOK (WM_USER+101)
331 #define BFFM_SETSELECTIONA (WM_USER+102)
332 #define BFFM_SETSELECTIONW (WM_USER+103)
333 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
334 #define BFFM_SETOKTEXT (WM_USER+105)
335 #define BFFM_SETEXPANDED (WM_USER+106)
337 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
338 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
339 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
340 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
341 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
342 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
344 /****************************************************************************
345 * SHGetDataFromIDList API
347 #define SHGDFIL_FINDDATA 1
348 #define SHGDFIL_NETRESOURCE 2
349 #define SHGDFIL_DESCRIPTIONID 3
351 #define SHDID_ROOT_REGITEM 1
352 #define SHDID_FS_FILE 2
353 #define SHDID_FS_DIRECTORY 3
354 #define SHDID_FS_OTHER 4
355 #define SHDID_COMPUTER_DRIVE35 5
356 #define SHDID_COMPUTER_DRIVE525 6
357 #define SHDID_COMPUTER_REMOVABLE 7
358 #define SHDID_COMPUTER_FIXED 8
359 #define SHDID_COMPUTER_NETDRIVE 9
360 #define SHDID_COMPUTER_CDROM 10
361 #define SHDID_COMPUTER_RAMDISK 11
362 #define SHDID_COMPUTER_OTHER 12
363 #define SHDID_NET_DOMAIN 13
364 #define SHDID_NET_SERVER 14
365 #define SHDID_NET_SHARE 15
366 #define SHDID_NET_RESTOFNET 16
367 #define SHDID_NET_OTHER 17
368 #define SHDID_COMPUTER_IMAGING 18
369 #define SHDID_COMPUTER_AUDIO 19
370 #define SHDID_COMPUTER_SHAREDDOCS 20
372 typedef struct _SHDESCRIPTIONID
373 { DWORD dwDescriptionId;
374 CLSID clsid;
375 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
377 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
378 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
379 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
381 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
382 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
383 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
385 /****************************************************************************
386 * shlview structures
390 * IShellFolderViewCallback Callback
391 * This "callback" is called by the shells default IShellView implementation (that
392 * we got using SHCreateShellViewEx()), to notify us of the various things that
393 * are happening to the shellview (and ask for things too).
395 * You don't have to support anything here - anything you don't want to
396 * handle, the shell will do itself if you just return E_NOTIMPL. This parameters
397 * that the shell passes to this function are entirely undocumented.
399 * HOWEVER, as the cabview sample as originally written used this callback, the
400 * writers implemented the callback mechanism on top of their own IShellView.
401 * Look there for some clues on what to do here.
404 typedef HRESULT (CALLBACK *SHELLVIEWPROC)(DWORD dwUserParam,LPSHELLFOLDER psf,
405 HWND hwnd,UINT uMsg,UINT wParam,LPARAM lParam);
407 /* NF valid values for the "viewmode" item of the SHELLTEMPLATE*/
408 #define NF_INHERITVIEW 0x0000
409 #define NF_LOCALVIEW 0x0001
411 typedef struct _SHELLVIEWDATA /* idl */
412 { DWORD dwSize;
413 LPSHELLFOLDER pShellFolder;
414 DWORD dwUserParam;
415 LPCITEMIDLIST pidl;
416 DWORD v3; /* always 0 */
417 SHELLVIEWPROC pCallBack;
418 DWORD viewmode; /* NF_* enum */
419 } SHELLVIEWDATA, * LPSHELLVIEWDATA;
421 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
423 /**********************************************************************
424 * SHGetSetSettings ()
427 typedef struct
429 BOOL fShowAllObjects : 1;
430 BOOL fShowExtensions : 1;
431 BOOL fNoConfirmRecycle : 1;
433 BOOL fShowSysFiles : 1;
434 BOOL fShowCompColor : 1;
435 BOOL fDoubleClickInWebView : 1;
436 BOOL fDesktopHTML : 1;
437 BOOL fWin95Classic : 1;
438 BOOL fDontPrettyPath : 1;
439 BOOL fShowAttribCol : 1;
440 BOOL fMapNetDrvBtn : 1;
441 BOOL fShowInfoTip : 1;
442 BOOL fHideIcons : 1;
443 BOOL fWebView : 1;
444 BOOL fFilter : 1;
445 BOOL fShowSuperHidden : 1;
446 BOOL fNoNetCrawling : 1;
448 DWORD dwWin95Unused;
449 UINT uWin95Unused;
450 LONG lParamSort;
451 int iSortDirection;
452 UINT version;
453 UINT uNotUsed;
454 BOOL fSepProcess: 1;
455 BOOL fStartPanelOn: 1;
456 BOOL fShowStartPage: 1;
457 UINT fSpareFlags : 13;
458 } SHELLSTATE, *LPSHELLSTATE;
460 /**********************************************************************
461 * SHGetSettings ()
463 typedef struct
464 { BOOL fShowAllObjects : 1;
465 BOOL fShowExtensions : 1;
466 BOOL fNoConfirmRecycle : 1;
467 BOOL fShowSysFiles : 1;
469 BOOL fShowCompColor : 1;
470 BOOL fDoubleClickInWebView : 1;
471 BOOL fDesktopHTML : 1;
472 BOOL fWin95Classic : 1;
474 BOOL fDontPrettyPath : 1;
475 BOOL fShowAttribCol : 1;
476 BOOL fMapNetDrvBtn : 1;
477 BOOL fShowInfoTip : 1;
479 BOOL fHideIcons : 1;
480 UINT fRestFlags : 3;
481 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
483 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
485 #define SSF_SHOWALLOBJECTS 0x0001
486 #define SSF_SHOWEXTENSIONS 0x0002
487 #define SSF_SHOWCOMPCOLOR 0x0008
488 #define SSF_SHOWSYSFILES 0x0020
489 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
490 #define SSF_SHOWATTRIBCOL 0x0100
491 #define SSF_DESKTOPHTML 0x0200
492 #define SSF_WIN95CLASSIC 0x0400
493 #define SSF_DONTPRETTYPATH 0x0800
494 #define SSF_SHOWINFOTIP 0x2000
495 #define SSF_MAPNETDRVBUTTON 0x1000
496 #define SSF_NOCONFIRMRECYCLE 0x8000
497 #define SSF_HIDEICONS 0x4000
499 /**********************************************************************
500 * SHChangeNotify
502 #define SHCNE_RENAMEITEM 0x00000001
503 #define SHCNE_CREATE 0x00000002
504 #define SHCNE_DELETE 0x00000004
505 #define SHCNE_MKDIR 0x00000008
506 #define SHCNE_RMDIR 0x00000010
507 #define SHCNE_MEDIAINSERTED 0x00000020
508 #define SHCNE_MEDIAREMOVED 0x00000040
509 #define SHCNE_DRIVEREMOVED 0x00000080
510 #define SHCNE_DRIVEADD 0x00000100
511 #define SHCNE_NETSHARE 0x00000200
512 #define SHCNE_NETUNSHARE 0x00000400
513 #define SHCNE_ATTRIBUTES 0x00000800
514 #define SHCNE_UPDATEDIR 0x00001000
515 #define SHCNE_UPDATEITEM 0x00002000
516 #define SHCNE_SERVERDISCONNECT 0x00004000
517 #define SHCNE_UPDATEIMAGE 0x00008000
518 #define SHCNE_DRIVEADDGUI 0x00010000
519 #define SHCNE_RENAMEFOLDER 0x00020000
520 #define SHCNE_FREESPACE 0x00040000
522 #define SHCNE_EXTENDED_EVENT 0x04000000
523 #define SHCNE_ASSOCCHANGED 0x08000000
524 #define SHCNE_DISKEVENTS 0x0002381F
525 #define SHCNE_GLOBALEVENTS 0x0C0581E0
526 #define SHCNE_ALLEVENTS 0x7FFFFFFF
527 #define SHCNE_INTERRUPT 0x80000000
529 #define SHCNEE_ORDERCHANGED 0x00000002
531 #define SHCNF_IDLIST 0x0000
532 #define SHCNF_PATHA 0x0001
533 #define SHCNF_PRINTERA 0x0002
534 #define SHCNF_DWORD 0x0003
535 #define SHCNF_PATHW 0x0005
536 #define SHCNF_PRINTERW 0x0006
537 #define SHCNF_TYPE 0x00FF
538 #define SHCNF_FLUSH 0x1000
539 #define SHCNF_FLUSHNOWAIT 0x2000
541 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
543 /****************************************************************************
544 * SHCreateDirectory API
546 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
547 DWORD WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
548 DWORD WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
550 /****************************************************************************
551 * SHGetSpecialFolderLocation API
553 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
554 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
556 #define CSIDL_DESKTOP 0x0000
557 #define CSIDL_INTERNET 0x0001
558 #define CSIDL_PROGRAMS 0x0002
559 #define CSIDL_CONTROLS 0x0003
560 #define CSIDL_PRINTERS 0x0004
561 #define CSIDL_PERSONAL 0x0005
562 #define CSIDL_FAVORITES 0x0006
563 #define CSIDL_STARTUP 0x0007
564 #define CSIDL_RECENT 0x0008
565 #define CSIDL_SENDTO 0x0009
566 #define CSIDL_BITBUCKET 0x000a
567 #define CSIDL_STARTMENU 0x000b
568 #define CSIDL_MYDOCUMENTS 0x000c
569 #define CSIDL_MYMUSIC 0x000d
570 #define CSIDL_MYVIDEO 0x000e
571 #define CSIDL_DESKTOPDIRECTORY 0x0010
572 #define CSIDL_DRIVES 0x0011
573 #define CSIDL_NETWORK 0x0012
574 #define CSIDL_NETHOOD 0x0013
575 #define CSIDL_FONTS 0x0014
576 #define CSIDL_TEMPLATES 0x0015
577 #define CSIDL_COMMON_STARTMENU 0x0016
578 #define CSIDL_COMMON_PROGRAMS 0X0017
579 #define CSIDL_COMMON_STARTUP 0x0018
580 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
581 #define CSIDL_APPDATA 0x001a
582 #define CSIDL_PRINTHOOD 0x001b
583 #define CSIDL_LOCAL_APPDATA 0x001c
584 #define CSIDL_ALTSTARTUP 0x001d
585 #define CSIDL_COMMON_ALTSTARTUP 0x001e
586 #define CSIDL_COMMON_FAVORITES 0x001f
587 #define CSIDL_INTERNET_CACHE 0x0020
588 #define CSIDL_COOKIES 0x0021
589 #define CSIDL_HISTORY 0x0022
590 #define CSIDL_COMMON_APPDATA 0x0023
591 #define CSIDL_WINDOWS 0x0024
592 #define CSIDL_SYSTEM 0x0025
593 #define CSIDL_PROGRAM_FILES 0x0026
594 #define CSIDL_MYPICTURES 0x0027
595 #define CSIDL_PROFILE 0x0028
596 #define CSIDL_SYSTEMX86 0x0029
597 #define CSIDL_PROGRAM_FILESX86 0x002a
598 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
599 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
600 #define CSIDL_COMMON_TEMPLATES 0x002d
601 #define CSIDL_COMMON_DOCUMENTS 0x002e
602 #define CSIDL_COMMON_ADMINTOOLS 0x002f
603 #define CSIDL_ADMINTOOLS 0x0030
604 #define CSIDL_CONNECTIONS 0x0031
605 #define CSIDL_COMMON_MUSIC 0x0035
606 #define CSIDL_COMMON_PICTURES 0x0036
607 #define CSIDL_COMMON_VIDEO 0x0037
608 #define CSIDL_RESOURCES 0x0038
609 #define CSIDL_RESOURCES_LOCALIZED 0x0039
610 #define CSIDL_COMMON_OEM_LINKS 0x003a
611 #define CSIDL_CDBURN_AREA 0x003b
612 #define CSIDL_COMPUTERSNEARME 0x003d
613 #define CSIDL_PROFILES 0x003e
614 #define CSIDL_FOLDER_MASK 0x00ff
615 #define CSIDL_FLAG_PER_USER_INIT 0x0800
616 #define CSIDL_FLAG_NO_ALIAS 0x1000
617 #define CSIDL_FLAG_DONT_VERIFY 0x4000
618 #define CSIDL_FLAG_CREATE 0x8000
620 #define CSIDL_FLAG_MASK 0xff00
622 /****************************************************************************
623 * SHGetDesktopFolder API
625 DWORD WINAPI SHGetDesktopFolder(IShellFolder * *);
627 /****************************************************************************
628 * SHBindToParent API
630 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
632 /****************************************************************************
633 * SHDefExtractIcon API
635 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
636 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
637 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
638 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
639 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
642 * DROPFILES for CF_HDROP and CF_PRINTERS
644 typedef struct _DROPFILES
646 DWORD pFiles;
647 POINT pt;
648 BOOL fNC;
649 BOOL fWide;
650 } DROPFILES, *LPDROPFILES;
652 #include <poppack.h>
654 #ifdef __cplusplus
655 } /* extern "C" */
656 #endif /* defined(__cplusplus) */
658 #endif /* __WINE_SHLOBJ_H */