BinaryToString(ReagRead(...),2) works fine for REG_BINARY - most of the time.
(the flag 2 means the reg value is in format UTF16 Little Endian)
sometimes it fails and returns empty string.
attached 2 example screenshots, the "OK" one is converted successfully by BinaryToString, the "failing" one returns empty string.
to my best conclusion, it fails when the reg value contains special characters, as you can see by the screensnots. i can't imagine any other difference.
thanks for any ideas,
Or