IObjectWithSite::SetSite
The SetSite method passes the container site object's IUnknown pointer to the object being managed. Once the managed object has received the pointer, it should use it to call the Windows CE IUnknown::AddRef method. If the object already has a site, it should save the new site's pointer, call the Windows CE IUnknown::Release method with the original site's IUnknown pointer, and then call IUnknown::AddRef with the new site's pointer.
Syntax
HRESULT SetSite (
IUnknown * pUnkSite
);
Parameters
- pUnkSite
[in] Reference to the IUnknown interface pointer belonging to the site that is managing this object. If pUnkSite is NULL, call IUnknown::Release on any existing site for which the object is no longer set.
Return Values
- S_OK
Indicates success.
Requirements
Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: Declared in ocidl.h
See Also
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.