EvoCorp Home    IridiumX Assist Home   

 
ComBrokerUnregisterByInterface

ComBrokerUnregisterByInterface restores lpInterface to it's original condition and releases it's associated interface handler. It is strongly recommended that either ComBrokerUnregisterByInterface or ComBrokerUnregisterByHandler get called for every interface registered as soon as those interfaces no longer require brokering or the module responsible for those interfaces gets closed.

Parameters

lpInterface

Pointer to the interface to be de-registered. This function will fail if lpInterface has not previously been registered through ComBrokerRegisterInterface.

Return Values

E_INVALIDARG lpInterface was null.
E_FAIL An unknown error occurred de-registering lpInterface.
S_OK lpInterface was successfully de-registered.

 
Export Definition
Delphi function ComBrokerUnregisterByInterface(
  lpInterface: IUnknown): HResult;