IMFSAMIStyle::SetSelectedStyle method (mfidl.h)

Sets the current style on the SAMI media source.

Syntax

HRESULT SetSelectedStyle(
  [in] LPCWSTR pwszStyle
);

Parameters

[in] pwszStyle

Pointer to a null-terminated string containing the name of the style. To clear the current style, pass an empty string (""). To get the list of style names, call IMFSAMIStyle::GetStyles.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFSAMIStyle

SAMI Media Source