windows-nt/Source/XPSP1/NT/com/oleutest/utests16/simpdnd/dxferobj.h

58 lines
1.8 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//**********************************************************************
// File name: dxferobj.h
//
// Definition of CDataXferObj
//
// Copyright (c) 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************
#if !defined( _DATAXFEROBJ_H_)
#define _DATAXFEROBJ_H_
class CSimpleSite;
interface CDataObject;
class CDataXferObj : public IDataObject
{
private:
int m_nCount; // reference count
SIZEL m_sizel;
POINTL m_pointl;
LPSTORAGE m_lpObjStorage;
LPOLEOBJECT m_lpOleObject;
// construction/destruction
CDataXferObj();
~CDataXferObj();
public:
STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
STDMETHODIMP_(ULONG) AddRef ();
STDMETHODIMP_(ULONG) Release ();
STDMETHODIMP DAdvise ( FORMATETC FAR* pFormatetc, DWORD advf,
LPADVISESINK pAdvSink, DWORD FAR* pdwConnection)
{ return ResultFromScode(OLE_E_ADVISENOTSUPPORTED); }
STDMETHODIMP DUnadvise ( DWORD dwConnection)
{ return ResultFromScode(OLE_E_ADVISENOTSUPPORTED); }
STDMETHODIMP EnumDAdvise ( LPENUMSTATDATA FAR* ppenumAdvise)
{ return ResultFromScode(OLE_E_ADVISENOTSUPPORTED); }
STDMETHODIMP EnumFormatEtc ( DWORD dwDirection,
LPENUMFORMATETC FAR* ppenumFormatEtc);
STDMETHODIMP GetCanonicalFormatEtc ( LPFORMATETC pformatetc,
LPFORMATETC pformatetcOut)
{ pformatetcOut->ptd = NULL; return ResultFromScode(E_NOTIMPL); }
STDMETHODIMP GetData (LPFORMATETC pformatetcIn, LPSTGMEDIUM pmedium );
STDMETHODIMP GetDataHere (LPFORMATETC pformatetc, LPSTGMEDIUM pmedium);
STDMETHODIMP QueryGetData (LPFORMATETC pformatetc );
STDMETHODIMP SetData (LPFORMATETC pformatetc, STGMEDIUM FAR * pmedium,
BOOL fRelease)
{ return ResultFromScode(E_NOTIMPL); }
static CDataXferObj FAR* Create(CSimpleSite FAR* lpSite,
POINTL FAR* pPointl);
};
#endif // _DATAXFEROBJ_H_