+++ /dev/null
-/*\r
- * Copyright (C) 2009 Huw Davies\r
- *\r
- * This library is free software; you can redistribute it and/or\r
- * modify it under the terms of the GNU Lesser General Public\r
- * License as published by the Free Software Foundation; either\r
- * version 2.1 of the License, or (at your option) any later version.\r
- *\r
- * This library is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
- * Lesser General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU Lesser General Public\r
- * License along with this library; if not, write to the Free Software\r
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA\r
- */\r
-\r
-[\r
- local,\r
- object,\r
- uuid(0c733a7d-2a1c-11ce-ade5-00aa0044773d),\r
- pointer_default(unique)\r
-]\r
-interface IRowsetLocate : IRowset\r
-{\r
- typedef DWORD DBCOMPARE;\r
-\r
- enum DBCOMPAREENUM\r
- {\r
- DBCOMPARE_LT,\r
- DBCOMPARE_EQ,\r
- DBCOMPARE_GT,\r
- DBCOMPARE_NE,\r
- DBCOMPARE_NOTCOMPARABLE\r
- };\r
-\r
- HRESULT Compare([in] HCHAPTER hReserved,\r
- [in] DBBKMARK cbBookmark1,\r
- [in, size_is(cbBookmark1)] const BYTE *pBookmark1,\r
- [in] DBBKMARK cbBookmark2,\r
- [in, size_is(cbBookmark2)] const BYTE *pBookmark2,\r
- [out] DBCOMPARE *pComparison);\r
-\r
- HRESULT GetRowsAt([in] HWATCHREGION hReserved1,\r
- [in] HCHAPTER hReserved2,\r
- [in] DBBKMARK cbBookmark,\r
- [in, size_is(cbBookmark)] const BYTE *pBookmark,\r
- [in] DBROWOFFSET lRowsOffset,\r
- [in] DBROWCOUNT cRows,\r
- [out] DBCOUNTITEM *pcRowsObtained,\r
- [out, size_is(,cRows)] HROW **prghRows);\r
-\r
- HRESULT GetRowsByBookmark([in] HCHAPTER hReserved,\r
- [in] DBCOUNTITEM cRows,\r
- [in, size_is(cRows)] const DBBKMARK rgcbBookmarks[],\r
- [in, size_is(cRows)] const BYTE *rgpBookmarks[],\r
- [out, size_is(cRows)] HROW rghRows[],\r
- [out, size_is(cRows)] DBROWSTATUS rgRowStatus[]);\r
-\r
- HRESULT Hash([in] HCHAPTER hReserved,\r
- [in] DBBKMARK cBookmarks,\r
- [in, size_is(cBookmarks)] const DBBKMARK rgcbBookmarks[],\r
- [in, size_is(cBookmarks)] const BYTE *rgpBookmarks[],\r
- [out, size_is(cBookmarks)] DBHASHVALUE rgHashedValues[],\r
- [out, size_is(cBookmarks)] DBROWSTATUS rgBookmarkStatus[]);\r
-}\r