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.

53 lines
1.5 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. int m_nCount;
  18. public:
  19. CDataObject::CDataObject(CSimpSvrObj FAR * lpSimpSvrObj)
  20. {
  21. m_lpObj = lpSimpSvrObj;
  22. m_nCount = 0;
  23. };
  24. CDataObject::~CDataObject() {};
  25. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  26. STDMETHODIMP_(ULONG) AddRef ();
  27. STDMETHODIMP_(ULONG) Release ();
  28. STDMETHODIMP DAdvise ( FORMATETC FAR* pFormatetc, DWORD advf,
  29. LPADVISESINK pAdvSink, DWORD FAR* pdwConnection);
  30. STDMETHODIMP DUnadvise ( DWORD dwConnection);
  31. STDMETHODIMP EnumDAdvise ( LPENUMSTATDATA FAR* ppenumAdvise);
  32. STDMETHODIMP EnumFormatEtc ( DWORD dwDirection,
  33. LPENUMFORMATETC FAR* ppenumFormatEtc);
  34. STDMETHODIMP GetCanonicalFormatEtc ( LPFORMATETC pformatetc,
  35. LPFORMATETC pformatetcOut);
  36. STDMETHODIMP GetData ( LPFORMATETC pformatetcIn, LPSTGMEDIUM pmedium );
  37. STDMETHODIMP GetDataHere ( LPFORMATETC pformatetc, LPSTGMEDIUM pmedium );
  38. STDMETHODIMP QueryGetData ( LPFORMATETC pformatetc );
  39. STDMETHODIMP SetData ( LPFORMATETC pformatetc, STGMEDIUM FAR * pmedium,
  40. BOOL fRelease);
  41. };
  42. #endif