다음을 통해 공유


AtlRegisterTypeLib

This function is called to register a type library.

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

Reference

AtlLoadTypeLib

AtlUnRegisterTypeLib

Other Resources

Server Registration Global Functions