Information
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.

AtlLoadTypeLib

 

This function is called to load a type library.

System_CAPS_importantImportant

This function cannot be used in applications that execute in the Windows Runtime.


      ATLINLINE ATLAPI AtlLoadTypeLib(
HINSTANCE hInstTypeLib,
LPCOLESTR lpszIndex,
BSTR* pbstrPath,
ITypeLib** ppTypeLib 
);

hInstTypeLib

Handle to the module associated with the type library.

lpszIndex

String in the format "\\N", where N is the integer index of the type library resource. Can be NULL if no index is required.

pbstrPath

On successful return, contains the full path of the module associated with the type library.

ppTypeLib

On successful return, contains a pointer to a pointer to the loaded type library.

Returns S_OK on success, or an error HRESULT on failure.

This helper function is utilized by AtlRegisterTypeLib and AtlUnRegisterTypeLib.

Requirements

Header: atlbase.h

Show: