IMFASFIndexer::GetIndexPosition method (wmcontainer.h)

Retrieves the offset of the index object from the start of the content.

Syntax

HRESULT GetIndexPosition(
  [in]  IMFASFContentInfo *pIContentInfo,
  [out] QWORD             *pcbIndexOffset
);

Parameters

[in] pIContentInfo

Pointer to the IMFASFContentInfo interface of the ContentInfo object that describes the content.

[out] pcbIndexOffset

Receives the offset of the index relative to the beginning of the content described by the ContentInfo object. This is the position relative to the beginning of the ASF file.

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
pIContentInfo is NULL or pcbIndexOffset is NULL

Remarks

The index continues from the offset retrieved by this method to the end of the file.

You must call IMFASFIndexer::Initialize to set up the indexer before calling this method.

If the index is retrieved by using more than one call to IMFASFIndexer::GetCompletedIndex, the position of individual index portions is equal to the index offset plus the offset of the portion within the index.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wmcontainer.h
Library Mfuuid.lib

See also

ASF Index Object

IMFASFIndexer