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.
A version of this page is also available for
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 ImageCodecInfoobject 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::InstallImageCodecmethod 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