Hello everyone, I created an xpcom in C/C++. I want to invoke
functions from the component on firefox startup. And I don't want to
use Javascripts to do that.

Is there anyway to replace the following javascripts code with C/C++?
Thanks a lot.

const cid = "@xxxx/yyyy;1";
var obj = Components.classes[cid].createInstance();
obj = obj.QueryInterface(Components.interfaces.xxxxxx);

var bRet = obj.functionA();