GetTypeLibInfo Function

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

Syntax

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 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 System Requirements.

Header: TlbRef.h

Library: TlbRef.lib

.NET Framework Versions: Available since 2.0

See Also

Tlbexp Helper Functions
LoadTypeLibEx Function