21 lines
341 B
C++
21 lines
341 B
C++
#include "priv.h"
|
|
#include "cowsite.h"
|
|
|
|
|
|
HRESULT CObjectWithSite::SetSite(IUnknown *punkSite)
|
|
{
|
|
IUnknown_Set(&_punkSite, punkSite);
|
|
return S_OK;
|
|
}
|
|
|
|
|
|
HRESULT CObjectWithSite::GetSite(REFIID riid, void **ppvSite)
|
|
{
|
|
if (_punkSite)
|
|
return _punkSite->QueryInterface(riid, ppvSite);
|
|
|
|
*ppvSite = NULL;
|
|
return E_FAIL;
|
|
|
|
}
|