IMFASFIndexer::SetIndexStatus method (wmcontainer.h)
Configures the index for a stream.
Syntax
HRESULT SetIndexStatus(
[in] BYTE *pbIndexDescriptor,
[in] DWORD cbIndexDescriptor,
[in] BOOL fGenerateIndex
);
Parameters
[in] pbIndexDescriptor
The index descriptor to set. The index descriptor is an ASF_INDEX_DESCRIPTOR structure, optionally followed by index-specific data.
[in] cbIndexDescriptor
The size, in bytes, of the index descriptor.
[in] fGenerateIndex
A Boolean value. Set to TRUE to have the indexer create an index of the type specified for the stream specified in the index descriptor.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
At attempt was made to change the index status in a seek-only scenario. For more information, see Remarks. |
Remarks
You must make all calls to SetIndexStatus before making any calls to IMFASFIndexer::GenerateIndexEntries.
The indexer object is configured to create temporal indexes for each stream by default. Call this method only if you want to override the default settings.
You cannot use this method in an index reading scenario. You can only use this method when writing indexes.
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 |