//-----------------------------------------------------------------------------
// File:			rstbas.idl
//
// Copyright:		Copyright (c) Microsoft Corporation          
//
// Contents: 		OLE DB interface definition
//
// Comments: 		
//
//-----------------------------------------------------------------------------

#include "idlmulti.h"
//  
    
    LOCAL_INTERFACE(0c733a7c-2a1c-11ce-ade5-00aa0044773d)

    
interface IRowset : IUnknown {

	typedef DWORD DBROWOPTIONS;


	HRESULT AddRefRows(
		[in] DBCOUNTITEM cRows,
		[in, size_is(cRows)] const HROW rghRows[],
		[out, size_is(cRows)] DBREFCOUNT rgRefCounts[],
		[out, size_is(cRows)] DBROWSTATUS rgRowStatus[]
	);

	HRESULT GetData(
		[in] HROW hRow,
		[in] HACCESSOR hAccessor,
		[out] void * pData
	);

	HRESULT GetNextRows(
		[in] HCHAPTER hReserved,
		[in] DBROWOFFSET lRowsOffset,
		[in] DBROWCOUNT cRows,
		[out] DBCOUNTITEM * pcRowsObtained,
		[out, size_is(,cRows)] HROW ** prghRows
	);

	HRESULT ReleaseRows(
		[in] DBCOUNTITEM cRows,
		[in, size_is(cRows)] const HROW rghRows[],
		[in, size_is(cRows)] DBROWOPTIONS rgRowOptions[],
		[out, size_is(cRows)] DBREFCOUNT rgRefCounts[],
		[out, size_is(cRows)] DBROWSTATUS rgRowStatus[]
	);

	HRESULT RestartPosition(
		[in] HCHAPTER hReserved
	);

}

