COleServerItem::GetLinkSourceData

Call this function to get the CF_LINKSOURCE data for an OLE item.

BOOL GetLinkSourceData(
   LPSTGMEDIUM lpStgMedium 
);

Parameters

  • lpStgMedium
    Pointer to the STGMEDIUM structure that will receive the CF_LINKSOURCE data for the OLE item.

Return Value

Nonzero if successful; otherwise 0.

Remarks

This format includes the CLSID describing the type of the OLE item and the information needed to locate the document containing the OLE item.

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

For more information, see STGMEDIUM in the Windows SDK.

Requirements

Header: afxole.h

See Also

Concepts

COleServerItem Class

COleServerItem Members

Hierarchy Chart

COleServerItem::GetEmbedSourceData

COleServerItem::GetObjectDescriptorData