MDAC 2.5 SDK - OLE DB Providers
OSP Toolkit


 

IDataSource::removeDataSourceListener

Removes a listener from the notification list.

HRESULT removeDataSourceListener(
   DataSourceListener *   pDSL);

Parameters

pDSL

[in]
Pointer to the interface of the listener.

Return Codes

S_OK

The method succeeded.

E_FAIL

A provider-specific error occurred.

Comments

Checking whether the listener has been added and returning E_FAIL is optional. If there are duplicates on the list, one is removed, but which one is unspecified. If the data source does not issue notifications, it can just return S_OK from this method.