MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / GetClientSite

Method GetClientSite

include/com/IOleObjectImpl.h:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 STDMETHODIMP GetClientSite(IOleClientSite **ppClientSite) {
26 if (ppClientSite == NULL) {
27 return E_POINTER;
28 }
29
30 if (this->m_pParent->m_clientSite == NULL) {
31 *ppClientSite = NULL;
32 return E_FAIL;
33 }
34
35 this->m_pParent->m_clientSite->AddRef();
36 *ppClientSite = this->m_pParent->m_clientSite;
37 return S_OK;
38 }
39
40 STDMETHODIMP SetHostNames(LPCOLESTR szContainerApp, LPCOLESTR szContainerObj) {
41 return S_OK;

Callers

nothing calls this directly

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected