Share via


IBindCtx::RevokeObjectBound

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

The IBindCtx::RevokeObjectBound method is supported in DCOM, but it is not supported in COM. Calling this method in COM returns a value of E_NOTIMPL.

HRESULT RevokeObjectBound(
  IUnknown* punk
);

Parameters

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

Return Values

The following table shows the return values for this method.

Value Description
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.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib, Uuid.lib.

See Also

IUnknown | IBindCtx::RegisterObjectBound

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.