Share via


IWMEncProfileCollection::put_ProfileDirectory

Windows Media Encoder SDK banner art

The put_ProfileDirectory method specifies the location where custom profiles are stored.

Syntax

HRESULT put_ProfileDirectory(
  BSTR  bstrDirectory
);

Parameters

bstrDirectory

[in]  BSTR containing the path to the custom profile directory.

Return Values

If the method succeeds, it returns S_OK. If it fails, it supports the IErrorInfo interface and returns an HRESULT error code.

Remarks

Use the put_ProfileDirectory method to specify where to get custom profiles for the current encoding session. For custom profiles to be included in the profile collection, and therefore available for encoding content, they must be located in the custom profile directory. After you specify a different directory, use the Refresh method to update the profile collection.

The put_ProfileDirectory method modifies only the custom profile directory for that particular encoding session. To change this directory permanently, or to view the default directory, see the registry key My Computer\HKEY_CLASSES_ROOT\Software\Microsoft\Windows Media Tools\Encoder\ProfileMgr\Directory.

The file name extension for profiles is .prx.

Requirements

Header: wmencode.h

Library: wmenc.exe

See Also