This documentation is archived and is not being maintained.

GetTypeLibInfo Function

Returns information about the specified type library by examining its TLIBATTR structure.

HRESULT GetTypeLibInfo(
    [in]   LPWSTR     szFile,
    [out]  GUID      *pTypeLibID,
    [out]  LCID      *pTypeLibLCID,
    [out]  SYSKIND   *pTypeLibPlatform,
    [out]  USHORT    *pTypeLibMajorVer,
    [out]  USHORT    *pTypeLibMinorVer
);

szFile

[in] The file name of the type library.

pTypeLibID

[out] The GUID of the type library.

pTypeLibLCID

[out] The localization ID of the type library.

pTypeLibPlatform

[out] A SYSKIND flag that identifies the target operating system for the type library. Common values are SYS_WIN32 and SYS_WIN64.

pTypeLibMajorVer

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

pTypeLibMinorVer

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

The GetTypeLibInfo function is called by the Type Library Exporter (Tlbexp.exe). This tool generates a type library that describes the types in a common language runtime (CLR) assembly.

If any parameter is null, the function returns an HRESULT of E_POINTER. Otherwise, it returns S_OK.

Platforms: See .NET Framework System Requirements.

Header: TlbRef.h

Library: TlbRef.lib

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

Show: