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.9 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. // trevors: To build with vc5, we should not include olectlid.h anymore. We
  14. // should include olectl.h. We check to see if we are compiling with vc5 or
  15. // not and include the correct header file.
  16. #if _MSC_VER == 1100
  17. #include <olectl.h>
  18. #else
  19. #include <olectlid.h>
  20. #endif // _MSC_VER
  21. #endif
  22. DEFINE_GUID(IID_IBoundObject,
  23. 0x9BFBBC00,0xEFF1,0x101A,0x84,0xED,0x00,0xAA,0x00,0x34,0x1D,0x07);
  24. DEFINE_GUID(IID_IBoundObjectSite,
  25. 0x9BFBBC01,0xEFF1,0x101A,0x84,0xED,0x00,0xAA,0x00,0x34,0x1D,0x07);
  26. typedef interface IBoundObject FAR* LPBOUNDOBJECT;
  27. typedef interface ICursor FAR* LPCURSOR;
  28. typedef interface IBoundObjectSite FAR* LPBOUNDOBJECTSITE;
  29. typedef interface ICursor FAR* FAR* LPLPCURSOR;
  30. //////////////////////////////////////////////////////////////////////////////
  31. //
  32. // IBoundObject interface
  33. //
  34. //////////////////////////////////////////////////////////////////////////////
  35. #undef INTERFACE
  36. #define INTERFACE IBoundObject
  37. DECLARE_INTERFACE_(IBoundObject, IUnknown)
  38. {
  39. //
  40. // IUnknown methods
  41. //
  42. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  43. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  44. STDMETHOD_(ULONG,Release)(THIS) PURE;
  45. //
  46. // IBoundObject methods
  47. //
  48. STDMETHOD(OnSourceChanged)(THIS_ DISPID dispid, BOOL fBound, BOOL FAR* lpfOwnXferOut) PURE;
  49. STDMETHOD(IsDirty)(THIS_ DISPID dispid) PURE;
  50. };
  51. //////////////////////////////////////////////////////////////////////////////
  52. //
  53. // IBoundObjectSite interface
  54. //
  55. //////////////////////////////////////////////////////////////////////////////
  56. #undef INTERFACE
  57. #define INTERFACE IBoundObjectSite
  58. DECLARE_INTERFACE_(IBoundObjectSite, IUnknown)
  59. {
  60. //
  61. // IUnknown methods
  62. //
  63. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  64. STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  65. STDMETHOD_(ULONG,Release)(THIS) PURE;
  66. //
  67. // IBoundObjectSite methods
  68. //
  69. STDMETHOD(GetCursor)(THIS_ DISPID dispid, LPLPCURSOR ppCursor, LPVOID FAR* ppcidOut) PURE;
  70. };
  71. #endif // !defined( _OLEBIND_H_ )
  72.