Partager via


IOleLink::GetBoundSource

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method returns an IUnknown pointer to the link source if the connection is currently active.

Syntax

HRESULT GetBoundSource(
  IUnknown** ppunk 
);

Parameters

  • ppunk
    [out] Address of the IDataObject* pointer variable that receives the interface pointer to the link source.

    When successful, the implementation must call the IUnknown::AddRef method on *ppunk; it is the caller's responsibility to call the IUnknown::Release method.

    If an error occurs, the implementation sets *ppunk to NULL.

Return Value

This method supports the standard return value E_FAIL.

If the method succeeds, the return value is S_OK.

Remarks

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

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header Oleidl.h, oleidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IDataObject
IUnknown::AddRef
IUnknown::Release