CComPtrBase::SetSite
Call this method to set the site of the CComPtrBase object to the IUnknown of the parent object.
HRESULT SetSite(
IUnknown* punkParent
) throw( );
Параметры
- punkParent
A pointer to the IUnknown interface of the parent.
Возвращаемое значение
Returns S_OK on success, or an error HRESULT on failure.
Заметки
This method calls AtlSetChildSite.
Требования
Header: atlcomcli.h