Share via


IConfigAsfWriter2::StreamNumFromPin

 
Microsoft DirectShow 9.0

IConfigAsfWriter2::StreamNumFromPin

The StreamNumFromPin method retrieves the stream number associated with the specified input pin.

Syntax

  HRESULT StreamNumFromPin(
  IPin*  pPin,
  WORD*  pwStreamNum
);

Parameters

pPin

[in]  Pointer to the IPin interface on the input pin.

pwStreamNum

[out]  Receives the stream number.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Remarks

You may need to use the Windows Media Format SDK interfaces directly to manipulate a stream before running the filter graph. This method is provided because you cannot assume that an ASF stream number is the same as the DirectShow pin number.

Requirements

Header: Include Dshowasf.

Library: None.

See Also