次の方法で共有


CBasePin::AttemptConnection (Compact 2013)

3/26/2014

This member function is used to attempt to connect with a given media type.

Syntax

virtual HRESULT AttemptConnection(
  IPin* pReceivePin,
  const CMediaType* pmt
);

Parameters

  • pReceivePin
    Pointer to the receiving pin.
  • pmt
    Pointer to a media type object containing the preferred media type for the connection.

Return Value

Returns an HRESULT value.

Remarks

This member function is used to attempt to connect with a given media type.

Its main purpose is to call the IPin::ReceiveConnection method of the pin passed in the pReceivePin parameter.

This member function is protected.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CBasePin Class