rstloc.idl
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:2k
源码类别:

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: rstloc.idl
  3. //
  4. // Copyright: Copyright (c) Microsoft Corporation          
  5. //
  6. // Contents:  OLE DB interface definition
  7. //
  8. // Comments: 
  9. //
  10. //-----------------------------------------------------------------------------
  11. #include "idlmulti.h"
  12. //  
  13.     
  14.     LOCAL_INTERFACE(0c733a7d-2a1c-11ce-ade5-00aa0044773d)
  15.     
  16. interface IRowsetLocate : IRowset {
  17. //
  18. // DBCOMPARE -- specifies the results of a bookmark comparison
  19. //
  20. typedef DWORD DBCOMPARE;
  21. enum DBCOMPAREENUM {
  22. DBCOMPARE_LT,
  23. DBCOMPARE_EQ,
  24. DBCOMPARE_GT,
  25. DBCOMPARE_NE,
  26. DBCOMPARE_NOTCOMPARABLE
  27. };
  28. HRESULT Compare(
  29. [in] HCHAPTER hReserved,
  30. [in] DBBKMARK cbBookmark1,
  31. [in, size_is(cbBookmark1)] const BYTE * pBookmark1,
  32. [in] DBBKMARK cbBookmark2,
  33. [in, size_is(cbBookmark2)] const BYTE * pBookmark2,
  34. [out] DBCOMPARE * pComparison
  35. );
  36. HRESULT GetRowsAt(
  37. [in] HWATCHREGION hReserved1,
  38. [in] HCHAPTER hReserved2,
  39. [in] DBBKMARK cbBookmark,
  40. [in, size_is(cbBookmark)] const BYTE * pBookmark,
  41. [in] DBROWOFFSET lRowsOffset,
  42. [in] DBROWCOUNT cRows,
  43. [out] DBCOUNTITEM * pcRowsObtained,
  44. [out, size_is(,cRows)] HROW ** prghRows
  45. );
  46. HRESULT GetRowsByBookmark(
  47. [in] HCHAPTER hReserved,
  48. [in] DBCOUNTITEM cRows,
  49. [in, size_is(cRows)] const DBBKMARK rgcbBookmarks[],
  50. [in, size_is(cRows)] const BYTE * rgpBookmarks[],
  51. [out, size_is(cRows)] HROW rghRows[],
  52. [out, size_is(cRows)] DBROWSTATUS rgRowStatus[]
  53. );
  54. HRESULT Hash(
  55. [in] HCHAPTER hReserved,
  56. [in] DBBKMARK cBookmarks,
  57. [in, size_is(cBookmarks)] const DBBKMARK rgcbBookmarks[],
  58. [in, size_is(cBookmarks)] const BYTE * rgpBookmarks[],
  59. [out, size_is(cBookmarks)] DBHASHVALUE rgHashedValues[],
  60. [out, size_is(cBookmarks)] DBROWSTATUS rgBookmarkStatus[]
  61. );
  62. }