MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / GetDesktopAutomationObject

Function GetDesktopAutomationObject

src/Setup/UpdateRunner.cpp:96–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96HRESULT GetDesktopAutomationObject(REFIID riid, void **ppv)
97{
98 HRESULT hr;
99
100 CComPtr<IShellView> spsv;
101 hr = FindDesktopFolderView(IID_PPV_ARGS(&spsv));
102 if (FAILED(hr)) return hr;
103
104 CComPtr<IDispatch> spdispView;
105 hr = spsv->GetItemObject(SVGIO_BACKGROUND, IID_PPV_ARGS(&spdispView));
106 if (FAILED(hr)) return hr;
107
108 return spdispView->QueryInterface(riid, ppv);
109}
110
111HRESULT CUpdateRunner::ShellExecuteFromExplorer(LPWSTR pszFile, LPWSTR pszParameters)
112{

Callers 1

Calls 2

FindDesktopFolderViewFunction · 0.85
QueryInterfaceMethod · 0.45

Tested by

no test coverage detected