You are correct,

this is sort of close to what I thought you would do to create a
WinRegValue
     regValue = WinRegValue(2, wintxt, 256)

this is more like what the call would be like, if it was implemented
like the doc

     regValue = winreg.getValue ( String subkey, String valname);

maybe I should have been a little suspicious of the doc.

Javascript with int and byte ?

WinRegValue ( int datatype, byte[] regdata);

Thanks for confirming this for me.


Karsten Düsterloh wrote:
> gmgj aber hob zu reden an und schrieb:
> > I do not see WinRegValue implemented
>
> So it seems. While WinReg's getValue at least returns a (useless for JS)
> pointer value, setValue is just a stub function that does nothing. :(
> http://landfill.mozilla.org/mxr-test/mozilla/source/xpinstall/src/nsJSWinReg.cpp#603
>
> > this code in an install.js
> > ...
> >   var wintxt = new Array(256);
> >
> >   var winreg = getWinRegistry();
> >
> >   if(winreg != null)
> >   {
> >     winreg.setRootKey(winreg.HKEY_LOCAL_MACHINE);
> >     subkey  =  "SYSTEM\\CurrentControlSet\\Control\\Session
> > Manager\\Environment" ;
> >     valname = "Path"; // is a REG_EXPAND_SZ
> >     regValue = WinRegValue(2, wintxt, 256)
> >     regValue = WinRegValue.getValue(subkey, valname);
>
> The last two lines wouldn't make much sense even if WinRegValue was
> implemented.
> 
> 
> Karsten
> -- 
> Feel free to correct my English. :)

_______________________________________________
dev-tech-xpinstall mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpinstall

Reply via email to