Retrieves an object that was registered in the browse context under the given name.
Syntax
HRESULT GetObject( IMoniker *pimk, BOOL fBindIfRootRegistered, IUnknown **ppiunk );
Parameters
- pimk
- [in] Address of an IMoniker interface.
- fBindIfRootRegistered
- [in] Boolean value that indicates whether the browse context is registered. If TRUE, the browse context binds this method to the moniker, and if the object referred to by pimk is not registered in the browse context, the browse context retrieves the object.
- ppiunk
- [out] Address of a pointer to the IUnknown interface of the object being retrieved.
Return Value
Returns S_OK to indicate the object was retrieved, or S_FALSE to indicate the object was not registered in the browse context.
Remarks
If the object in pimk is not registered in the browse context, this method binds to the full moniker and retrieves the object if the following conditions are met:
- fBindIfRootRegistered is set to TRUE.
- The moniker is referring to an embedded object (the moniker pimk is a generic composite moniker).
- The root object of the containment hierarchy is registered with the browse context.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
See Also