Share via


AtlModuleRegisterTypeLib

Registers a type library.

Note   This function is obsolete in Visual C++ .NET 2002 and later but is available for backward compatibility with projects created with previous versions of Visual C++.

ATLAPI AtlModuleRegisterTypeLib(
   _ATL_MODULE* pM,
   LPCOLESTR lpszIndex 
);

Parameters

  • pM
    Pointer to a CComModule class or derived class.

  • 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 function is obsolete. Instead, use its replacement, AtlRegisterTypeLib.

This helper function is used by CComModule::RegisterTypeLib.

Requirements

Header: atlbase.h

See Also

Reference

CComModule::RegisterTypeLib

Other Resources

Server Registration Global Functions