AtlLoadTypeLib
This function is called to load a type library.
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.
Требования
Header: atlbase.h