UnRegisterTypeLib

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

Removes type library information from the system registry. Use this API to allow applications to properly uninstall themselves. In-process objects typically call this API from DllUnregisterServer.

Parameters

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

Return Value

The return value obtained from the returned HRESULT is one of the following:

Return value Meaning
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.

Comments

In-process objects typically call this API from DllUnregisterServer.