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.

51 lines
1.6 KiB

  1. //**********************************************************************
  2. // File name: ido.h
  3. //
  4. // Definition of CDataObject
  5. //
  6. // Copyright (c) 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _IDO_H_)
  9. #define _IDO_H_
  10. #include <ole2.h>
  11. #include "obj.h"
  12. class CSimpSvrObj;
  13. interface CDataObject : public IDataObject
  14. {
  15. private:
  16. CSimpSvrObj FAR * m_lpObj;
  17. public:
  18. CDataObject::CDataObject(CSimpSvrObj FAR * lpSimpSvrObj)
  19. {
  20. m_lpObj = lpSimpSvrObj;
  21. };
  22. CDataObject::~CDataObject() {};
  23. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  24. STDMETHODIMP_(ULONG) AddRef ();
  25. STDMETHODIMP_(ULONG) Release ();
  26. STDMETHODIMP DAdvise ( FORMATETC FAR* pFormatetc, DWORD advf,
  27. LPADVISESINK pAdvSink, DWORD FAR* pdwConnection);
  28. STDMETHODIMP DUnadvise ( DWORD dwConnection);
  29. STDMETHODIMP EnumDAdvise ( LPENUMSTATDATA FAR* ppenumAdvise);
  30. STDMETHODIMP EnumFormatEtc ( DWORD dwDirection,
  31. LPENUMFORMATETC FAR* ppenumFormatEtc);
  32. STDMETHODIMP GetCanonicalFormatEtc ( LPFORMATETC pformatetc,
  33. LPFORMATETC pformatetcOut);
  34. STDMETHODIMP GetData ( LPFORMATETC pformatetcIn, LPSTGMEDIUM pmedium );
  35. STDMETHODIMP GetDataHere ( LPFORMATETC pformatetc, LPSTGMEDIUM pmedium );
  36. STDMETHODIMP QueryGetData ( LPFORMATETC pformatetc );
  37. STDMETHODIMP SetData ( LPFORMATETC pformatetc, STGMEDIUM FAR * pmedium,
  38. BOOL fRelease);
  39. };
  40. #endif
  41.