IWMSyncReader::GetReadStreamSamples method

The GetReadStreamSamples method ascertains whether a stream is configured to deliver compressed samples.

Syntax

HRESULT GetReadStreamSamples(
  WORD wStreamNum,
  BOOL *pfCompressed
);

Parameters

wStreamNum

WORD containing the stream number.

pfCompressed

Pointer to a flag that receives the status of compressed delivery for the stream specified.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_INVALIDARG
pfCompressed is NULL.

OR

wStreamNum specifies an invalid stream number.

E_UNEXPECTED
No file is open in the synchronous reader.

Remarks

To configure a stream to deliver compressed samples, call IWMSyncReader::SetReadStreamSamples.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only],Windows Media Format 9 Series SDK, or later versions of the SDK
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wmsdkidl.h (include Wmsdk.h)
Library Wmvcore.lib; WMStubDRM.lib (if you use DRM)

See also

IWMSyncReader Interface