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.
Compares two bookmarks.
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 before cbBookmark2.) 
- DBCOMPARE_EQ (cbBookmark1 is equal to cbBookmark2.) 
- DBCOMPARE_GT (cbBookmark1 is after cbBookmark2.) 
- DBCOMPARE_NE (The bookmarks are equal and not ordered.) 
- DBCOMPARE_NOTCOMPARABLE (The bookmarks cannot be compared.) 
Requirements
Header: atldb.h