Share via


WMEncProfile2.LoadFromIWMProfile

Windows Media Encoder SDK banner art

The LoadFromIWMProfile method loads a profile from an IWMProfile or IWMEncProfile interface.

Syntax

WMEncProfile2.LoadFromIWMProfile(UnkProfile)

Parameters

UnkProfile

[in]  Unknown specifies an IWMProfile or IWMEncProfile object.

Return Values

This method does not return a value.

Remarks

This method allows you to work with profile objects (IWMProfile) that you create with the Windows Media Format SDK.

Example Code

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

' Retrieve an existing profile to modify.
  Dim ProColl As IWMEncProfileCollection
  Set ProColl = Encoder.ProfileCollection
  Dim Pro1 As IWMEncProfile
  Set Pro1 = ProColl.Item(4)

' Create the WMEncProfile2 object.
  Dim Pro2 As WMEncProfile2
  Set Pro2 = New WMEncProfile2

' Load the profile.
  Pro2.LoadFromIWMProfile Pro1

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also