CDataObject::GetDataHere

HRESULT CDataObject::GetDataHere(LPFORMATETC lpFormatEtc, LPSTGMEDIUM lpStgMedium)

Get the data out of the object. This is a member of IDataObject

Defined in: DataSource.h

Return Value

Returns DV_E_LINDEX if lpFormatEtc->lindex is not == -1. Returns DATA_E_FORMATETC if an unavailable format was requested. Returns S_OK otherwise.

Parameters

lpFormatEtc

Pointer to a FORMATETC structure holding the format information of the requested data type.

lpStgMedium

Pointer to a STGMEDIUM structure holding the data.

Comments

GetData is a member of the COM interface IDataObject. Client allocates the STGMEDIUM structure See the Platform SDK documentation about IDataObject for more information