IWMReaderAdvanced2::SetOutputSetting method

The SetOutputSetting method specifies a named setting for a particular output.

Syntax

HRESULT SetOutputSetting(
  DWORD             dwOutputNum,
  LPCWSTR           pszName,
  WMT_ATTR_DATATYPE Type,
  const BYTE        *pValue,
  WORD              cbLength
);

Parameters

dwOutputNum

DWORD containing the output number.

pszName

Pointer to a wide-character null-terminated string containing the name. For a list of global constants that represent setting names, see Output Settings.

Type

Member of the WMT_ATTR_DATATYPE enumeration type that specifies the type of the value.

pValue

Pointer to a byte array containing the value.

cbLength

Size of pValue.

Return value

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only],Windows Media Format 7 SDK, or later versions of the SDK
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wmsdkidl.h (include Wmsdk.h)
Library Wmvcore.lib; WMStubDRM.lib (if you use DRM)

See also

IWMReaderAdvanced2 Interface

IWMReaderAdvanced2::GetOutputSetting