Is there anyway to replace the following javascripts code with C/C++?
Thanks a lot.
netscape.security.PrivilegeManager.enablePrivilege
("UniversalXPConnect");
const cid = "@xxxx/yyyy;1";
var obj = Components.classes[cid].createInstance();
obj = obj.QueryInterface(Components.interfaces.xxxxxx);
var bRet = obj.functionA();
>Hello everyone, I created an xpcom in C/C++. I want to invoke functions from the component on firefox startup.
>
Register as a startup observer. See
https://developer.mozilla.org/en/Observer_Notifications
--
Warning: May contain traces of nuts.