GetTypeLibInfo Function
Returns information about the specified type library by examining its TLIBATTR Structure structure.
HRESULT GetTypeLibInfo(
[in] LPWSTR szFile,
[out] GUID *pTypeLibID,
[out] LCID *pTypeLibLCID,
[out] SYSKIND *pTypeLibPlatform,
[out] USHORT *pTypeLibMajorVer,
[out] USHORT *pTypeLibMinorVer
);
Parameters
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 Enumeration 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.
Remarks
The GetTypeLibInfo function is called by the Tlbexp.exe (Type Library Exporter). 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.
Requirements
Platforms: See .NET Framework System Requirements.
Header: TlbRef.h
Library: TlbRef.lib
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0