WMEncoder.Load

Windows Media Encoder SDK banner art

The Load method loads an existing configuration from a file.

Syntax

WMEncoder.Load(strFileName)

Parameters

strFileName

[in]  String containing the file name.

Return Values

If this method fails, it returns an error number.

Number Description
0x8007000E Memory cannot be allocated.

Remarks

A configuration contains the data needed for an encoding session. The file name extension for a configuration file is .wme. To save a configuration, use the WMEncoder.Save method.

Example Code

' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder

' Load a predefined configuration from a file. The
' file name extension must be .wme.

Encoder.Load ("C:\filename.wme")

' Start the encoding process.
Encoder.Start

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also