IRowsetLocateImpl::Compare
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at IRowsetLocateImpl::Compare.
Compares two bookmarks.
Syntax
STDMETHOD ( Compare )(
HCHAPTER /* hReserved */,
DBBKMARK cbBookmark1,
const BYTE* pBookmark1,
DBBKMARK cbBookmark2,
const BYTE* pBookmark2,
DBCOMPARE* pComparison
);
Parameters
See IRowsetLocate::Compare in the OLE DB Programmer's Reference.
Remarks
Either of the bookmarks can be a standard OLE DB-defined standard bookmark (DBBMK_FIRST, DBBMK_LAST, or DBBMK_INVALID). The value returned in pComparison
indicates the relationship between the two bookmarks:
DBCOMPARE_LT (
cbBookmark1
is beforecbBookmark2
.)DBCOMPARE_EQ (
cbBookmark1
is equal tocbBookmark2
.)DBCOMPARE_GT (
cbBookmark1
is aftercbBookmark2
.)DBCOMPARE_NE (The bookmarks are equal and not ordered.)
DBCOMPARE_NOTCOMPARABLE (The bookmarks cannot be compared.)
Requirements
Header: atldb.h