its documented here
http://developer.mozilla.org/en/docs/XPInstall_API_Reference:WinReg_Object:WinRegValue
there is a struct and other jazz here
C:\moz\mozilla\xpinstall\src\nsWinRegValue.h
C:\moz\mozilla\xpinstall\src\nsWinRegEnums.h
nsWinRegValue(PRInt32 datatype, void* regdata, PRInt32 len)
{
type = datatype;
data = regdata;
data_length = len;
}
This appears related,
C:\moz\mozilla\xpinstall\src\nsWinReg.h
This looks like the core of the install JS jazz
C:\moz\mozilla\xpinstall\src\nsJSWinReg.cpp
I do not see WinRegValue implemented
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);
}
logComment(regValue.datatype);
...
gets this:
Error: WinRegValue is not defined
Source File:
Line: 276
_______________________________________________
dev-tech-xpinstall mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpinstall