Skip to main content
IWMProfileManager interface

The IWMProfileManager interface is used to create profiles, load existing profiles, and save profiles. It can be used with both system profiles and application-defined custom profiles. To make changes to a profile, you must load it into a profile object using one of the loading methods of this interface. You can then access the profile data through the use of the interfaces of the profile object.

IWMProfileManager is the default interface of a profile manager object. When you create a new profile manager object using the WMCreateProfileManager function, you obtain a pointer to IWMProfileManager.

Note  When a profile manager object is created it parses all of the system profiles. Creating and releasing a profile manager every time you need to use it will adversely affect performance. You should create a profile manager once in your application and release it only when you no longer need to use it.
 

Members

The IWMProfileManager interface inherits from the IUnknown interface. IWMProfileManager also has these types of members:

Methods

The IWMProfileManager interface has these methods.

MethodDescription
CreateEmptyProfile

Creates an empty profile.

GetSystemProfileCount

Retrieves the number of system profiles.

LoadProfileByData

Creates a profile object and populates it with the data from an existing profile that has been saved to a string.

LoadProfileByID

Creates a profile object and populates it with the data from a system profile. Uses the GUID to find the profile data.

LoadSystemProfile

Creates a profile object and populates it with data from a system profile. Uses the profile's index to find the profile data.

SaveProfile

Saves a custom profile into a string. You can save the profile to disk by copying the string into a .prx file.

 

The following interfaces can be obtained by using the QueryInterface method of this interface.

InterfaceIID
IWMCodecInfo IID_IWMCodecInfo
IWMCodecInfo2 IID_IWMCodecInfo2
IWMCodecInfo3 IID_IWMCodecInfo3
IWMProfileManager2 IID_IWMProfileManager2
IWMProfileManagerLanguage IID_IWMProfileManagerLanguage

 

See also

Interfaces
IWMProfileManager2 Interface
Profile Manager Object
Profile Object
Using System Profiles
Working with Profiles