FreeRows

HRESULT FreeRows(
const HROW *pRows, 
ULONG cRows);

Parameters

pRows

Array of HROWs to release. The array must have been allocated by rowset methods or by CoTaskMemAlloc.

cRows

The number of HROWs in the array.

Return Code

S_OK

 Method succeeded.

E_FAIL

Returned if the object is not attached.

Comments

Uses a combination of IRowset::ReleaseRows and CoTaskMemFree to release the HROWs and free the buffer.