Share via


IImagingFactory::InstallImageCodec

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method is used to install an imaging codec.

Syntax

HRESULT InstallImageCodec(
  const ImageCodecInfo* codecInfo
);

Parameters

  • codecInfo
    [in] A pointer to an ImageCodecInfo object describing the codec to install.

Return Value

If successful, this method returns S_OK.

This method may return E_INVALIDARG if it fails.

Remarks

This method is primarily for third-party codec developers.

To install an external codec DLL, first register the COM component for your DLL. After the COM component is registered, call the IImagingFactory::InstallImageCodec method to complete the installation.

To uninstall a codec DLL, complete the process in reverse order: First, call IImagingFactory::UninstallImageCodec; then deregisterer your COM component.

Requirements

Header imaging.h
Library Imaging.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IImagingFactory
ImageCodecInfo
IImagingFactory::UninstallImageCodec