Windows Media Format SDK banner art
PreviousNext

IWMReaderAdvanced::GetMaxStreamSampleSize

The GetMaxStreamSampleSize method retrieves the maximum buffer size to be allocated for the stream sample.

Syntax

HRESULT GetMaxStreamSampleSize(
  WORD  wStream
  DWORD*  pcbMax
);

Parameters

  wStream

[in]  WORD specifying the stream sample.

  pcbMax

[out]  Pointer to the buffer size to be allocated.

Return Values

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

Return code Meaning
ASF_E_INVALIDSTATE No file open for stream sample.
E_INVALIDARG wStream specifies the wrong output or pcbMax is a NULL pointer.
NS_E_NOT_CONFIGURED Output has been turned off through the SetOutputProps method call.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.