Leaked source code of windows server 2003
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.

86 lines
2.7 KiB

  1. /*****************************************************************************\
  2. * *
  3. * olebind.h Data binding interfaces for OLE *
  4. * *
  5. * OLE Version 2.0 *
  6. * *
  7. * Copyright (c) 1992-1994, Microsoft Corp. All rights reserved. *
  8. * *
  9. \*****************************************************************************/
  10. #if !defined( _OLEBIND_H_ )
  11. #define _OLEBIND_H_
  12. #if !defined( INITGUID )
  13. #include <olectlid.h>
  14. #endif
  15. DEFINE_GUID(IID_IBoundObject,
  16. 0x9BFBBC00,0xEFF1,0x101A,0x84,0xED,0x00,0xAA,0x00,0x34,0x1D,0x07);
  17. DEFINE_GUID(IID_IBoundObjectSite,
  18. 0x9BFBBC01,0xEFF1,0x101A,0x84,0xED,0x00,0xAA,0x00,0x34,0x1D,0x07);
  19. typedef interface IBoundObject FAR* LPBOUNDOBJECT;
  20. typedef interface ICursor FAR* LPCURSOR;
  21. //#ifndef RUNTIME
  22. typedef interface IBoundObjectSite FAR* LPBOUNDOBJECTSITE;
  23. typedef interface ICursor FAR* FAR* LPLPCURSOR;
  24. //#endif
  25. //////////////////////////////////////////////////////////////////////////////
  26. //
  27. // IBoundObject interface
  28. //
  29. //////////////////////////////////////////////////////////////////////////////
  30. #undef INTERFACE
  31. #define INTERFACE IBoundObject
  32. DECLARE_INTERFACE_(IBoundObject, IUnknown)
  33. {
  34. //
  35. // IUnknown methods
  36. //
  37. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  38. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  39. STDMETHOD_(ULONG,Release)(THIS) PURE;
  40. //
  41. // IBoundObject methods
  42. //
  43. STDMETHOD(OnSourceChanged)(THIS_ DISPID dispid, BOOL fBound, BOOL FAR* lpfOwnXferOut) PURE;
  44. STDMETHOD(IsDirty)(THIS_ DISPID dispid) PURE;
  45. };
  46. //#ifndef RUNTIME
  47. //////////////////////////////////////////////////////////////////////////////
  48. //
  49. // IBoundObjectSite interface
  50. //
  51. //////////////////////////////////////////////////////////////////////////////
  52. #undef INTERFACE
  53. #define INTERFACE IBoundObjectSite
  54. DECLARE_INTERFACE_(IBoundObjectSite, IUnknown)
  55. {
  56. //
  57. // IUnknown methods
  58. //
  59. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  60. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  61. STDMETHOD_(ULONG,Release)(THIS) PURE;
  62. //
  63. // IBoundObjectSite methods
  64. //
  65. STDMETHOD(GetCursor)(THIS_ DISPID dispid, LPLPCURSOR ppCursor, LPVOID FAR* ppcidOut) PURE;
  66. };
  67. //#endif //RUNTIME
  68. #endif // !defined( _OLEBIND_H_ )