| title | IRowsetLocateImpl::Compare | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | 6f84052c-c68c-480a-982f-03748faa7d5d | |||||||||||||
| caps.latest.revision | 8 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Compares two bookmarks.
STDMETHOD ( Compare )(
HCHAPTER /* hReserved */,
DBBKMARK cbBookmark1,
const BYTE* pBookmark1,
DBBKMARK cbBookmark2,
const BYTE* pBookmark2,
DBCOMPARE* pComparison
);
See IRowsetLocate::Compare in the OLE DB Programmer's Reference.
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.)
Header: atldb.h