Update

HRESULT Update(
const HROW *phRows, 
ULONG cRows, 
ULONG *pcRows, 
HROW **pphRows, 
DBROWSTATUS **ppStatus);

Parameters

phRows

Pointer to an array of HROWs to commit changes to the data source.

cRows

The number of HROWs in the array.

pcRows

Pointer to a buffer to receive the number of rows that were committed.

pphRows

Pointer to a buffer to receive the callee-allocated HROWs array identifying the rows that were committed. Use CRowset::FreeRows or a combination of CRowset::ReleaseRows and CoTaskMemFree to release the HROWs and free the callee-allocated buffer.

ppStatus

Pointer to a buffer to receive a callee-allocated array of DBROWSTATUS values for each row handle returned. Use CoTaskMemFree to free the callee-allocated array. This argument can be NULL if the call does not want row status information.

Return Code

S_OK

Method succeeded.

E_NOINTERFACE
Returned if IRowsetUpdate is not available.

E_FAIL
Returned if the object is not attached.