The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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


[in] The file name of the type library.


[out] The GUID of the type library.


[out] The localization ID of the type library.


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


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


[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: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista

Header: TlbRef.h

Library: TlbRef.lib

.NET Framework Version: 3.5, 3.0, 2.0

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft