aboutToDeleteRows

Indicates that the specified rows are about to be deleted. aboutToDeleteRows is an event handler method, implemented through OLEDBSimpleProvider::addOLEDBSimpleProviderListener. This notification is issued just prior to the rows being deleted, either from a call to OLEDBSimpleProvider::deleteRows or internally through the provider.

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 aboutToDeleteRows (
   DBROWCOUNT   iRow,
   DBROWCOUNT   cRows);

Parameters

  • iRow
    [in] Starting position of the rows to be deleted.

  • cRows
    [in] Number of rows to be deleted.

Return Codes

  • S_OK
    The method succeeded.

  • E_FAIL
    A provider-specific error occurred.

Comments

Access to cells in the deleted rows should remain valid until control is returned from OLEDBSimpleProviderListener::aboutToDeleteRows.