Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.8 KiB

  1. //=--------------------------------------------------------------------------=
  2. //
  3. // adbind.h Microsoft Active Data Binding interfaces
  4. //
  5. // Copyright (c) 1997, Microsoft Corp. All rights reserved.
  6. //
  7. //=--------------------------------------------------------------------------=
  8. #ifndef _ADBIND_H_
  9. #define _ADBIND_H_
  10. #include "oledb.h"
  11. DEFINE_GUID(IID_IDataFormat, 0xaf08b280, 0x90f2, 0x11d0,0x94, 0x84, 0x00, 0xa0, 0xc9, 0x11, 0x10, 0xed);
  12. //=--------------------------------------------------------------------------=
  13. // IDataFormat interface
  14. //=--------------------------------------------------------------------------=
  15. #undef INTERFACE
  16. #define INTERFACE IID_IDataFormat
  17. // The following are used with IDataFormat::GetBinding
  18. #define DATAFORMAT_FGETDATA 0x0 // Return a SetData binding
  19. #define DATAFORMAT_FSETDATA 0x1 // Return a GetData binding
  20. DECLARE_INTERFACE_(IDataFormat, IUnknown)
  21. {
  22. STDMETHOD(GetBinding)(VARTYPE vtPropHint, DWORD rgfDataFormat, IUnknown* prowset, DBCOLUMNINFO* pcolinfo, DBBINDING* pbinding, ULONG* pcbSize, DWORD* pdwCookie) PURE;
  23. STDMETHOD(GetData)(DWORD dwCookie, void* pvFrom, VARIANT* pvarTo, DBSTATUS* pdbstatus, IDispatch* pdispObject) PURE;
  24. STDMETHOD(SetData)(DWORD dwCookie, VARIANT* pvarFrom, void* pvTo, IDispatch* pdispObject) PURE;
  25. STDMETHOD(ReleaseData)(DWORD dwCookie, void* pv) PURE;
  26. STDMETHOD(ReleaseBinding)(DWORD dwCookie) PURE;
  27. STDMETHOD(GetRawData)(DWORD dwCookie, void *pvFrom, VARIANT *pvarTo, DBSTATUS *pdbstatus) PURE;
  28. STDMETHOD(SetRawData)(DWORD dwCookie, VARIANT *pvarFrom, void *pvTo) PURE;
  29. STDMETHOD(Clone)(IDataFormat **ppDataFormat) PURE;
  30. STDMETHOD(Convert)(DWORD dwCookie, const VARIANT *pvarFrom, VARIANT *pvarTo) PURE;
  31. STDMETHOD(SetLcid)(LCID lcid) PURE;
  32. STDMETHOD(Default)(BOOL *fDefault) PURE;
  33. STDMETHOD(GetLcid)(LCID *lcid) PURE;
  34. };
  35. #endif // _ADBIND_H_