MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / SetSite

Method SetSite

ExplorerTAP/tapsite.cpp:71–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71HRESULT TAPSite::SetSite(IUnknown *pUnkSite) try
72{
73 // only ever 1 VTW at once
74 if (s_VisualTreeWatcher.get())
75 {
76 throw winrt::hresult_illegal_method_call();
77 }
78
79 site.copy_from(pUnkSite);
80
81 if (site)
82 {
83 s_VisualTreeWatcher = winrt::make_self<VisualTreeWatcher>(site, GetReadyEvent());
84 }
85
86 return S_OK;
87}
88catch (...)
89{
90 return winrt::to_hresult();
91}
92
93HRESULT TAPSite::GetSite(REFIID riid, void **ppvSite) noexcept
94{

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected