#include <CShellDispatch.h>
|
| CShellDispatch () |
|
| ~CShellDispatch () |
|
HRESULT | Initialize () |
|
STDMETHOD() | get_Application (IDispatch **ppid) override |
|
STDMETHOD() | get_Parent (IDispatch **ppid) override |
|
STDMETHOD() | NameSpace (VARIANT vDir, Folder **ppsdf) override |
|
STDMETHOD() | BrowseForFolder (LONG Hwnd, BSTR Title, LONG Options, VARIANT RootFolder, Folder **ppsdf) override |
|
STDMETHOD() | Windows (IDispatch **ppid) override |
|
STDMETHOD() | Open (VARIANT vDir) override |
|
STDMETHOD() | Explore (VARIANT vDir) override |
|
STDMETHOD() | MinimizeAll () override |
|
STDMETHOD() | UndoMinimizeALL () override |
|
STDMETHOD() | FileRun () override |
|
STDMETHOD() | CascadeWindows () override |
|
STDMETHOD() | TileVertically () override |
|
STDMETHOD() | TileHorizontally () override |
|
STDMETHOD() | ShutdownWindows () override |
|
STDMETHOD() | Suspend () override |
|
STDMETHOD() | EjectPC () override |
|
STDMETHOD() | SetTime () override |
|
STDMETHOD() | TrayProperties () override |
|
STDMETHOD() | Help () override |
|
STDMETHOD() | FindFiles () override |
|
STDMETHOD() | FindComputer () override |
|
STDMETHOD() | RefreshMenu () override |
|
STDMETHOD() | ControlPanelItem (BSTR szDir) override |
|
STDMETHOD() | IsRestricted (BSTR group, BSTR restriction, LONG *value) override |
|
STDMETHOD() | ShellExecute (BSTR file, VARIANT args, VARIANT dir, VARIANT op, VARIANT show) override |
|
STDMETHOD() | FindPrinter (BSTR name, BSTR location, BSTR model) override |
|
STDMETHOD() | GetSystemInformation (BSTR name, VARIANT *ret) override |
|
STDMETHOD() | ServiceStart (BSTR service, VARIANT persistent, VARIANT *ret) override |
|
STDMETHOD() | ServiceStop (BSTR service, VARIANT persistent, VARIANT *ret) override |
|
STDMETHOD() | IsServiceRunning (BSTR service, VARIANT *running) override |
|
STDMETHOD() | CanStartStopService (BSTR service, VARIANT *ret) override |
|
STDMETHOD() | ShowBrowserBar (BSTR clsid, VARIANT show, VARIANT *ret) override |
|
STDMETHOD() | AddToRecent (VARIANT file, BSTR category) override |
|
STDMETHOD() | WindowsSecurity () override |
|
STDMETHOD() | ToggleDesktop () override |
|
STDMETHOD() | ExplorerPolicy (BSTR policy, VARIANT *value) override |
|
STDMETHOD() | GetSetting (LONG setting, VARIANT_BOOL *result) override |
|
STDMETHOD() | GetInterfaceSafetyOptions (REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) override |
|
STDMETHOD() | SetInterfaceSafetyOptions (REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions) override |
|
STDMETHOD() | SetSite (IUnknown *pUnkSite) override |
|
STDMETHOD() | GetSite (REFIID riid, PVOID *ppvSite) override |
|
| ~CComObjectRootEx () |
|
ULONG | InternalAddRef () |
|
ULONG | InternalRelease () |
|
void | Lock () |
|
void | Unlock () |
|
HRESULT | _AtlInitialConstruct () |
|
| CComObjectRootBase () |
|
| ~CComObjectRootBase () |
|
void | SetVoid (void *) |
|
HRESULT | _AtlFinalConstruct () |
|
HRESULT | FinalConstruct () |
|
void | InternalFinalConstructAddRef () |
|
void | InternalFinalConstructRelease () |
|
void | FinalRelease () |
|
HRESULT | GetInterfaceSafetyOptions ([in] REFIID riid, [out] DWORD *pdwSupportedOptions, [out] DWORD *pdwEnabledOptions) |
|
HRESULT | SetInterfaceSafetyOptions ([in] REFIID riid, [in] DWORD dwOptionSetMask, [in] DWORD dwEnabledOptions) |
|
HRESULT | QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject) |
|
ULONG | AddRef () |
|
ULONG | Release () |
|
HRESULT | SetSite ([in] IUnknown *pUnkSite) |
|
HRESULT | GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite) |
|
Definition at line 13 of file CShellDispatch.h.
◆ CShellDispatch()
CShellDispatch::CShellDispatch |
( |
| ) |
|
◆ ~CShellDispatch()
CShellDispatch::~CShellDispatch |
( |
| ) |
|
◆ AddToRecent()
Definition at line 492 of file CShellDispatch.cpp.
493{
495
500 else
503}
HRESULT VariantToIdlist(VARIANT *var, LPITEMIDLIST *idlist)
void WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv)
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
◆ BrowseForFolder()
Definition at line 106 of file CShellDispatch.cpp.
107{
108 TRACE(
"(%p, %lu, %ls, %lu, %s, %p)\n",
this, Hwnd,
Title,
Options,
debugstr_variant(&RootFolder), ppsdf);
109
111
116
120
125
127}
static BOOL is_optional_argument(const VARIANT *arg)
EXTERN_C LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi)
static const WCHAR Title[]
static const char * debugstr_variant(const VARIANT *var)
#define BIF_NEWDIALOGSTYLE
ITEMIDLIST UNALIGNED * LPITEMIDLIST
PCIDLIST_ABSOLUTE pidlRoot
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
#define IID_PPV_ARG(Itype, ppType)
◆ CanStartStopService()
Definition at line 471 of file CShellDispatch.cpp.
472{
473 TRACE(
"(%p, %ls, %p)\n",
this, service,
ret);
474
475 SC_HANDLE hSvc;
482}
static HRESULT OpenServiceHelper(LPCWSTR name, DWORD access, SC_HANDLE &hSvc)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
◆ CascadeWindows()
◆ ControlPanelItem()
Definition at line 264 of file CShellDispatch.cpp.
265{
266 TRACE(
"(%p, %ls)\n",
this, szDir);
268}
BOOL WINAPI SHRunControlPanel(_In_ LPCWSTR commandLine, _In_opt_ HWND parent)
◆ EjectPC()
◆ Explore()
Definition at line 168 of file CShellDispatch.cpp.
169{
172}
static HRESULT OpenFolder(VARIANT vDir, LPCWSTR verb=NULL)
◆ ExplorerPolicy()
Definition at line 520 of file CShellDispatch.cpp.
521{
524}
WINBASEAPI _Check_return_ _Out_ AppPolicyProcessTerminationMethod * policy
◆ FileRun()
◆ FindComputer()
◆ FindFiles()
◆ FindPrinter()
◆ get_Application()
Definition at line 38 of file CShellDispatch.cpp.
39{
40 TRACE(
"(%p, %p)\n",
this, ppid);
41
42 if (!ppid)
44
45 *ppid = this;
47
49}
◆ get_Parent()
◆ GetInterfaceSafetyOptions()
◆ GetSetting()
Definition at line 529 of file CShellDispatch.cpp.
530{
532
537 {
547 }
549 {
550 *
result =
flag ? VARIANT_TRUE : VARIANT_FALSE;
552 }
553
555}
#define SSF_SERVERADMINUI
BOOL WINAPI IsOS(DWORD feature)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
#define SSF_DONTPRETTYPATH
#define SSF_NOCONFIRMRECYCLE
#define SSF_SHOWEXTENSIONS
#define SSF_SHOWSUPERHIDDEN
#define SSF_SHOWALLOBJECTS
◆ GetSite()
◆ GetSystemInformation()
Definition at line 319 of file CShellDispatch.cpp.
320{
322
324 {
330 }
331
339 if (os)
340 {
344 }
345
347}
VOID WINAPI GetSystemInfo(IN LPSYSTEM_INFO lpSystemInfo)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
WORD wProcessorArchitecture
◆ Help()
◆ Initialize()
HRESULT CShellDispatch::Initialize |
( |
| ) |
|
◆ IsRestricted()
Definition at line 272 of file CShellDispatch.cpp.
273{
275
280}
EXTERN_C DWORD WINAPI SHGetRestriction(LPCWSTR lpSubKey, LPCWSTR lpSubName, LPCWSTR lpValue)
◆ IsServiceRunning()
Definition at line 427 of file CShellDispatch.cpp.
428{
430 SC_HANDLE scm, service;
432
434
436 V_BOOL(running) = VARIANT_FALSE;
437
439 if (!scm)
440 {
441 ERR(
"failed to connect to service manager\n");
443 }
444
446 if (!service)
447 {
451 }
452
455 {
460 }
461
463 V_BOOL(running) = VARIANT_TRUE;
464
467
469}
SC_HANDLE WINAPI OpenSCManagerW(LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, DWORD dwDesiredAccess)
BOOL WINAPI QueryServiceStatusEx(SC_HANDLE hService, SC_STATUS_TYPE InfoLevel, LPBYTE lpBuffer, DWORD cbBufSize, LPDWORD pcbBytesNeeded)
SC_HANDLE WINAPI OpenServiceW(SC_HANDLE hSCManager, LPCWSTR lpServiceName, DWORD dwDesiredAccess)
DWORD WINAPI GetLastError(void)
#define SERVICE_QUERY_STATUS
#define SC_MANAGER_CONNECT
◆ MinimizeAll()
◆ NameSpace()
Definition at line 78 of file CShellDispatch.cpp.
79{
81 if (!ppsdf)
85
87 {
91 }
92
97
99}
#define FAILED_UNEXPECTEDLY(hr)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantChangeType(VARIANTARG *pvargDest, VARIANTARG *pvargSrc, USHORT wFlags, VARTYPE vt)
◆ Open()
◆ RefreshMenu()
◆ ServiceStart()
Definition at line 407 of file CShellDispatch.cpp.
408{
409 TRACE(
"(%p, %ls, %s, %p)\n",
this, service, wine_dbgstr_variant(&persistent),
ret);
410
415}
static HRESULT SHELL32_ControlService(BSTR name, DWORD control, VARIANT &persistent)
◆ ServiceStop()
Definition at line 417 of file CShellDispatch.cpp.
418{
419 TRACE(
"(%p, %ls, %s, %p)\n",
this, service, wine_dbgstr_variant(&persistent),
ret);
420
425}
#define SERVICE_CONTROL_STOP
◆ SetInterfaceSafetyOptions()
◆ SetSite()
◆ SetTime()
◆ ShellExecute()
Definition at line 282 of file CShellDispatch.cpp.
283{
288
291
295
299
303
306 show =
V_I4(&show_int);
307
309
311}
HRESULT ChangeType(_In_ VARTYPE newType, _In_opt_ const LPVARIANT src=NULL)
HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpVerb, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
◆ ShowBrowserBar()
◆ ShutdownWindows()
Definition at line 210 of file CShellDispatch.cpp.
211{
214}
void WINAPI ExitWindowsDialog(HWND hWndOwner)
◆ Suspend()
◆ TileHorizontally()
◆ TileVertically()
◆ ToggleDesktop()
◆ TrayProperties()
◆ UndoMinimizeALL()
◆ Windows()
Definition at line 129 of file CShellDispatch.cpp.
130{
131 TRACE(
"(%p, %p)\n",
this, ppid);
133}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
◆ WindowsSecurity()
The documentation for this class was generated from the following files: