IConfigAsfWriter::ConfigureFilterUsingProfile method

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The ConfigureFilterUsingProfile method is the recommended way to set a profile. It configures the filter to write an ASF file based on the specified application-defined profile.

Syntax

HRESULT ConfigureFilterUsingProfile(
  [in] IWMProfile *pProfile
);

Parameters

pProfile [in]

Pointer to the IWMProfile interface on the application-defined profile.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
The IWMProfile interface pointer is not valid.
VFW_E_WRONG_STATE
The graph is stopped.

Remarks

If successful, this method will cause an EC_GRAPH_CHANGED event to be sent to the application. Use this method to configure the writer with a custom Windows Media 9 Series profile you have created (or loaded from an existing .prx file) using the methods of the Windows Media Format SDK.

See also

IConfigAsfWriter Interface