WMEncoder.get_ArchiveState

Windows Media Encoder SDK banner art

The get_ArchiveState method retrieves a value that indicates whether content is being archived.

Syntax

WMENC_ARCHIVE_STATE WMEncoder.get_ArchiveState(
  WMENC_ARCHIVE_TYPE  enumType
);

Parameters

enumType

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

Return Values

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

using WMEncoderLib;

try
{
// The encoding process must be archiving to a file. See either
// the IWMEncFile interface or the IWMEncFileArchiveStats interface
// for a complete example of the archiving process.
switch (Encoder.get_ArchiveState(WMENC_ARCHIVE_TYPE.WMENC_ARCHIVE_LOCAL))
{
    case WMENC_ARCHIVE_STATE.WMENC_ARCHIVE_RUNNING:
        // Process the case.
        break;
    case WMENC_ARCHIVE_STATE.WMENC_ARCHIVE_PAUSED:
        // Process the case.
        break;
    case WMENC_ARCHIVE_STATE.WMENC_ARCHIVE_STOPPED:
        // Process the case.
        break;
    case default:
        // None of the above.
        break;
}
}

catch (Exception e)
{
     // TODO: Handle exceptions.
}

Requirements

Reference: Windows Media Encoder

Namespace: WMEncoderLib

Assembly: Interop.WMEncoderLib.dll

Library: WMEncoderLib.dll

See Also