AR> Is there are any way to read/write windows registry from extension?

 It seems, that only reading is possible. And only for strings. :(

Look at "@mozilla.org/winhooks;1" and/or "@mozilla.org/browser/shell-service;1" getRegistryEntry() method.
But it will work only for strings... I'm writing code to "restore" DWORDs from result of this call:


       var dwValue = 0;
       for( var i = regValue.length - 1; i >= 0; --i)
       {
         dwValue *= 256;
         dwValue += regValue.charCodeAt( i );
       }

But it works only because Intel processors have LBS byte order, so it is durty hack


Lev Serebryakov Programmer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"


_______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to