Partager via


removeDataSourceListener

Removes a listener from the notification list.

Important

This feature will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Instead, write a fully functional OLE DB provider using the native OLE DB interfaces.

Syntax

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.