Jump to content

abritton

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by abritton

  1. If you need ORCA but don't want the SDK, then you can download a standalone installer from a link on Aaron Stebner's blog here
  2. It seems RegRead returns a "" instead of a 0, but does not set the @error flag.
  3. 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)
×
×
  • Create New...