IMFSAMIStyle::GetSelectedStyle method (mfidl.h)

Gets the current style from the SAMI media source.

Syntax

HRESULT GetSelectedStyle(
  [out] LPWSTR *ppwszStyle
);

Parameters

[out] ppwszStyle

Receives a pointer to a null-terminated string that contains the name of the style. If no style is currently set, the method returns an empty string. The caller must free the memory for the string by calling CoTaskMemFree.

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