IWMPPlugin::GetCaps method (wmpservices.h)
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The IWMPPlugin::GetCaps method returns a flag that specifies whether the plug-in can convert between an input format and an output format.
Syntax
HRESULT GetCaps(
[out] DWORD *pdwFlags
);
Parameters
[out] pdwFlags
Pointer to a variable that specifies whether the plug-in can convert formats. The specified value is a bitwise combination of zero or more flags from the WMPPlugin_Caps enumeration.
Return value
The method returns an HRESULT.
Remarks
There are currently two possible [out] values that the plug-in may specify: zero to indicate that the plug-in can convert formats, or WMPPlugin_Caps_CannotConvertFormats, which forces Windows Media Player to handle any necessary format conversion.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Media Player 9 Series or later. |
Target Platform | Windows |
Header | wmpservices.h |