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 function removes type library information from the system registry. Use UnRegisterTypeLibto allow applications to properly uninstall themselves.
Syntax
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 Value
Returns the HRESULT values shown in the following table.
Value | Description |
---|---|
S_OK |
Success. |
E_OUTOFMEMORY |
Out of memory. |
E_INVALIDARG |
One or more 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
Header | oleauto.h |
Library | oleaut32.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |