Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function 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 rgszTypesarray. 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 shown in the following list:
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_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 Value
Returns S_OK if successful or E_INVALIDARG if one or more parameters are invalid.
Requirements
Header | urlmon.h, urlmon.idl |
Library | urlmon.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |