
Read Windows Registry In Firefox Extensions
Hi guys,
I want to read values in this key " HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings "
I tried to use this code :
const {Cc, Ci} = require("chrome"); var wrk = Cc["@mozilla.org/windows-registry-key;1"].createInstance(Ci.nsIWindowsRegKey); wrk.open(wrk.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", wrk.ACCESS_READ); var ProxyEnable = wrk.readStringValue("ProxyEnable"); var IP = wrk.readStringValue("IP"); var Port = wrk.readStringValue("Port"); wrk.close();
But it doesn't work.
Chosen solution
Best would be to ask advice at the Add-ons forum.
Read this answer in context 👍 1All Replies (2)
Chosen Solution
Best would be to ask advice at the Add-ons forum.
Thanks man.