IConfigAsfWriter::ConfigureFilterUsingProfileId 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 ConfigureFilterUsingProfileId method configures the filter to write an ASF file with a profile identifier (ID) index from the system profile list. (For Windows Media Format 4.0 profiles only.)

Syntax

HRESULT ConfigureFilterUsingProfileId(
  [in] DWORD dwProfileId
);

Parameters

dwProfileId [in]

Profile ID as defined in version 4.0 of the Windows Media Format SDK.

Return value

Returns one of the following HRESULT values.

Return code Description
S_OK
The method succeeded.
E_FAIL
The profile is not valid.
VFW_E_WRONG_STATE
The filter graph is stopped.

Remarks

This method is now obsolete because it assumes version 4.0 Windows Media Format SDK profiles. To configure the filter for version 7.0 and later profiles, use IConfigAsfWriter::ConfigureFilterUsingProfile or IConfigAsfWriter::ConfigureFilterUsingProfileGuid.

See also

IConfigAsfWriter Interface