Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 (
cbBookmark1is beforecbBookmark2.)DBCOMPARE_EQ (
cbBookmark1is equal tocbBookmark2.)DBCOMPARE_GT (
cbBookmark1is aftercbBookmark2.)DBCOMPARE_NE (The bookmarks are equal and not ordered.)
DBCOMPARE_NOTCOMPARABLE (The bookmarks cannot be compared.)
Requirements
Header: atldb.h