Share via


GetCurrentPosition retrieves the number of the current row in the rowset.

HRESULT IRowsetPosition::GetCurrentPosition (ULONG * pulPosition,);
  • pulPosition
    [in/out] A pointer to an unsigned long value. This long must be allocated by the client.

  • S_OK
    The method succeeded.

  • E_INVALIDARG
    pulPosition was NULL.

  • E_UNEXPECTED
    The rowset is in a zombied state.

This returns the current location of the next fetch position in the rowset. The valid range is 1 to GetCurrentPosition. If there is no current row, pulPosition is 0.

Reference

IRowsetPosition (SQL Server Compact)

IRowsetPosition::GetRecordCount