COleServerItem::GetEmbedSourceData

void GetEmbedSourceData( LPSTGMEDIUM lpStgMedium );

Parameters

lpStgMedium

Pointer to the STGMEDIUM structure that will receive the CF_EMBEDSOURCE data for the OLE item.

Remarks

Call this function to get the CF_EMBEDSOURCE data for an OLE item. This format includes the item’s native data. You must have implemented the Serialize member function for this function to work properly.

The result can then be added to a data source by using COleDataSource::CacheData. This function is called automatically by COleServerItem::OnGetClipboardData.

For more information, see STGMEDIUM in the OLE 2 Programmer’s Reference, Volume 1.

COleServerItem OverviewClass MembersHierarchy Chart

See Also   COleServerItem::GetLinkSourceData, COleServerItem::GetObjectDescriptorData, COleDataSource::CacheData, CObject::Serialize