Provides the site’s IUnknown pointer to the object. The object should hold onto this pointer, calling IUnknown::AddRef in doing so. If the object already has a site, it should call that existing site’s IUnknown::Release, save the new site pointer, and call the new site’s IUnknown::AddRef.
HRESULT SetSite(
IUnknown* pUnkSite |
//Pointer to IUnknown of the site managing this object |
); |
Parameter
Return Value
Remarks
E_NOTIMPL is not allowed&emdash;without implementation of the SetSite method, the IObjectWithSite interface is unnecessary.
See Also