windows-nt/Source/XPSP1/NT/com/oleutest/simpsvr/ido.h
2020-09-26 16:20:57 +08:00

52 lines
1.6 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//**********************************************************************
// File name: ido.h
//
// Definition of CDataObject
//
// Copyright (c) 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************
#if !defined( _IDO_H_)
#define _IDO_H_
#include <ole2.h>
#include "obj.h"
class CSimpSvrObj;
interface CDataObject : public IDataObject
{
private:
CSimpSvrObj FAR * m_lpObj;
public:
CDataObject::CDataObject(CSimpSvrObj FAR * lpSimpSvrObj)
{
m_lpObj = lpSimpSvrObj;
};
CDataObject::~CDataObject() {};
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);
STDMETHODIMP DUnadvise ( DWORD dwConnection);
STDMETHODIMP EnumDAdvise ( LPENUMSTATDATA FAR* ppenumAdvise);
STDMETHODIMP EnumFormatEtc ( DWORD dwDirection,
LPENUMFORMATETC FAR* ppenumFormatEtc);
STDMETHODIMP GetCanonicalFormatEtc ( LPFORMATETC pformatetc,
LPFORMATETC pformatetcOut);
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);
};
#endif