RegisterMediaTypes
Registers media type strings.
Syntax
HRESULT RegisterMediaTypes(
UINT ctypes,
LPCSTR * rgszTypes,
CLIPFORMAT * rgcfTypes
);
Parameters
ctypes
[in] Unsigned integer value that contains the number of media type strings in the rgszTypes array. This parameter cannot be zero.rgszTypes
[in] Address of an array of strings identifying the media types to be registered. None of the strings in the array can be NULL. This can be one of the values in the following list.Value Description CF_NULL 0 SZ_URLCONTEXT (L"URL Context") CFSTR_MIME_FRACTALS (TEXT("application/fractals")) CFSTR_MIME_POSTSCRIPT (TEXT("application/postscript")) CFSTR_MIME_RAWDATA (TEXT("application/octet")) CFSTR_MIME_AIIF (TEXT("audio/aiif")) CFSTR_MIME_BASICAUDIO (TEXT("audio/basic")) CFSTR_MIME_WAV (TEXT("audio/wav")) CFSTR_MIME_X_AIIF (TEXT("audio/x-aiif")) CFSTR_MIME_X_REALAUDIO (TEXT("audio/x-pn-realaudio")) CFSTR_MIME_X_WAV (TEXT("audio/x-wav")) CFSTR_MIME_BMP (TEXT("image/bmp")) CFSTR_MIME_GIF (TEXT("image/gif")) CFSTR_MIME_JPEG (TEXT("image/jpeg")) CFSTR_MIME_TIFF (TEXT("image/tiff")) CFSTR_MIME_XBM (TEXT("image/xbm")) CFSTR_MIME_X_BITMAP (TEXT("image/x-bitmap")) CFSTR_MIME_HTML (TEXT("text/html")) CFSTR_MIME_TEXT (TEXT("text/plain")) CFSTR_MIME_AVI (TEXT("video/avi")) CFSTR_MIME_MPEG (TEXT("video/mpeg")) CFSTR_MIME_QUICKTIME (TEXT("video/quicktime")) CFSTR_MIME_X_MSVIDEO (TEXT("video/x-msvideo")) CFSTR_MIME_X_MSVIDEO (TEXT("video/x-sgi-movie")) rgcfTypes
[out] Address of an array of the 32-bit values assigned to corresponding media types in rgszTypes.
Return Values
Returns S_OK if successful, or E_INVALIDARG if one or more parameters are invalid.
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib
See Also
URL Moniker Services Functions | RegisterMediaTypeClass
Send Feedback on this topic to the authors