ResolveTypeLib Method

Resolves the simple name of a type library by returning its fully qualified path.

Syntax

HRESULT ResolveTypeLib(  
    [in]  BSTR      bstrSimpleName,  
    [in]  GUID      tlbid,  
    [in]  LCID      lcid,  
    [in]  USHORT    wMajorVersion,  
    [in]  USHORT    wMinorVersion,  
    [in]  SYSKIND   syskind,  
    [out] BSTR     *pbstrResolvedTlbName);  

Parameters

bstrSimpleName
[in] A BSTR that contains the simple name of the type library.

tlbid
[in] The GUID assigned to the type library in the registry.

lcid
[in] The localization ID of the type library.

wMajorVersion
[in] The major version number of the type library. For example, for version x.y, the major version number is x.

wMinorVersion
[in] The minor version number of the type library. For example, for version x.y, the minor version number is y.

syskind
[in] A SYSKIND flag that identifies the operating environment. Common values are SYS_WIN32 and SYS_WIN64.

pbstrResolvedTlbName
[out] A pointer to a BSTR that contains the full path of the type library named in the bstrSimpleName parameter.

Remarks

The ResolveTypeLib method is called by the LoadTypeLibWithResolver function during Tlbexp.exe (Type Library Exporter) processing.

Custom implementations of this interface must return a BSTR that contains the full path of the type library named in the bstrSimpleName parameter.

Requirements

Platforms: See System Requirements.

Header: TlbRef.idl, TlbRef.h

Library: TlbRef.lib

.NET Framework Versions: Available since 2.0

See also