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.

110 lines
2.8 KiB

  1. // StdDtObj.h : Declaration of the data object base class
  2. #ifndef __STDDTOBJ_H_INCLUDED__
  3. #define __STDDTOBJ_H_INCLUDED__
  4. class CDataObject : public IDataObject, public CComObjectRoot
  5. {
  6. BEGIN_COM_MAP(CDataObject)
  7. COM_INTERFACE_ENTRY(IDataObject)
  8. END_COM_MAP()
  9. public:
  10. CDataObject() {}
  11. virtual ~CDataObject();
  12. HRESULT STDMETHODCALLTYPE GetData(
  13. FORMATETC __RPC_FAR * pformatetcIn,
  14. STGMEDIUM __RPC_FAR * pmedium)
  15. {
  16. UNREFERENCED_PARAMETER (pformatetcIn);
  17. UNREFERENCED_PARAMETER (pmedium);
  18. return E_NOTIMPL;
  19. }
  20. HRESULT STDMETHODCALLTYPE GetDataHere(
  21. FORMATETC __RPC_FAR * pformatetc,
  22. STGMEDIUM __RPC_FAR * pmedium)
  23. {
  24. UNREFERENCED_PARAMETER (pformatetc);
  25. UNREFERENCED_PARAMETER (pmedium);
  26. return E_NOTIMPL;
  27. }
  28. HRESULT STDMETHODCALLTYPE QueryGetData(
  29. FORMATETC __RPC_FAR * pformatetc)
  30. {
  31. UNREFERENCED_PARAMETER (pformatetc);
  32. return E_NOTIMPL;
  33. }
  34. HRESULT STDMETHODCALLTYPE GetCanonicalFormatEtc(
  35. FORMATETC __RPC_FAR * pformatectIn,
  36. FORMATETC __RPC_FAR * pformatetcOut)
  37. {
  38. UNREFERENCED_PARAMETER (pformatectIn);
  39. UNREFERENCED_PARAMETER (pformatetcOut);
  40. return E_NOTIMPL;
  41. }
  42. HRESULT STDMETHODCALLTYPE SetData(
  43. FORMATETC __RPC_FAR *pformatetc,
  44. STGMEDIUM __RPC_FAR *pmedium,
  45. BOOL fRelease)
  46. {
  47. UNREFERENCED_PARAMETER (pformatetc);
  48. UNREFERENCED_PARAMETER (pmedium);
  49. UNREFERENCED_PARAMETER (fRelease);
  50. return E_NOTIMPL;
  51. }
  52. HRESULT STDMETHODCALLTYPE EnumFormatEtc(
  53. DWORD dwDirection,
  54. IEnumFORMATETC __RPC_FAR *__RPC_FAR * ppenumFormatEtc)
  55. {
  56. UNREFERENCED_PARAMETER (dwDirection);
  57. UNREFERENCED_PARAMETER (ppenumFormatEtc);
  58. return E_NOTIMPL;
  59. }
  60. HRESULT STDMETHODCALLTYPE DAdvise(
  61. FORMATETC __RPC_FAR * pformatetc,
  62. DWORD advf,
  63. IAdviseSink __RPC_FAR * pAdvSink,
  64. DWORD __RPC_FAR * pdwConnection)
  65. {
  66. UNREFERENCED_PARAMETER (pformatetc);
  67. UNREFERENCED_PARAMETER (advf);
  68. UNREFERENCED_PARAMETER (pAdvSink);
  69. UNREFERENCED_PARAMETER (pdwConnection);
  70. return E_NOTIMPL;
  71. }
  72. HRESULT STDMETHODCALLTYPE DUnadvise(
  73. DWORD dwConnection)
  74. {
  75. UNREFERENCED_PARAMETER (dwConnection);
  76. return E_NOTIMPL;
  77. }
  78. HRESULT STDMETHODCALLTYPE EnumDAdvise(
  79. IEnumSTATDATA __RPC_FAR *__RPC_FAR * ppenumAdvise)
  80. {
  81. UNREFERENCED_PARAMETER (ppenumAdvise);
  82. return E_NOTIMPL;
  83. }
  84. public:
  85. // Clipboard formats
  86. static CLIPFORMAT m_CFNodeType;
  87. static CLIPFORMAT m_CFNodeTypeString;
  88. static CLIPFORMAT m_CFSnapInCLSID;
  89. static CLIPFORMAT m_CFDataObjectType;
  90. static CLIPFORMAT m_CFRawCookie;
  91. static CLIPFORMAT m_CFSnapinPreloads;
  92. };
  93. #endif // ~__STDDTOBJ_H_INCLUDED__