IRobot::AddModule

Loads an add-on module

HRESULT IRobot::AddModule (
     REFCLSID clsid
)

Parameters
clsid
CLSID of the add-on module to load

Return Values
ValueMeaning
S_OKModule loaded successfully
E_FAILCannot load module

Remarks
Calls IRbtModule::Init on the object with the given CLSID. If Init() fails, then this function also fails.