MFCreateASFIndexerByteStream function (wmcontainer.h)

Creates a byte stream to access the index in an ASF stream.

Syntax

HRESULT MFCreateASFIndexerByteStream(
  [in]  IMFByteStream *pIContentByteStream,
  [in]  QWORD         cbIndexStartOffset,
  [out] IMFByteStream **pIIndexByteStream
);

Parameters

[in] pIContentByteStream

Pointer to the IMFByteStream interface of a byte stream that contains the ASF stream.

[in] cbIndexStartOffset

Byte offset of the index within the ASF stream. To get this value, call IMFASFIndexer::GetIndexPosition.

[out] pIIndexByteStream

Receives a pointer to the IMFByteStream interface. Use this interface to read from the index or write to the index. The caller must release the interface.

Return value

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

Return code Description
S_OK
The call succeeded.
MF_E_UNEXPECTED
The offset specified in cbIndexStartOffset is invalid.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header wmcontainer.h
Library Mf.lib
DLL Mf.dll

See also

ASF Index Object

IMFASFIndexer

Media Foundation Functions