GetApproximatePosition

HRESULT GetApproximatePosition(
const CBookmark& bmk, 
long& lPos);

Parameters

bmk

Self-bookmark of a row.

lPos

Reference to a buffer to receive the row position. Zero is returned if an error occurs. Otherwise, lPos is a one-base row index.

Return Code

S_OK

Method succeeded.

E_NOINTERFACE

IRowsetScroll is not available.

E_FAIL

Returned if there is no attachment.

Comments

The GetApproximatePosition method uses IRowsetScroll::GetApproximatePosition to retrieve the approximate position of the row identified by the given bookmark.