UnRegisterTypeLib function (oleauto.h)
Removes type library information from the system registry. Use this API to allow applications to properly uninstall themselves.
Syntax
HRESULT UnRegisterTypeLib(
REFGUID libID,
WORD wVerMajor,
WORD wVerMinor,
LCID lcid,
SYSKIND syskind
);
Parameters
libID
The GUID of the type library.
wVerMajor
The major version of the type library.
wVerMinor
The minor version of the type library.
lcid
The locale identifier.
syskind
The target operating system.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
One or more of the arguments is not valid. |
|
Insufficient memory to complete the operation. |
|
The function could not write to the file. |
|
The system registration database could not be opened. |
|
The type library could not be opened. |
Remarks
In-process objects typically call this API from DllUnregisterServer.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |