Share via


IMediaStream::GetInformation (Windows CE 5.0)

Send Feedback

This method retrieves the stream's purpose ID and media type.

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

Parameters

  • pPurposeId
    [out] Pointer to an MSPID value that will contain the stream's purpose ID.

    If this parameter is NULL on entry, the method will not 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 will not 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 one of the following:

  • MSPID_PrimaryVideo, which identifies the primary video stream
  • MSPID_PrimaryAudio, which identifies the primary audio stream

You can define other values if necessary.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.

See Also

IMediaStream Interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.