WMEncoder.OnArchiveStateChange
The OnArchiveStateChange event receives an event notice indicating a change in the archiving state when outputting encoded content to a file.
Syntax
WMEncoder.OnArchiveStateChange(enumArchive, enumState)
Parameters
enumArchive
[in] Member of a WMENC_ARCHIVE_TYPE enumeration type sent by Windows Media Encoder to specify where the archived content is being saved.
enumState
[in] Member of a WMENC_ARCHIVE_STATE enumeration type that specifies the archiving state.
Return Values
This event does not return a value.
Remarks
Use OnArchiveStateChange to respond to notifications of changes in the state of the archiving process. For example, use this callback to determine when to enable or disable command buttons that depend upon whether archiving has been started or stopped.
Example Code
Private Sub Encoder_OnArchiveStateChange( _
ByVal enumArchive As WMEncoderLib.WMENC_ARCHIVE_TYPE, _
ByVal enumState As WMEncoderLib.WMENC_ARCHIVE_STATE)
Select Case enumArchive
Case WMENC_ARCHIVE_LOCAL
Select Case enumState
Case WMENC_ARCHIVE_RUNNING
' Process the case.
Case WMENC_ARCHIVE_PAUSED
' Process the case.
Case WMENC_ARCHIVE_STOPPED
' Process the case.
End Select
End Select
End Sub
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also