Share via


IMediaStream::GetInformation

 
Microsoft DirectShow 9.0

IMediaStream::GetInformation

  • Note   This interface is deprecated. New applications should not use it.

Retrieves the stream's purpose ID and media type.

Syntax

  HRESULT GetInformation(
  MSPID *pPurposeId,
  STREAM_TYPE *pType
  );

Parameters

pPurposeId

[out] Pointer to an MSPID value that will contain the stream's purpose ID (see Multimedia Streaming Data Types). If this parameter is NULL on entry, the method won't retrieve the purpose ID.

pType

[out] Pointer to a STREAM_TYPE enumerated data type value that will contain the stream's media type. If this parameter is NULL on entry, the method won't retrieve the media type.

Return Values

Returns S_OK if successful or E_POINTER if one of the parameters is invalid.

Remarks

The value retrieved in the pPurposeId parameter will usually be either MSPID_PrimaryVideo, which identifies the primary video stream, or MSPID_PrimaryAudio, which identifies the primary audio stream; however, you can define other values if necessary.

See Also