CDataObject::GetData

HRESULTCDataObject::GetData(LPFORMATETClpFormatEtc, LPSTGMEDIUMlpStgMedium)

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-&gtlindex 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. Server allocates the STGMEDIUM structure. See the See the Platform SDK documentation about IDataObject for more information