IConfigAsfWriter::ConfigureFilterUsingProfileGuid 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 ConfigureFilterUsingProfileGuid method configures the filter to write an ASF file based on the specified predefined profile. (Deprecated.)

Syntax

HRESULT ConfigureFilterUsingProfileGuid(
  [in] REFGUID guidProfile
);

Parameters

guidProfile [in]

GUID identifying a profile as defined in the Windows Media Format SDK header file Wmsysprf.h.

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

Beginning with the Windows Media Format 9 Series SDK, no new system profiles have been defined. Only version 8 (or earlier) system profile GUIDs can be used with this method.

See also

IConfigAsfWriter Interface