40 TRACE(
"(%p, %p)\n",
this, ppid);
53 TRACE(
"(%p, %p)\n",
this, ppid);
108 TRACE(
"(%p, %lu, %ls, %lu, %s, %p)\n",
this, Hwnd,
Title,
Options,
debugstr_variant(&RootFolder), ppsdf);
131 TRACE(
"(%p, %p)\n",
this, ppid);
176 TRACE(
"(%p)\n",
this);
182 TRACE(
"(%p)\n",
this);
188 TRACE(
"(%p)\n",
this);
194 TRACE(
"(%p)\n",
this);
200 TRACE(
"(%p)\n",
this);
206 TRACE(
"(%p)\n",
this);
218 TRACE(
"(%p)\n",
this);
224 TRACE(
"(%p)\n",
this);
230 TRACE(
"(%p)\n",
this);
236 TRACE(
"(%p)\n",
this);
242 TRACE(
"(%p)\n",
this);
248 TRACE(
"(%p)\n",
this);
254 TRACE(
"(%p)\n",
this);
260 TRACE(
"(%p)\n",
this);
266 TRACE(
"(%p, %ls)\n",
this, szDir);
306 show =
V_I4(&show_int);
409 TRACE(
"(%p, %ls, %s, %p)\n",
this, service, wine_dbgstr_variant(&persistent),
ret);
419 TRACE(
"(%p, %ls, %s, %p)\n",
this, service, wine_dbgstr_variant(&persistent),
ret);
430 SC_HANDLE scm, service;
436 V_BOOL(running) = VARIANT_FALSE;
441 ERR(
"failed to connect to service manager\n");
463 V_BOOL(running) = VARIANT_TRUE;
473 TRACE(
"(%p, %ls, %p)\n",
this, service,
ret);
486 TRACE(
"(%p, %ls, %s, %p)\n",
this,
clsid, wine_dbgstr_variant(&show),
ret);
507#define IDM_SECURITY 5001
510 TRACE(
"(%p)\n",
this);
516 TRACE(
"(%p)\n",
this);
526#ifndef SSF_SERVERADMINUI
527#define SSF_SERVERADMINUI 4
550 *
result =
flag ? VARIANT_TRUE : VARIANT_FALSE;
575 TRACE(
"(%p, %p)\n",
this, pUnkSite);
587 return ShellObjectCreatorInit<CShellDispatch>(
riid, ppvOut);
static HRESULT OpenServiceHelper(LPCWSTR name, DWORD access, SC_HANDLE &hSvc)
HRESULT WINAPI CShellDispatch_Constructor(REFIID riid, LPVOID *ppvOut)
EXTERN_C DWORD WINAPI SHGetRestriction(LPCWSTR lpSubKey, LPCWSTR lpSubName, LPCWSTR lpValue)
HRESULT VariantToIdlist(VARIANT *var, LPITEMIDLIST *idlist)
static HRESULT OpenFolder(VARIANT vDir, LPCWSTR verb=NULL)
static BOOL is_optional_argument(const VARIANT *arg)
static HRESULT SHELL_OpenFolder(LPCITEMIDLIST pidl, LPCWSTR verb=NULL)
static HRESULT PostTrayCommand(UINT cmd)
#define SSF_SERVERADMINUI
static HRESULT SHELL32_ControlService(BSTR name, DWORD control, VARIANT &persistent)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void shell(int argc, const char *argv[])
#define STDMETHODCALLTYPE
EXTERN_C LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi)
HRESULT ChangeType(_In_ VARTYPE newType, _In_opt_ const LPVARIANT src=NULL)
STDMETHOD() NameSpace(VARIANT vDir, Folder **ppsdf) override
STDMETHOD() ControlPanelItem(BSTR szDir) override
STDMETHOD() ExplorerPolicy(BSTR policy, VARIANT *value) override
STDMETHOD() AddToRecent(VARIANT file, BSTR category) override
STDMETHOD() BrowseForFolder(LONG Hwnd, BSTR Title, LONG Options, VARIANT RootFolder, Folder **ppsdf) override
STDMETHOD() UndoMinimizeALL() override
STDMETHOD() GetSite(REFIID riid, PVOID *ppvSite) override
STDMETHOD() Explore(VARIANT vDir) override
STDMETHOD() TileHorizontally() override
STDMETHOD() Suspend() override
STDMETHOD() get_Application(IDispatch **ppid) override
STDMETHOD() SetTime() override
STDMETHOD() GetSetting(LONG setting, VARIANT_BOOL *result) override
STDMETHOD() IsServiceRunning(BSTR service, VARIANT *running) override
STDMETHOD() EjectPC() override
STDMETHOD() FindFiles() override
STDMETHOD() CascadeWindows() override
STDMETHOD() IsRestricted(BSTR group, BSTR restriction, LONG *value) override
STDMETHOD() ServiceStop(BSTR service, VARIANT persistent, VARIANT *ret) override
STDMETHOD() GetInterfaceSafetyOptions(REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) override
STDMETHOD() RefreshMenu() override
STDMETHOD() ShutdownWindows() override
STDMETHOD() ToggleDesktop() override
STDMETHOD() TileVertically() override
STDMETHOD() MinimizeAll() override
STDMETHOD() Open(VARIANT vDir) override
STDMETHOD() ShellExecute(BSTR file, VARIANT args, VARIANT dir, VARIANT op, VARIANT show) override
STDMETHOD() ShowBrowserBar(BSTR clsid, VARIANT show, VARIANT *ret) override
STDMETHOD() get_Parent(IDispatch **ppid) override
STDMETHOD() FindPrinter(BSTR name, BSTR location, BSTR model) override
STDMETHOD() SetSite(IUnknown *pUnkSite) override
STDMETHOD() WindowsSecurity() override
STDMETHOD() CanStartStopService(BSTR service, VARIANT *ret) override
STDMETHOD() FindComputer() override
STDMETHOD() Windows(IDispatch **ppid) override
STDMETHOD() FileRun() override
STDMETHOD() SetInterfaceSafetyOptions(REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions) override
STDMETHOD() ServiceStart(BSTR service, VARIANT persistent, VARIANT *ret) override
STDMETHOD() Help() override
STDMETHOD() GetSystemInformation(BSTR name, VARIANT *ret) override
STDMETHOD() TrayProperties() override
static const WCHAR Title[]
#define FAILED_UNEXPECTEDLY(hr)
VOID WINAPI GetSystemInfo(IN LPSYSTEM_INFO lpSystemInfo)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
void WINAPI ExitWindowsDialog(HWND hWndOwner)
HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, INT nFolder, LPITEMIDLIST *ppidl)
BOOL WINAPI IsOS(DWORD feature)
WDF_INTERRUPT_POLICY policy
GLuint GLint GLboolean GLint GLenum access
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
static const char * debugstr_variant(const VARIANT *var)
HRESULT WINAPI SHILCreateFromPathW(LPCWSTR path, LPITEMIDLIST *ppidl, DWORD *attributes)
SC_HANDLE WINAPI OpenSCManagerW(LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, DWORD dwDesiredAccess)
BOOL WINAPI ControlService(SC_HANDLE hService, DWORD dwControl, LPSERVICE_STATUS lpServiceStatus)
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)
BOOL WINAPI ChangeServiceConfigW(SC_HANDLE hService, DWORD dwServiceType, DWORD dwStartType, DWORD dwErrorControl, LPCWSTR lpBinaryPathName, LPCWSTR lpLoadOrderGroup, LPDWORD lpdwTagId, LPCWSTR lpDependencies, LPCWSTR lpServiceStartName, LPCWSTR lpPassword, LPCWSTR lpDisplayName)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
static __inline const char * wine_dbgstr_guid(const GUID *id)
#define SEE_MASK_FLAG_DDEWAIT
void WINAPI SHAddToRecentDocs(UINT uFlags, LPCVOID pv)
VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
BOOL WINAPI SHRunControlPanel(_In_ LPCWSTR commandLine, _In_opt_ HWND parent)
HRESULT HResultFromWin32(DWORD hr)
HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpVerb, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
BOOL WINAPI DECLSPEC_HOTPATCH ShellExecuteExW(LPSHELLEXECUTEINFOW sei)
#define SSF_DONTPRETTYPATH
#define SSF_NOCONFIRMRECYCLE
#define SSF_SHOWEXTENSIONS
#define SSF_SHOWSUPERHIDDEN
#define SSF_SHOWALLOBJECTS
#define BIF_NEWDIALOGSTYLE
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
WORD wProcessorArchitecture
PCIDLIST_ABSOLUTE pidlRoot
#define TRAYCMD_DATE_AND_TIME
#define TRAYCMD_SEARCH_COMPUTERS
#define TRAYCMD_TASKBAR_PROPERTIES
#define TRAYCMD_SEARCH_FILES
#define TRAYCMD_TOGGLE_DESKTOP
#define TRAYCMD_RUN_DIALOG
#define TRAYCMD_RESTORE_ALL
#define TRAYCMD_MINIMIZE_ALL
#define TRAYCMD_HELP_AND_SUPPORT
HRESULT WINAPI DECLSPEC_HOTPATCH VariantChangeType(VARIANTARG *pvargDest, VARIANTARG *pvargSrc, USHORT wFlags, VARTYPE vt)
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
#define success(from, fromstr, to, tostr)
DWORD WINAPI GetLastError(void)
#define DISP_E_PARAMNOTFOUND
#define ERROR_SERVICE_ALREADY_RUNNING
#define ERROR_SERVICE_NOT_ACTIVE
#define HRESULT_FROM_WIN32(x)
#define SERVICE_QUERY_STATUS
#define SC_MANAGER_CONNECT
#define SERVICE_NO_CHANGE
#define SERVICE_CHANGE_CONFIG
#define SERVICE_CONTROL_STOP
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
#define SERVICE_DEMAND_START
#define SERVICE_AUTO_START
#define IID_PPV_ARG(Itype, ppType)