About my previous post and the fail, I tried on someone's win10 machine, and there was no problem reading string/integer, so it may be an issue with my machine only, no idea why though.
The suggestion for REG_BINARY and REG_MULTI_SZ still stand though.