UnRegisterTypeLib

This function removes type library information from the system registry. Use UnRegisterTypeLib to allow applications to properly uninstall themselves.

HRESULT UnRegisterTypeLib( 
  REFGUID libID,
  unsigned short wVerMajor
  unsigned short wVerMinor
  LCID lcid,
  SYSKIND syskind 
);

Parameters

  • libID
    [in] Globally unique identifier.
  • wVerMajor
    [in] Major version number of the type library being removed.
  • wVerMinor
    [in] Minor version number of the type library being removed.
  • lcid
    [in] Locale identifier.
  • syskind
    [in] The target operating system (SYSKIND).

Return Values

The following table shows the HRESULT values that can be returned by this function.

Value Description
S_OK Success.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the arguments is invalid.
TYPE_E_IOERROR The function could not write to the file.
TYPE_E_REGISTRYACCESS The system registration database could not be opened.
TYPE_E_INVALIDSTATE The type library could not be opened.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oleauto.h.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.