Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Windows Mobile 6.5

The IObjectWithSite interface provides simple objects with a light-weight "siting" mechanism. This allows simple objects to communicate directly with their container site objects, allowing them to manage the site object by themselves.

If you use IObjectWithSite, do not use the Windows Embedded CE IOleObject interface.

A container can pass the IUnknown pointer of its site to an object through IObjectWithSite::SetSite. Callers can also retrieve the latest site passed to IObjectWithSite::SetSite through IObjectWithSite::GetSite. This usage provides a hooking mechanism, allowing third parties to intercept calls from an object to its container site object.

Implement this interface when you want to give an object the ability to manage its container site object.

A container calls the IObjectWithSite::SetSite method to provide an object with an interface pointer to its site.

  • IUnknown methods

    IObjectWithSite methods Description


    Passes the container site object's IUnknown pointer to the object being managed.


    Retrieves the IUnknown pointer from the last site set with IObjectWithSite::SetSite.

Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2000 and later, Smartphone 2002 and later

Community Additions

© 2015 Microsoft