Contents Index Topic Contents | ||
Previous Topic: IHlinkBrowseContext::QueryHlink Next Topic: IHlinkBrowseContext::Revoke |
IHlinkBrowseContext::Register
HRESULT Register( DWORD dwReserved, //Reserved for future use IUnknown piunk, //Object being registered IMoniker * pimk, //Moniker interface pointer of the object being registered DWORD * pdwRegister //Receives the registration value );Registers an object with the browse context.
- Returns one of the following values:
S_OK The object has been registered. MK_S_MONIKERALREADYREGISTERED The object was successfully registered, but another object (possibly the same object) has already been registered with the same moniker in this browse context. E_OUTOFMEMORY There was insufficient memory to register the object with the browse context.
- dwReserved
- [in] Reserved for future use; must be set to zero by the caller. To ensure compatibility with future use, the callee must not check for zero.
- piunk
- [in, unique] The object being registered.
- pimk
- [in, unique] Address of the IMoniker interface pointer that identifies the object being registered.
- pdwRegister
- [out] Address of a location to return a value identifying the registration, which can be used to subsequently revoke the registration.
See also HlinkCreateBrowseContext, IHlinkBrowseContext::Close, IHlinkBrowseContext::Revoke
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.