IBindCtx::RevokeObjectBound

Releases the IUnknown pointer to the specified object and removes that pointer from the bind context's internal list of pointers. This undoes a previous call to IBindCtx::RegisterObjectBound for the same object.

HRESULT RevokeObjectBound(
  IUnknown *punk  //Pointer to the object whose registration is 
                  // being revoked
);
 

Parameter

punk
[in] Pointer to the IUnknown interface on the object to be released.

Return Values

S_OK
The object was released successfully.
MK_E_NOTBOUND
Indicates that punk was not previously registered with a call to IBindCtx::RegisterObjectBound.

Remarks

You rarely call this method. This method is included for completeness.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.

See Also

IBindCtx::RegisterObjectBound