Is it just me, or is RegRead unable to read a value of 0 (zero)?
The following code writes a value ($DataIn) or type REG_DWORD and then reads it back again. It works for any value for $DataIn except 0, where it returns a "". I've tested in 3.2.4.9
Or is this normal behaviour?
const $cRegKey = "HKLM\Software\TestKey"
const $cRegVal = "TestValue"
const $cRegType = "REG_DWORD"
$DataIn = 0
if RegWrite($cRegKey, $cRegVal, $cRegType, $DataIn) <> 1 then MsgBox(0, "RegWrite", "Error " & @error)
$DataOut = RegRead($cRegKey, $cRegVal)
$ErrValue = @error
if $DataOut = "" then MsgBox(0, "RegRead", "Error " & $ErrValue)