How do I enable/activate an add-in by SolidWorks API?

I am using the API function LoadAddin to load the dll for the integration with SmarTeam.

But if I look under tools->add-ins I can see that it is there, but not checked/marked as active (therefore not logged in to SmarTeam).

How can I enable/activate add-ins from the API?

I have created an Windows application that starts Solid Works, and I need the SmarTeam integration (add-in) to be enabled.

Please help me with this!

Kind regards

Marcus

SolidworksApi macros