Enables a container to pass an object a pointer to the interface for its site.
HRESULT SetSite( IUnknown *pUnkSite );
This method returns S_OK on success.
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.
E_NOTIMPL is not allowedâ€”without implementation of the SetSite method, the IObjectWithSite interface is unnecessary.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|