Registers a mapping of media types to CLSIDs to override the default mapping specified in the registry. The new mapping is used calls to IMoniker::BindToObject when binding objects in the specified bind context.
HRESULT RegisterMediaTypeClass(
LPBC pbc, |
//Pointer to the bind context |
UINT ctypes, |
//Number of media type strings in rgszTypes |
LPCSTR *rgszTypes, |
//Pointer to array of media types to be registered |
CLSID *rgclsID, |
//Pointer to array of CLSIDs corresponding to rgszTypes |
DWORD dwReserved |
//Reserved for future use; must be zero |
); |
Parameters
Return Values
Remarks
This function is primarily used by moniker clients calling IMoniker::BindToObject to override the default registry mapping between mime types and CLSIDs. In most cases, the default mapping provided in the registry is used. However, a web browser may want the CLSID for its HTML viewer to be associated with .TXT files without changing the default registry association for text files. The override is used for all bind operations using the specified bind context.
See Also