AtlRegisterTypeLib

 

This function is called to register a type library.

Important

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

Syntax

      ATLAPI AtlRegisterTypeLib(
HINSTANCE hInstTypeLib,
LPCOLESTR lpszIndex 
);

Parameters

  • hInstTypeLib
    The handle to the module instance.

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

Return Value

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

Remarks

This helper function is utilized by AtlComModuleUnregisterServer and CAtlComModule::RegisterTypeLib.

Requirements

Header: atlbase.h

See Also

Server Registration Global Functions
AtlLoadTypeLib
AtlUnRegisterTypeLib