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

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: rstupd.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(0c733a6d-2a1c-11ce-ade5-00aa0044773d)
  15.     
  16. interface IRowsetUpdate : IRowsetChange {
  17. typedef DWORD DBPENDINGSTATUS;
  18. // ORable values
  19. enum DBPENDINGSTATUSENUM {
  20. DBPENDINGSTATUS_NEW = 0x01,
  21. DBPENDINGSTATUS_CHANGED = 0x02,
  22. DBPENDINGSTATUS_DELETED = 0x04,
  23. DBPENDINGSTATUS_UNCHANGED = 0x08,
  24. DBPENDINGSTATUS_INVALIDROW = 0x10,
  25. };
  26. HRESULT GetOriginalData(
  27. [in] HROW hRow,
  28. [in] HACCESSOR hAccessor,
  29. [out] void * pData
  30. );
  31. HRESULT GetPendingRows(
  32. [in] HCHAPTER hReserved,
  33. [in] DBPENDINGSTATUS dwRowStatus,
  34. [in, out] DBCOUNTITEM * pcPendingRows,
  35. [out, size_is(,*pcPendingRows)] HROW ** prgPendingRows,
  36. [out, size_is(,*pcPendingRows)] DBPENDINGSTATUS ** prgPendingStatus
  37. );
  38. HRESULT GetRowStatus(
  39. [in] HCHAPTER hReserved,
  40. [in] DBCOUNTITEM cRows,
  41. [in, size_is(cRows)] const HROW rghRows[],
  42. [out, size_is(cRows)] DBPENDINGSTATUS rgPendingStatus[]
  43. );
  44. HRESULT Undo(
  45. [in] HCHAPTER hReserved,
  46. [in] DBCOUNTITEM cRows,
  47. [in, size_is(cRows)] const HROW rghRows[],
  48. [in, out] DBCOUNTITEM * pcRowsUndone,
  49. [out, size_is(,*pcRowsUndone)] HROW ** prgRowsUndone,
  50. [out, size_is(,*pcRowsUndone)] DBROWSTATUS ** prgRowStatus
  51. );
  52. HRESULT Update(
  53. [in] HCHAPTER hReserved,
  54. [in] DBCOUNTITEM cRows,
  55. [in, size_is(cRows)] const HROW rghRows[],
  56. [in, out] DBCOUNTITEM * pcRows,
  57. [out, size_is(,*pcRows)] HROW ** prgRows,
  58. [out, size_is(,*pcRows)] DBROWSTATUS ** prgRowStatus
  59. );
  60. }