Previous | Next |
The SetMediaType method specifies a WM_MEDIA_TYPE structure describing the media type.
Syntax
HRESULT SetMediaType(
WM_MEDIA_TYPE* pType
);
Parameters
pType
[in] Pointer to a variable containing one member of the WM_MEDIA_TYPE enumeration type.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Meaning |
E_INVALIDTYPE | The pType parameter is NULL. |
E_OUTOFMEMORY | There is not enough available memory. |
See Also
Previous | Next |