Group: URL Monikers - Library: urlmon
Using the FindMediaType function
HRESULT FindMediaType(
LPCSTR rgszTypes,
CLIPFORMAT* rgcfTypes
);
DECLARE INTEGER FindMediaType IN urlmon;
STRING rgszTypes,;
INTEGER @ rgcfTypes
rgszTypes Address of a string value that identifies the media type.
rgcfTypes Address of the CLIPFORMAT value assigned to the specified media type.
Returns S_OK (0) if successful, or an error value otherwise.