Microsoft DirectX 9.0 |
The GetMediaStream method retrieves a media stream, specified by purpose ID.
Syntax
HRESULT GetMediaStream(
REFMSPID idPurpose,
IMediaStream **ppMediaStream
);
Parameters
idPurpose
Reference to an MSPID that identifies the media stream to retrieve.
ppMediaStream
Address of variable that receives an IMediaStream interface pointer.
Return Values
Returns an HRESULT value. Possible values include the following.
Return code | Description |
E_POINTER | NULL pointer valid. |
MS_E_NOSTREAM | No matching stream. |
S_OK | Success. |
Remarks
If the method succeeds, the caller must release the IMediaStream interface.
See Also