Compartir a través de


IConfigAsfWriter::ConfigureFilterUsingProfileGuid method (dshowasf.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The ConfigureFilterUsingProfileGuid method sets a predefined system profile on the WM ASF Writer filter. This method is deprecated. Applications should use the IConfigAsfWriter::ConfigureFilterUsingProfile method to set the profile.

Syntax

HRESULT ConfigureFilterUsingProfileGuid(
  [in] REFGUID guidProfile
);

Parameters

[in] guidProfile

Profile GUID as defined in the header file Wmsysprf.h.

Return value

Returns one of the following HRESULT values.

Return code Description
S_OK
Success.
E_FAIL
The profile is invalid.
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.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header dshowasf.h

See also

Creating ASF Files in DirectShow

Error and Success Codes

IConfigAsfWriter Interface