WMEncoder.ArchiveState

Windows Media Encoder SDK banner art

The ArchiveState property retrieves a value that indicates whether content is being archived.

Syntax

WMENC_ARCHIVE_STATE = WMEncoder.ArchiveState(enumType)

Parameters

enumType

[in]  Member of a WMENC_ARCHIVE_TYPE enumeration type indicating where encoded content is stored.

Property Value

A member of a WMENC_ARCHIVE_STATE enumeration type indicating whether the archiving process has been started or stopped.

If this property fails, it returns an error number.

Number Description
0xC00D1B77 You can only specify WMENC_ARCHIVE_LOCAL as the archive type.

Example Code

' The encoding process must be archiving to a file. See either
' the IWMEncFile object or the IWMEncFileArchiveStats object
' for a complete example of the archiving process.
Private Sub ArchivingState()
    Select Case Encoder.ArchiveState(WMENC_ARCHIVE_LOCAL)
        Case WMENC_ARCHIVE_RUNNING
          ' Process the case.
        Case WMENC_ARCHIVE_PAUSED
          ' Process the case.
        Case WMENC_ARCHIVE_STOPPED
          ' Process the case.
        Case Else
          ' None of the above.
    End Select
End Sub

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also