ReactOS  0.4.15-dev-4916-gd519b11
CShellDispatch.h
Go to the documentation of this file.
1 /*
2  * PROJECT: shell32
3  * LICENSE: LGPL-2.1+ (https://spdx.org/licenses/LGPL-2.1+)
4  * PURPOSE: IShellDispatch implementation
5  * COPYRIGHT: Copyright 2015-2018 Mark Jansen (mark.jansen@reactos.org)
6  */
7 
8 #ifndef _SHELLDISPATCH_H_
9 #define _SHELLDISPATCH_H_
10 
11 #undef ShellExecute
12 
14  public CComCoClass<CShellDispatch, &CLSID_Shell>,
15  public CComObjectRootEx<CComMultiThreadModelNoCS>,
16  public IDispatchImpl<IShellDispatch4, &IID_IShellDispatch4>,
17  public IObjectSafety,
18  public IObjectWithSite
19 {
20 private:
21 
22 public:
25 
27 
28  // *** IShellDispatch methods ***
31  virtual HRESULT STDMETHODCALLTYPE NameSpace(VARIANT vDir, Folder **ppsdf);
32  virtual HRESULT STDMETHODCALLTYPE BrowseForFolder(LONG Hwnd, BSTR Title, LONG Options, VARIANT RootFolder, Folder **ppsdf);
34  virtual HRESULT STDMETHODCALLTYPE Open(VARIANT vDir);
47  virtual HRESULT STDMETHODCALLTYPE Help();
52 
53  // *** IShellDispatch2 methods ***
58  virtual HRESULT STDMETHODCALLTYPE ServiceStart(BSTR service, VARIANT persistent, VARIANT *ret);
59  virtual HRESULT STDMETHODCALLTYPE ServiceStop(BSTR service, VARIANT persistent, VARIANT *ret);
60  virtual HRESULT STDMETHODCALLTYPE IsServiceRunning(BSTR service, VARIANT *running);
63 
64  // *** IShellDispatch3 methods ***
66 
67  // *** IShellDispatch4 methods ***
72 
73  // *** IObjectSafety methods ***
74  virtual HRESULT STDMETHODCALLTYPE GetInterfaceSafetyOptions(REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions);
75  virtual HRESULT STDMETHODCALLTYPE SetInterfaceSafetyOptions(REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions);
76 
77  // *** IObjectWithSite methods ***
78  virtual HRESULT STDMETHODCALLTYPE SetSite(IUnknown *pUnkSite);
79  virtual HRESULT STDMETHODCALLTYPE GetSite(REFIID riid, PVOID *ppvSite);
80 
81 
84 
86 
88  COM_INTERFACE_ENTRY_IID(IID_IShellDispatch4, IShellDispatch4)
89  COM_INTERFACE_ENTRY_IID(IID_IShellDispatch3, IShellDispatch3)
90  COM_INTERFACE_ENTRY_IID(IID_IShellDispatch2, IShellDispatch2)
91  COM_INTERFACE_ENTRY_IID(IID_IShellDispatch, IShellDispatch)
93  COM_INTERFACE_ENTRY_IID(IID_IObjectSafety, IObjectSafety)
96 };
97 
98 #endif /* _SHELLDISPATCH_H_ */
virtual HRESULT STDMETHODCALLTYPE ToggleDesktop()
virtual HRESULT STDMETHODCALLTYPE GetInterfaceSafetyOptions(REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions)
virtual HRESULT STDMETHODCALLTYPE TrayProperties()
virtual HRESULT STDMETHODCALLTYPE UndoMinimizeALL()
Definition: pdh_main.c:93
#define REFIID
Definition: guiddef.h:118
virtual HRESULT STDMETHODCALLTYPE ShutdownWindows()
GLuint64EXT * result
Definition: glext.h:11304
REFIID riid
Definition: precomp.h:44
virtual HRESULT STDMETHODCALLTYPE ShellExecute(BSTR file, VARIANT args, VARIANT dir, VARIANT op, VARIANT show)
virtual HRESULT STDMETHODCALLTYPE FindFiles()
virtual HRESULT STDMETHODCALLTYPE ServiceStart(BSTR service, VARIANT persistent, VARIANT *ret)
virtual HRESULT STDMETHODCALLTYPE ShowBrowserBar(BSTR clsid, VARIANT show, VARIANT *ret)
virtual HRESULT STDMETHODCALLTYPE CanStartStopService(BSTR service, VARIANT *ret)
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:612
OLECHAR * BSTR
Definition: compat.h:2152
Definition: match.c:390
virtual HRESULT STDMETHODCALLTYPE ControlPanelItem(BSTR szDir)
short VARIANT_BOOL
Definition: compat.h:2149
virtual HRESULT STDMETHODCALLTYPE MinimizeAll()
WDF_INTERRUPT_POLICY policy
virtual HRESULT STDMETHODCALLTYPE TileHorizontally()
virtual HRESULT STDMETHODCALLTYPE AddToRecent(VARIANT file, BSTR category)
virtual HRESULT STDMETHODCALLTYPE FindComputer()
long LONG
Definition: pedump.c:60
virtual HRESULT STDMETHODCALLTYPE IsRestricted(BSTR group, BSTR restriction, LONG *value)
HRESULT Initialize()
virtual HRESULT STDMETHODCALLTYPE Help()
unsigned int dir
Definition: maze.c:112
virtual HRESULT STDMETHODCALLTYPE IsServiceRunning(BSTR service, VARIANT *running)
GLboolean GLuint group
Definition: glext.h:11120
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:542
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
Definition: wdfdevice.h:3531
static const WCHAR Title[]
Definition: oid.c:1259
virtual HRESULT STDMETHODCALLTYPE Windows(IDispatch **ppid)
virtual HRESULT STDMETHODCALLTYPE SetSite(IUnknown *pUnkSite)
LONG HRESULT
Definition: typedefs.h:79
virtual HRESULT STDMETHODCALLTYPE get_Parent(IDispatch **ppid)
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
const IID IID_IObjectWithSite
unsigned long DWORD
Definition: ntddk_ex.h:95
UINT op
Definition: effect.c:236
virtual HRESULT STDMETHODCALLTYPE ServiceStop(BSTR service, VARIANT persistent, VARIANT *ret)
const GUID IID_IDispatch
int ret
REFCLSID clsid
Definition: msctf.c:82
virtual HRESULT STDMETHODCALLTYPE NameSpace(VARIANT vDir, Folder **ppsdf)
virtual HRESULT STDMETHODCALLTYPE BrowseForFolder(LONG Hwnd, BSTR Title, LONG Options, VARIANT RootFolder, Folder **ppsdf)
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:606
virtual HRESULT STDMETHODCALLTYPE FindPrinter(BSTR name, BSTR location, BSTR model)
virtual HRESULT STDMETHODCALLTYPE SetInterfaceSafetyOptions(REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions)
virtual HRESULT STDMETHODCALLTYPE get_Application(IDispatch **ppid)
virtual HRESULT STDMETHODCALLTYPE Open(VARIANT vDir)
virtual HRESULT STDMETHODCALLTYPE TileVertically()
#define IDR_SHELL
Definition: shresdef.h:877
virtual HRESULT STDMETHODCALLTYPE FileRun()
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:562
virtual HRESULT STDMETHODCALLTYPE ExplorerPolicy(BSTR policy, VARIANT *value)
virtual HRESULT STDMETHODCALLTYPE Suspend()
virtual HRESULT STDMETHODCALLTYPE WindowsSecurity()
virtual HRESULT STDMETHODCALLTYPE RefreshMenu()
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:640
virtual HRESULT STDMETHODCALLTYPE GetSetting(LONG setting, VARIANT_BOOL *result)
Definition: name.c:38
virtual HRESULT STDMETHODCALLTYPE GetSite(REFIID riid, PVOID *ppvSite)
virtual HRESULT STDMETHODCALLTYPE SetTime()
#define END_COM_MAP()
Definition: atlcom.h:553
virtual HRESULT STDMETHODCALLTYPE GetSystemInformation(BSTR name, VARIANT *ret)
virtual HRESULT STDMETHODCALLTYPE Explore(VARIANT vDir)
virtual HRESULT STDMETHODCALLTYPE CascadeWindows()
virtual HRESULT STDMETHODCALLTYPE EjectPC()
Definition: fci.c:126