Share via


IInternetSession::RegisterMimeFilter (Windows CE 5.0)

Send Feedback

This method registers a temporary pluggable MIME filter on the current process.

HRESULT RegisterMimeFilter(IClassFactory* pCF,REFCLSID rclsid,LPCWSTR pwzType);

Parameters

  • pCF
    [in] Address of an IClassFactory interface where an IInternetProtocol object can be created.
  • rclsid
    [in] Reference to the pluggable MIME handler.
  • pwzType
    [in] String value that contains the MIME to register.

Return Values

Returns one of the values shown in the following table.

Value Description
S_OK Success.
E_FAIL The operation failed.
E_NOINTERFACE The class factory could not be obtained.

Remarks

This method only registers a pluggable MIME filter on the current process. No other processes will be affected by this method.

An application can register a pluggable MIME filter for a particular period of time when it wants to handle requests for some MIMEs by calling IInternetSession::RegisterMimeFilter. This method can be called multiple times using the same interface to register the different MIME types it wants to handle.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Urlmon.h, Urlmon.idl.
Link Library: Urlmon.lib.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.