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 uninstall an imaging codec.

Syntax

HRESULT UninstallImageCodec(
  const WCHAR* 
codecName,
  UINT		 
flags
);

Parameters

codecName

[in] A WCHAR array containing the name of the imaging codec.

flags

[in] A UINT value that identifies the part of the registry that the codec should be removed from.

Set this parameter to one of the ImageCodecFlagsenumeration values in the following table.

Flag Description

ImageCodecFlagsUser

Removes codec information from the HKEY_CURRENT_USER branch of the registry.

ImageCodecFlagsSystem

Removes codec information from the HKEY_LOCAL_MACHINE branch of the registry.

Return Value

If successful, this method returns S_OK.

This method may return E_INVALIDARG if it fails.

Remarks

For information on installing codecs see IImagingFactory::InstallImageCodec.

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