IOleLink::GetBoundSource

Returns an IUnknown pointer to the link source if the connection is currently active.

HRESULT GetBoundSource(
  IUnknown **ppunk  //Address of output variable that receives the 
                    // IUnknown interface pointer
);
 

Parameter

ppunk
[out] Address of IDataObject* pointer variable that receives the interface pointer to the link source. When successful, the implementation must call IUnknown::AddRef on *ppunk; it is the caller's responsibility to call IUnknown::Release. If an error occurs, the implementation sets *ppunk to NULL.

Return Values

This method supports the standard return value E_FAIL, as well as the following:

S_OK
A pointer was returned successfully.

Remarks

You typically do not need to call IOleLink::GetBoundSource.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in oleidl.h.