Share via


ResolveTypeLib Method

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

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 Data Type 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 Enumeration flag that identifies the operating environment. Common values are SYS_WIN32 and SYS_WIN64.

  • pbstrResolvedTlbName
    [out] A pointer to a BSTR Data Type 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 Data Type that contains the full path of the type library named in the bstrSimpleName parameter.

Requirements

Platforms: See .NET Framework System Requirements.

Header: TlbRef.idl, TlbRef.h

Library: TlbRef.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

LoadTypeLibEx Function

Other Resources

Tlbexp Helper Functions (Unmanaged API Reference)