IMFASFIndexer::GetIndexPosition method

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

Syntax


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

Parameters

pIContentInfo [in]

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

pcbIndexOffset [out]

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 codeDescription
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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wmcontainer.h

Library

Mfuuid.lib

See also

IMFASFIndexer
ASF Index Object

 

 

Community Additions

ADD
Show:
© 2014 Microsoft