IWMSyncReader::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 null-terminated string containing the name of the setting. For a list of global constants representing setting names, see Output Settings.
Type
Member of the WMT_ATTR_DATATYPE enumeration type. This value specifies the type of data in the buffer at pValue.
pValue
Pointer to a byte array containing the value of the setting. The type of data stored in this buffer is specified by Type.
cbLength
Size of pValue in bytes.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
|
pszName or pValue is NULL.
OR dwOutputNum specifies an invalid output number. |
|
No file is open in the synchronous reader. |
|
pszName specifies an unsupported setting. |
Requirements
| Minimum supported client | Windows 2000 Professional [desktop apps only],Windows Media Format 9 Series 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) |