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

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: rstwtr.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(0c733a45-2a1c-11ce-ade5-00aa0044773d)
  15.     
  16. interface IRowsetWatchRegion : IRowsetWatchAll {
  17. //
  18. // DBWATCHMODE and related definitions
  19. //
  20. typedef DWORD DBWATCHMODE;
  21. enum DBWATCHMODEENUM {
  22. DBWATCHMODE_ALL    = 0x01,
  23. DBWATCHMODE_EXTEND = 0x02,
  24. DBWATCHMODE_MOVE   = 0x04,
  25. DBWATCHMODE_COUNT  = 0x08
  26. };
  27. //
  28. // DBROWWATCHCHANGE and related definitions
  29. //
  30. typedef DWORD DBROWCHANGEKIND;
  31. enum DBROWCHANGEKINDENUM {
  32. DBROWCHANGEKIND_INSERT,
  33. DBROWCHANGEKIND_DELETE,
  34. DBROWCHANGEKIND_UPDATE,
  35. DBROWCHANGEKIND_COUNT
  36. };
  37. typedef struct tagDBROWWATCHRANGE {
  38. HWATCHREGION hRegion;
  39. DBROWCHANGEKIND eChangeKind;
  40. HROW hRow;
  41. DBCOUNTITEM iRow;
  42. } DBROWWATCHCHANGE;
  43. HRESULT CreateWatchRegion(
  44. [in] DBWATCHMODE dwWatchMode,
  45. [out] HWATCHREGION * phRegion
  46. );
  47. HRESULT ChangeWatchMode(
  48. [in] HWATCHREGION hRegion,
  49. [in] DBWATCHMODE dwWatchMode
  50. );
  51. HRESULT DeleteWatchRegion(
  52. [in] HWATCHREGION hRegion
  53. );
  54. HRESULT GetWatchRegionInfo(
  55. [in] HWATCHREGION hRegion,
  56. [out] DBWATCHMODE * pdwWatchMode,
  57. [out] HCHAPTER * phChapter,
  58. [in, out] DBBKMARK * pcbBookmark,
  59. [out, size_is(,*pcbBookmark)] BYTE ** ppBookmark,
  60. [out] DBROWCOUNT * pcRows
  61. );
  62. HRESULT Refresh(
  63. [in, out] DBCOUNTITEM * pcChangesObtained,
  64. [out, size_is(,*pcChangesObtained)] DBROWWATCHCHANGE ** prgChanges
  65. );
  66. HRESULT ShrinkWatchRegion(
  67. [in] HWATCHREGION hRegion,
  68. [in] HCHAPTER hChapter,
  69. [in] DBBKMARK cbBookmark,
  70. [in, size_is(cbBookmark)] BYTE * pBookmark,
  71. [in] DBROWCOUNT cRows
  72. );
  73. }