Disconnects the selected links.
HRESULT CancelLink(
DWORD dwLink //Unique 32-bit link identifier
);
E_INVALIDARG, and E_OUTOFMEMORY, as well as the following:
Call CancelLink when the user selects the Break Link button from the Links dialog box. The link should be converted to a picture. The Links dialog box will not be dismissed for OLE links.
For OLE links, OleCreateStaticFromData can be used to create a static picture object using the IDataObject interface of the link as the source.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oledlg.h.
IDataObject, OleCreateStaticFromData