Removed useless #ifdef WINELIB.
[wine/gsoc_dplay.git] / include / shlobj.h
bloba880619b35eb4dc5f59048ec0cdbf4cd2e5b5d70
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)
41 /*****************************************************************************
42 * Predeclare interfaces
44 typedef struct IShellIcon IShellIcon, *LPSHELLICON;
47 /*****************************************************************************
48 * IContextMenu interface
52 /* DATAOBJECT_InitShellIDList*/
53 #define CFSTR_SHELLIDLIST "Shell IDList Array" /* CF_IDLIST */
55 extern UINT cfShellIDList;
57 typedef struct
58 { UINT cidl;
59 UINT aoffset[1];
60 } CIDA, *LPIDA;
62 #define CFSTR_SHELLIDLISTOFFSET "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
63 #define CFSTR_NETRESOURCES "Net Resource" /* CF_NETRESOURCE */
65 /* DATAOBJECT_InitFileGroupDesc */
66 #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
67 extern UINT cfFileGroupDesc;
69 #define CFSTR_FILEDESCRIPTORW "FileGroupDescriptorW" /* CF_FILEGROUPDESCRIPTORW */
71 /* DATAOBJECT_InitFileContents*/
72 #define CFSTR_FILECONTENTS "FileContents" /* CF_FILECONTENTS */
73 extern UINT cfFileContents;
75 #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
76 #define CFSTR_FILENAMEW "FileNameW" /* CF_FILENAMEW */
77 #define CFSTR_PRINTERGROUP "PrinterFriendlyName" /* CF_PRINTERS */
78 #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
79 #define CFSTR_FILENAMEMAPW "FileNameMapW" /* CF_FILENAMEMAPW */
80 #define CFSTR_SHELLURL "UniformResourceLocator"
81 #define CFSTR_PREFERREDDROPEFFECT "Preferred DropEffect"
82 #define CFSTR_PERFORMEDDROPEFFECT "Performed DropEffect"
83 #define CFSTR_PASTESUCCEEDED "Paste Succeeded"
84 #define CFSTR_INDRAGLOOP "InShellDragLoop"
86 #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
89 /************************************************************************
90 * IShellView interface
93 typedef GUID SHELLVIEWID;
94 #define SV_CLASS_NAME ("SHELLDLL_DefView")
96 #define FCIDM_SHVIEWFIRST 0x0000
97 /* undocumented */
98 #define FCIDM_SHVIEW_ARRANGE 0x7001
99 #define FCIDM_SHVIEW_DELETE 0x7011
100 #define FCIDM_SHVIEW_PROPERTIES 0x7013
101 #define FCIDM_SHVIEW_CUT 0x7018
102 #define FCIDM_SHVIEW_COPY 0x7019
103 #define FCIDM_SHVIEW_INSERT 0x701A
104 #define FCIDM_SHVIEW_UNDO 0x701B
105 #define FCIDM_SHVIEW_INSERTLINK 0x701C
106 #define FCIDM_SHVIEW_SELECTALL 0x7021
107 #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
109 #define FCIDM_SHVIEW_BIGICON 0x7029
110 #define FCIDM_SHVIEW_SMALLICON 0x702A
111 #define FCIDM_SHVIEW_LISTVIEW 0x702B
112 #define FCIDM_SHVIEW_REPORTVIEW 0x702C
113 /* 0x7030-0x703f are used by the shellbrowser */
114 #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
115 #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
117 #define FCIDM_SHVIEW_HELP 0x7041
118 #define FCIDM_SHVIEW_RENAME 0x7050
119 #define FCIDM_SHVIEW_CREATELINK 0x7051
120 #define FCIDM_SHVIEW_NEWLINK 0x7052
121 #define FCIDM_SHVIEW_NEWFOLDER 0x7053
123 #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
124 #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
125 #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
127 #define FCIDM_SHVIEWLAST 0x7fff
128 #define FCIDM_BROWSERFIRST 0xA000
129 /* undocumented toolbar items from stddlg's*/
130 #define FCIDM_TB_UPFOLDER 0xA001
131 #define FCIDM_TB_NEWFOLDER 0xA002
132 #define FCIDM_TB_SMALLICON 0xA003
133 #define FCIDM_TB_REPORTVIEW 0xA004
134 #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
136 #define FCIDM_BROWSERLAST 0xbf00
137 #define FCIDM_GLOBALFIRST 0x8000
138 #define FCIDM_GLOBALLAST 0x9fff
141 * Global submenu IDs and separator IDs
143 #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
144 #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
145 #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
146 #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
147 #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
148 #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
149 #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
150 #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
151 #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
152 #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
154 /* control IDs known to the view */
155 #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
156 #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
159 /****************************************************************************
160 * IShellIcon interface
163 #define INTERFACE IShellIcon
164 #define IShellIcon_METHODS \
165 IUnknown_METHODS \
166 STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
167 ICOM_DEFINE(IShellIcon, IUnknown)
168 #undef INTERFACE
170 #ifdef COBJMACROS
171 /*** IUnknown methods ***/
172 #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
173 #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
174 #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
175 /*** IShellIcon methods ***/
176 #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
177 #endif
179 /****************************************************************************
180 * SHAddToRecentDocs API
182 #define SHARD_PIDL 0x00000001L
183 #define SHARD_PATHA 0x00000002L
184 #define SHARD_PATHW 0x00000003L
185 #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
187 DWORD WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv);
189 /****************************************************************************
190 * SHBrowseForFolder API
192 typedef INT (CALLBACK *BFFCALLBACK)(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
194 typedef struct tagBROWSEINFOA {
195 HWND hwndOwner;
196 LPCITEMIDLIST pidlRoot;
197 LPSTR pszDisplayName;
198 LPCSTR lpszTitle;
199 UINT ulFlags;
200 BFFCALLBACK lpfn;
201 LPARAM lParam;
202 INT iImage;
203 } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
205 typedef struct tagBROWSEINFOW {
206 HWND hwndOwner;
207 LPCITEMIDLIST pidlRoot;
208 LPWSTR pszDisplayName;
209 LPCWSTR lpszTitle;
210 UINT ulFlags;
211 BFFCALLBACK lpfn;
212 LPARAM lParam;
213 INT iImage;
214 } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
216 #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
217 #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
218 #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
220 /* Browsing for directory. */
221 #define BIF_RETURNONLYFSDIRS 0x0001
222 #define BIF_DONTGOBELOWDOMAIN 0x0002
223 #define BIF_STATUSTEXT 0x0004
224 #define BIF_RETURNFSANCESTORS 0x0008
225 #define BIF_EDITBOX 0x0010
226 #define BIF_VALIDATE 0x0020
227 #define BIF_NEWDIALOGSTYLE 0x0040
229 #define BIF_BROWSEFORCOMPUTER 0x1000
230 #define BIF_BROWSEFORPRINTER 0x2000
231 #define BIF_BROWSEINCLUDEFILES 0x4000
233 /* message from browser */
234 #define BFFM_INITIALIZED 1
235 #define BFFM_SELCHANGED 2
236 #define BFFM_VALIDATEFAILEDA 3 /* lParam:szPath ret:1(cont),0(EndDialog) */
237 #define BFFM_VALIDATEFAILEDW 4 /* lParam:wzPath ret:1(cont),0(EndDialog) */
239 /* messages to browser */
240 #define BFFM_SETSTATUSTEXTA (WM_USER+100)
241 #define BFFM_ENABLEOK (WM_USER+101)
242 #define BFFM_SETSELECTIONA (WM_USER+102)
243 #define BFFM_SETSELECTIONW (WM_USER+103)
244 #define BFFM_SETSTATUSTEXTW (WM_USER+104)
245 #define BFFM_SETOKTEXT (WM_USER+105)
246 #define BFFM_SETEXPANDED (WM_USER+106)
248 LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
249 LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
250 #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
251 #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
252 #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
253 #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
255 /****************************************************************************
256 * SHGetDataFromIDList API
258 #define SHGDFIL_FINDDATA 1
259 #define SHGDFIL_NETRESOURCE 2
260 #define SHGDFIL_DESCRIPTIONID 3
262 #define SHDID_ROOT_REGITEM 1
263 #define SHDID_FS_FILE 2
264 #define SHDID_FS_DIRECTORY 3
265 #define SHDID_FS_OTHER 4
266 #define SHDID_COMPUTER_DRIVE35 5
267 #define SHDID_COMPUTER_DRIVE525 6
268 #define SHDID_COMPUTER_REMOVABLE 7
269 #define SHDID_COMPUTER_FIXED 8
270 #define SHDID_COMPUTER_NETDRIVE 9
271 #define SHDID_COMPUTER_CDROM 10
272 #define SHDID_COMPUTER_RAMDISK 11
273 #define SHDID_COMPUTER_OTHER 12
274 #define SHDID_NET_DOMAIN 13
275 #define SHDID_NET_SERVER 14
276 #define SHDID_NET_SHARE 15
277 #define SHDID_NET_RESTOFNET 16
278 #define SHDID_NET_OTHER 17
279 #define SHDID_COMPUTER_IMAGING 18
280 #define SHDID_COMPUTER_AUDIO 19
281 #define SHDID_COMPUTER_SHAREDDOCS 20
283 typedef struct _SHDESCRIPTIONID
284 { DWORD dwDescriptionId;
285 CLSID clsid;
286 } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
288 HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
289 HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
290 #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
292 BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
293 BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
294 #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
296 /****************************************************************************
297 * shlview structures
301 * IShellFolderViewCallback Callback
302 * This "callback" is called by the shells default IShellView implementation (that
303 * we got using SHCreateShellViewEx()), to notify us of the various things that
304 * are happening to the shellview (and ask for things too).
306 * You don't have to support anything here - anything you don't want to
307 * handle, the shell will do itself if you just return E_NOTIMPL. This parameters
308 * that the shell passes to this function are entirely undocumented.
310 * HOWEVER, as the cabview sample as originally written used this callback, the
311 * writers implemented the callback mechanism on top of their own IShellView.
312 * Look there for some clues on what to do here.
315 typedef HRESULT (CALLBACK *SHELLVIEWPROC)(DWORD dwUserParam,LPSHELLFOLDER psf,
316 HWND hwnd,UINT uMsg,UINT wParam,LPARAM lParam);
318 /* NF valid values for the "viewmode" item of the SHELLTEMPLATE*/
319 #define NF_INHERITVIEW 0x0000
320 #define NF_LOCALVIEW 0x0001
322 typedef struct _SHELLVIEWDATA /* idl */
323 { DWORD dwSize;
324 LPSHELLFOLDER pShellFolder;
325 DWORD dwUserParam;
326 LPCITEMIDLIST pidl;
327 DWORD v3; /* always 0 */
328 SHELLVIEWPROC pCallBack;
329 DWORD viewmode; /* NF_* enum */
330 } SHELLVIEWDATA, * LPSHELLVIEWDATA;
332 HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
334 /**********************************************************************
335 * SHGetSetSettings ()
338 typedef struct
340 BOOL fShowAllObjects : 1;
341 BOOL fShowExtensions : 1;
342 BOOL fNoConfirmRecycle : 1;
344 BOOL fShowSysFiles : 1;
345 BOOL fShowCompColor : 1;
346 BOOL fDoubleClickInWebView : 1;
347 BOOL fDesktopHTML : 1;
348 BOOL fWin95Classic : 1;
349 BOOL fDontPrettyPath : 1;
350 BOOL fShowAttribCol : 1;
351 BOOL fMapNetDrvBtn : 1;
352 BOOL fShowInfoTip : 1;
353 BOOL fHideIcons : 1;
354 BOOL fWebView : 1;
355 BOOL fFilter : 1;
356 BOOL fShowSuperHidden : 1;
357 BOOL fNoNetCrawling : 1;
359 DWORD dwWin95Unused;
360 UINT uWin95Unused;
361 LONG lParamSort;
362 int iSortDirection;
363 UINT version;
364 UINT uNotUsed;
365 BOOL fSepProcess: 1;
366 BOOL fStartPanelOn: 1;
367 BOOL fShowStartPage: 1;
368 UINT fSpareFlags : 13;
369 } SHELLSTATE, *LPSHELLSTATE;
371 /**********************************************************************
372 * SHGetSettings ()
374 typedef struct
375 { BOOL fShowAllObjects : 1;
376 BOOL fShowExtensions : 1;
377 BOOL fNoConfirmRecycle : 1;
378 BOOL fShowSysFiles : 1;
380 BOOL fShowCompColor : 1;
381 BOOL fDoubleClickInWebView : 1;
382 BOOL fDesktopHTML : 1;
383 BOOL fWin95Classic : 1;
385 BOOL fDontPrettyPath : 1;
386 BOOL fShowAttribCol : 1;
387 BOOL fMapNetDrvBtn : 1;
388 BOOL fShowInfoTip : 1;
390 BOOL fHideIcons : 1;
391 UINT fRestFlags : 3;
392 } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
394 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
396 #define SSF_SHOWALLOBJECTS 0x0001
397 #define SSF_SHOWEXTENSIONS 0x0002
398 #define SSF_SHOWCOMPCOLOR 0x0008
399 #define SSF_SHOWSYSFILES 0x0020
400 #define SSF_DOUBLECLICKINWEBVIEW 0x0080
401 #define SSF_SHOWATTRIBCOL 0x0100
402 #define SSF_DESKTOPHTML 0x0200
403 #define SSF_WIN95CLASSIC 0x0400
404 #define SSF_DONTPRETTYPATH 0x0800
405 #define SSF_SHOWINFOTIP 0x2000
406 #define SSF_MAPNETDRVBUTTON 0x1000
407 #define SSF_NOCONFIRMRECYCLE 0x8000
408 #define SSF_HIDEICONS 0x4000
410 /****************************************************************************
411 * SHRestricted API
413 typedef enum RESTRICTIONS
415 REST_NONE = 0x00000000,
416 REST_NORUN = 0x00000001,
417 REST_NOCLOSE = 0x00000002,
418 REST_NOSAVESET = 0x00000004,
419 REST_NOFILEMENU = 0x00000008,
420 REST_NOSETFOLDERS = 0x00000010,
421 REST_NOSETTASKBAR = 0x00000020,
422 REST_NODESKTOP = 0x00000040,
423 REST_NOFIND = 0x00000080,
424 REST_NODRIVES = 0x00000100,
425 REST_NODRIVEAUTORUN = 0x00000200,
426 REST_NODRIVETYPEAUTORUN = 0x00000400,
427 REST_NONETHOOD = 0x00000800,
428 REST_STARTBANNER = 0x00001000,
429 REST_RESTRICTRUN = 0x00002000,
430 REST_NOPRINTERTABS = 0x00004000,
431 REST_NOPRINTERDELETE = 0x00008000,
432 REST_NOPRINTERADD = 0x00010000,
433 REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
434 REST_MYDOCSONNET = 0x00040000,
435 REST_NOEXITTODOS = 0x00080000,
436 REST_ENFORCESHELLEXTSECURITY = 0x00100000,
437 REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
438 REST_NOCOMMONGROUPS = 0x00400000,
439 REST_SEPARATEDESKTOPPROCESS = 0x00800000,
440 REST_NOWEB = 0x01000000,
441 REST_NOTRAYCONTEXTMENU = 0x02000000,
442 REST_NOVIEWCONTEXTMENU = 0x04000000,
443 REST_NONETCONNECTDISCONNECT = 0x08000000,
444 REST_STARTMENULOGOFF = 0x10000000,
445 REST_NOSETTINGSASSIST = 0x20000000,
446 REST_NOINTERNETICON = 0x40000001,
447 REST_NORECENTDOCSHISTORY,
448 REST_NORECENTDOCSMENU,
449 REST_NOACTIVEDESKTOP,
450 REST_NOACTIVEDESKTOPCHANGES,
451 REST_NOFAVORITESMENU,
452 REST_CLEARRECENTDOCSONEXIT,
453 REST_CLASSICSHELL,
454 REST_NOCUSTOMIZEWEBVIEW,
456 REST_NOHTMLWALLPAPER = 0x40000010,
457 REST_NOCHANGINGWALLPAPER,
458 REST_NODESKCOMP,
459 REST_NOADDDESKCOMP,
460 REST_NODELDESKCOMP,
461 REST_NOCLOSEDESKCOMP,
462 REST_NOCLOSE_DRAGDROPBAND,
463 REST_NOMOVINGBAND,
464 REST_NOEDITDESKCOMP,
465 REST_NORESOLVESEARCH,
466 REST_NORESOLVETRACK,
467 REST_FORCECOPYACLWITHFILE,
468 REST_NOLOGO3CHANNELNOTIFY,
469 REST_NOFORGETSOFTWAREUPDATE,
470 REST_NOSETACTIVEDESKTOP,
471 REST_NOUPDATEWINDOWS,
472 REST_NOCHANGESTARMENU, /* 0x40000020 */
473 REST_NOFOLDEROPTIONS,
474 REST_HASFINDCOMPUTERS,
475 REST_INTELLIMENUS,
476 REST_RUNDLGMEMCHECKBOX,
477 REST_ARP_ShowPostSetup,
478 REST_NOCSC,
479 REST_NOCONTROLPANEL,
480 REST_ENUMWORKGROUP,
481 REST_ARP_NOARP,
482 REST_ARP_NOREMOVEPAGE,
483 REST_ARP_NOADDPAGE,
484 REST_ARP_NOWINSETUPPAGE,
485 REST_GREYMSIADS,
486 REST_NOCHANGEMAPPEDDRIVELABEL,
487 REST_NOCHANGEMAPPEDDRIVECOMMENT,
488 REST_MaxRecentDocs, /* 0x40000030 */
489 REST_NONETWORKCONNECTIONS,
490 REST_FORCESTARTMENULOGOFF,
491 REST_NOWEBVIEW,
492 REST_NOCUSTOMIZETHISFOLDER,
493 REST_NOENCRYPTION,
495 REST_ALLOWFRENCHENCRYPTION, /* not documented */
497 REST_DONTSHOWSUPERHIDDEN,
498 REST_NOSHELLSEARCHBUTTON,
499 REST_NOHARDWARETAB,
500 REST_NORUNASINSTALLPROMPT,
501 REST_PROMPTRUNASINSTALLNETPATH,
502 REST_NOMANAGEMYCOMPUTERVERB,
503 REST_NORECENTDOCSNETHOOD,
504 REST_DISALLOWRUN,
505 REST_NOWELCOMESCREEN,
506 REST_RESTRICTCPL, /* 0x40000040 */
507 REST_DISALLOWCPL,
508 REST_NOSMBALLOONTIP,
509 REST_NOSMHELP,
510 REST_NOWINKEYS,
511 REST_NOENCRYPTONMOVE,
512 REST_NOLOCALMACHINERUN,
513 REST_NOCURRENTUSERRUN,
514 REST_NOLOCALMACHINERUNONCE,
515 REST_NOCURRENTUSERRUNONCE,
516 REST_FORCEACTIVEDESKTOPON,
517 REST_NOCOMPUTERSNEARME,
518 REST_NOVIEWONDRIVE,
519 REST_NONETCRAWL,
520 REST_NOSHAREDDOCUMENTS,
521 REST_NOSMMYDOCS,
522 REST_NOSMMYPICS, /* 0x40000050 */
523 REST_ALLOWBITBUCKDRIVES,
524 REST_NONLEGACYSHELLMODE,
525 REST_NOCONTROLPANELBARRICADE,
526 REST_NOSTARTPAGE,
527 REST_NOAUTOTRAYNOTIFY,
528 REST_NOTASKGROUPING,
529 REST_NOCDBURNING,
530 REST_MYCOMPNOPROP,
531 REST_MYDOCSNOPROP,
532 REST_NOSTARTPANEL,
533 REST_NODISPLAYAPPEARANCEPAGE,
534 REST_NOTHEMESTAB,
535 REST_NOVISUALSTYLECHOICE,
536 REST_NOSIZECHOICE,
537 REST_NOCOLORCHOICE,
538 REST_SETVISUALSTYLE, /* 0x40000060 */
539 REST_STARTRUNNOHOMEPATH,
540 REST_NOUSERNAMEINSTARTPANEL,
541 REST_NOMYCOMPUTERICON,
542 REST_NOSMNETWORKPLACES,
543 REST_NOSMPINNEDLIST,
544 REST_NOSMMYMUSIC,
545 REST_NOSMEJECTPC,
546 REST_NOSMMOREPROGRAMS,
547 REST_NOSMMFUPROGRAMS,
548 REST_NOTRAYITEMSDISPLAY,
549 REST_NOTOOLBARSONTASKBAR,
550 /* 0x4000006C
551 0x4000006D
552 0x4000006E */
553 REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
554 REST_HIDECLOCK, /* 0x40000070 */
555 REST_NOLOWDISKSPACECHECKS,
556 REST_NOENTIRENETWORK,
557 REST_NODESKTOPCLEANUP,
558 REST_BITBUCKNUKEONDELETE,
559 REST_BITBUCKCONFIRMDELETE,
560 REST_BITBUCKNOPROP,
561 REST_NODISPBACKGROUND,
562 REST_NODISPSCREENSAVEPG,
563 REST_NODISPSETTINGSPG,
564 REST_NODISPSCREENSAVEPREVIEW,
565 REST_NODISPLAYCPL,
566 REST_HIDERUNASVERB,
567 REST_NOTHUMBNAILCACHE,
568 REST_NOSTRCMPLOGICAL,
569 REST_NOPUBLISHWIZARD,
570 REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
571 REST_NOWEBSERVICES,
572 REST_ALLOWUNHASHEDWEBVIEW,
573 REST_ALLOWLEGACYWEBVIEW,
574 REST_REVERTWEBVIEWSECURITY,
576 REST_INHERITCONSOLEHANDLES = 0x40000086,
578 REST_NODISCONNECT = 0x41000001,
579 REST_NOSECURITY,
580 REST_NOFILEASSOCIATE, /* 0x41000003 */
581 } RESTRICTIONS;
583 DWORD WINAPI SHRestricted(RESTRICTIONS rest);
585 /****************************************************************************
586 * SHChangeNotify API
588 typedef struct _SHChangeNotifyEntry
590 LPCITEMIDLIST pidl;
591 BOOL fRecursive;
592 } SHChangeNotifyEntry;
594 #define SHCNE_RENAMEITEM 0x00000001
595 #define SHCNE_CREATE 0x00000002
596 #define SHCNE_DELETE 0x00000004
597 #define SHCNE_MKDIR 0x00000008
598 #define SHCNE_RMDIR 0x00000010
599 #define SHCNE_MEDIAINSERTED 0x00000020
600 #define SHCNE_MEDIAREMOVED 0x00000040
601 #define SHCNE_DRIVEREMOVED 0x00000080
602 #define SHCNE_DRIVEADD 0x00000100
603 #define SHCNE_NETSHARE 0x00000200
604 #define SHCNE_NETUNSHARE 0x00000400
605 #define SHCNE_ATTRIBUTES 0x00000800
606 #define SHCNE_UPDATEDIR 0x00001000
607 #define SHCNE_UPDATEITEM 0x00002000
608 #define SHCNE_SERVERDISCONNECT 0x00004000
609 #define SHCNE_UPDATEIMAGE 0x00008000
610 #define SHCNE_DRIVEADDGUI 0x00010000
611 #define SHCNE_RENAMEFOLDER 0x00020000
612 #define SHCNE_FREESPACE 0x00040000
614 #define SHCNE_EXTENDED_EVENT 0x04000000
615 #define SHCNE_ASSOCCHANGED 0x08000000
616 #define SHCNE_DISKEVENTS 0x0002381F
617 #define SHCNE_GLOBALEVENTS 0x0C0581E0
618 #define SHCNE_ALLEVENTS 0x7FFFFFFF
619 #define SHCNE_INTERRUPT 0x80000000
621 #define SHCNEE_ORDERCHANGED 0x0002L
622 #define SHCNEE_MSI_CHANGE 0x0004L
623 #define SHCNEE_MSI_UNINSTALL 0x0005L
625 #define SHCNF_IDLIST 0x0000
626 #define SHCNF_PATHA 0x0001
627 #define SHCNF_PRINTERA 0x0002
628 #define SHCNF_DWORD 0x0003
629 #define SHCNF_PATHW 0x0005
630 #define SHCNF_PRINTERW 0x0006
631 #define SHCNF_TYPE 0x00FF
632 #define SHCNF_FLUSH 0x1000
633 #define SHCNF_FLUSHNOWAIT 0x2000
635 #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
636 #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
638 void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
641 * IShellChangeNotify
643 typedef struct IShellChangeNotify IShellChangeNotify, *LPSHELLCHANGENOTIFY;
645 #define INTERFACE IShellChangeNotify
646 #define IShellChangeNotify_METHODS \
647 IUnknown_METHODS \
648 STDMETHOD(OnChange)(THIS_ LONG lEvent, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2) PURE;
650 ICOM_DEFINE(IShellChangeNotify, IUnknown)
651 #undef INTERFACE
653 #ifdef COBJMACROS
654 /*** IUnknown methods ***/
655 #define IShellChangeNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
656 #define IShellChangeNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
657 #define IShellChangeNotify_Release(p) (p)->lpVtbl->Release(p)
658 /*** IShellChangeNotify methods ***/
659 #define IShellChangeNotify_OnChange(p,a,b,c) (p)->lpVtbl->OnChange(p,a,b,c)
660 #endif
662 typedef struct _SHChangeDWORDAsIDList {
663 USHORT cb;
664 DWORD dwItem1;
665 DWORD dwItem2;
666 USHORT cbZero;
667 } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
669 typedef struct _SHChangeProductKeyAsIDList {
670 USHORT cb;
671 WCHAR wszProductKey[39];
672 USHORT cbZero;
673 } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
675 ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
676 int cEntries, SHChangeNotifyEntry *pshcne);
677 BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
678 HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
679 LPITEMIDLIST **pppidl, LONG *plEvent);
680 BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
682 HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
684 /****************************************************************************
685 * SHCreateDirectory API
687 DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
688 DWORD WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
689 DWORD WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
691 /****************************************************************************
692 * SHGetSpecialFolderLocation API
694 HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
695 HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
697 #define CSIDL_DESKTOP 0x0000
698 #define CSIDL_INTERNET 0x0001
699 #define CSIDL_PROGRAMS 0x0002
700 #define CSIDL_CONTROLS 0x0003
701 #define CSIDL_PRINTERS 0x0004
702 #define CSIDL_PERSONAL 0x0005
703 #define CSIDL_FAVORITES 0x0006
704 #define CSIDL_STARTUP 0x0007
705 #define CSIDL_RECENT 0x0008
706 #define CSIDL_SENDTO 0x0009
707 #define CSIDL_BITBUCKET 0x000a
708 #define CSIDL_STARTMENU 0x000b
709 #define CSIDL_MYDOCUMENTS 0x000c
710 #define CSIDL_MYMUSIC 0x000d
711 #define CSIDL_MYVIDEO 0x000e
712 #define CSIDL_DESKTOPDIRECTORY 0x0010
713 #define CSIDL_DRIVES 0x0011
714 #define CSIDL_NETWORK 0x0012
715 #define CSIDL_NETHOOD 0x0013
716 #define CSIDL_FONTS 0x0014
717 #define CSIDL_TEMPLATES 0x0015
718 #define CSIDL_COMMON_STARTMENU 0x0016
719 #define CSIDL_COMMON_PROGRAMS 0X0017
720 #define CSIDL_COMMON_STARTUP 0x0018
721 #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
722 #define CSIDL_APPDATA 0x001a
723 #define CSIDL_PRINTHOOD 0x001b
724 #define CSIDL_LOCAL_APPDATA 0x001c
725 #define CSIDL_ALTSTARTUP 0x001d
726 #define CSIDL_COMMON_ALTSTARTUP 0x001e
727 #define CSIDL_COMMON_FAVORITES 0x001f
728 #define CSIDL_INTERNET_CACHE 0x0020
729 #define CSIDL_COOKIES 0x0021
730 #define CSIDL_HISTORY 0x0022
731 #define CSIDL_COMMON_APPDATA 0x0023
732 #define CSIDL_WINDOWS 0x0024
733 #define CSIDL_SYSTEM 0x0025
734 #define CSIDL_PROGRAM_FILES 0x0026
735 #define CSIDL_MYPICTURES 0x0027
736 #define CSIDL_PROFILE 0x0028
737 #define CSIDL_SYSTEMX86 0x0029
738 #define CSIDL_PROGRAM_FILESX86 0x002a
739 #define CSIDL_PROGRAM_FILES_COMMON 0x002b
740 #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
741 #define CSIDL_COMMON_TEMPLATES 0x002d
742 #define CSIDL_COMMON_DOCUMENTS 0x002e
743 #define CSIDL_COMMON_ADMINTOOLS 0x002f
744 #define CSIDL_ADMINTOOLS 0x0030
745 #define CSIDL_CONNECTIONS 0x0031
746 #define CSIDL_COMMON_MUSIC 0x0035
747 #define CSIDL_COMMON_PICTURES 0x0036
748 #define CSIDL_COMMON_VIDEO 0x0037
749 #define CSIDL_RESOURCES 0x0038
750 #define CSIDL_RESOURCES_LOCALIZED 0x0039
751 #define CSIDL_COMMON_OEM_LINKS 0x003a
752 #define CSIDL_CDBURN_AREA 0x003b
753 #define CSIDL_COMPUTERSNEARME 0x003d
754 #define CSIDL_PROFILES 0x003e
755 #define CSIDL_FOLDER_MASK 0x00ff
756 #define CSIDL_FLAG_PER_USER_INIT 0x0800
757 #define CSIDL_FLAG_NO_ALIAS 0x1000
758 #define CSIDL_FLAG_DONT_VERIFY 0x4000
759 #define CSIDL_FLAG_CREATE 0x8000
761 #define CSIDL_FLAG_MASK 0xff00
763 /****************************************************************************
764 * SHGetDesktopFolder API
766 DWORD WINAPI SHGetDesktopFolder(IShellFolder * *);
768 /****************************************************************************
769 * SHBindToParent API
771 HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
773 /****************************************************************************
774 * SHDefExtractIcon API
776 HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
777 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
778 HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
779 HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
780 #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
783 * DROPFILES for CF_HDROP and CF_PRINTERS
785 typedef struct _DROPFILES
787 DWORD pFiles;
788 POINT pt;
789 BOOL fNC;
790 BOOL fWide;
791 } DROPFILES, *LPDROPFILES;
793 #include <poppack.h>
795 /*****************************************************************************
796 * IFileSystemBindData interface
798 #ifndef __IFileSystemBindData_FWD_DEFINED__
799 #define __IFileSystemBindData_FWD_DEFINED__
800 typedef struct IFileSystemBindData IFileSystemBindData;
801 #endif
803 typedef IFileSystemBindData *LPFILESYSTEMBINDDATA;
805 #ifndef __IFileSystemBindData_INTERFACE_DEFINED__
806 #define __IFileSystemBindData_INTERFACE_DEFINED__
808 DEFINE_GUID(IID_IFileSystemBindData, 0x01e18d10, 0x4d8b, 0x11d2, 0x85,0x5d, 0x00,0x60,0x08,0x05,0x93,0x67);
809 #if defined(__cplusplus) && !defined(CINTERFACE)
810 struct IFileSystemBindData : public IUnknown
812 virtual HRESULT STDMETHODCALLTYPE GetFindData(
813 WIN32_FIND_DATAW* pfd) = 0;
815 virtual HRESULT STDMETHODCALLTYPE SetFindData(
816 const WIN32_FIND_DATAW* pfd) = 0;
819 #else
820 typedef struct IFileSystemBindDataVtbl IFileSystemBindDataVtbl;
821 struct IFileSystemBindData {
822 const IFileSystemBindDataVtbl* lpVtbl;
824 struct IFileSystemBindDataVtbl {
825 ICOM_MSVTABLE_COMPAT_FIELDS
827 /*** IUnknown methods ***/
828 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
829 IFileSystemBindData* This,
830 REFIID riid,
831 void** ppvObject);
833 ULONG (STDMETHODCALLTYPE *AddRef)(
834 IFileSystemBindData* This);
836 ULONG (STDMETHODCALLTYPE *Release)(
837 IFileSystemBindData* This);
839 /*** IFileSystemBindData methods ***/
840 HRESULT (STDMETHODCALLTYPE *GetFindData)(
841 IFileSystemBindData* This,
842 WIN32_FIND_DATAW* pfd);
844 HRESULT (STDMETHODCALLTYPE *SetFindData)(
845 IFileSystemBindData* This,
846 const WIN32_FIND_DATAW* pfd);
850 /*** IUnknown methods ***/
851 #define IFileSystemBindData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
852 #define IFileSystemBindData_AddRef(p) (p)->lpVtbl->AddRef(p)
853 #define IFileSystemBindData_Release(p) (p)->lpVtbl->Release(p)
854 /*** IFileSystemBindData methods ***/
855 #define IFileSystemBindData_GetFindData(p,a) (p)->lpVtbl->GetFindData(p,a)
856 #define IFileSystemBindData_SetFindData(p,a) (p)->lpVtbl->SetFindData(p,a)
858 #endif
860 #define IFileSystemBindData_METHODS \
861 ICOM_MSVTABLE_COMPAT_FIELDS \
862 /*** IUnknown methods ***/ \
863 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
864 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
865 STDMETHOD_(ULONG,Release)(THIS) PURE; \
866 /*** IFileSystemBindData methods ***/ \
867 STDMETHOD_(HRESULT,GetFindData)(THIS_ WIN32_FIND_DATAW* pfd) PURE; \
868 STDMETHOD_(HRESULT,SetFindData)(THIS_ const WIN32_FIND_DATAW* pfd) PURE;
870 #endif /* __IFileSystemBindData_INTERFACE_DEFINED__ */
873 #ifdef __cplusplus
874 } /* extern "C" */
875 #endif /* defined(__cplusplus) */
877 #endif /* __WINE_SHLOBJ_H */