Partager via


CBasePin::ReceiveConnection (Compact 2013)

3/26/2014

Makes a connection to the calling output pin.

Syntax

HRESULT ReceiveConnection(
  IPin* pConnector,
  AM_MEDIA_TYPE* pmt
);

Parameters

  • pConnector
    Connecting pin.
  • pmt
    Media type of the samples to be streamed.

Return Value

Returns an HRESULT value.

Remarks

This member function implements the IPin::ReceiveConnection method.

It calls CheckConnect and, if successful, then calls CheckMediaType to verify if the media type is acceptable.

If either of these calls fails, it calls BreakConnect and exits.

To finish the connection process, it calls CompleteConnect, which is implemented in CBasePin to return NOERROR, but can be overridden in the derived class.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBasePin Class