UnRegisterTypeLibForUser function (oleauto.h)

Removes type library information that was registered by using RegisterTypeLibForUser.

Syntax

HRESULT UnRegisterTypeLibForUser(
  REFGUID libID,
  WORD    wMajorVerNum,
  WORD    wMinorVerNum,
  LCID    lcid,
  SYSKIND syskind
);

Parameters

libID

The GUID of the library.

wMajorVerNum

The major version of the type library.

wMinorVerNum

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
S_OK
Success.
E_INVALIDARG
One or more of the arguments is not valid.
E_OUTOFMEMORY
Insufficient memory to complete the operation.
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.

Remarks

Use UnRegisterTypeLibForUser to remove type library information for type libraries that were registered using the RegisterTypeLibForUser function.

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll