WMEncoder.Indexer
The Indexer method cancels the indexing process before it is complete.
Syntax
WMEncoder.Indexer(enumIndexerOp)
Parameters
enumIndexerOp
[in] Member of the WMENC_INDEXER_OPERATION enumeration type that indicates whether the indexing process will be cancelled.
Return Values
If this method fails, it returns an error number.
Number | Description |
0x80070057 | You can only specify WMENC_INDEXER_STOP. |
Remarks
Stopping the indexing process before completion may corrupt the Windows Media file, and is not recommended.
The index is added during the encoding process and is no longer a separate process.
Example Code
' Check to see if the indexer is running.
Dim iIndexState As WMENC_INDEXER_STATE
iIndexState = Encoder.IndexerState
If iIndexState = WMENC_INDEXER_RUNNING Then
' Stop the indexing process.
Encoder.Indexer WMENC_INDEXER_STOP
End If
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also