HRESULT IBindCtx::RegisterObjectBound(punk)
Remember the passed object as one of the objects that has been bound during a moniker operation and which should be released when it is complete overall. Calling this function causes the binding context to create an additional reference to the passed-in object with AddRef; the caller is still required to Release its own copy of the pointer independently.
The effect of calling this function twice with the same object is cumulative, in that it will require two IBindCtx::RevokeObjectBound calls to completely remove the registration of the object within the binding context.
Argument
Type
Description
punk
IUnknown*
The object which is being registered as needing to be released.