Share via


IMsoComponentManager::FRegisterComponent Method

Applies to: Office 2010

Registers a component with the component manager.

BOOL FRegisterComponent(
   IMsoComponent *piComponent,
   const MSOCRINFO *pcrinfo,
   DWORD_PTR *pdwComponentID
);

Parameters

  • piComponent [in]
    A pointer to the IMsoComponent interface that is being registered.

  • pcrinfo [in]
    A pointer to the component registration information that is specified in a MSOCRINFO structure.

  • pdwComponentID [out]
    A pointer to the ID of the component when the component calls other IMsoComponentManager interface methods.

Return Value

TRUE if the component was successfully registered; otherwise, FALSE.

See Also

Reference

IMsoComponentManager Interface