I used this code to make a key in the regsitry

RegCreateKey HKEY_CURRENT_USER, "\Software\Robbedaya\prog\", result

this works but then I trie to create a value with this code:
RegSetValueEx result, "Test123", 0, REG_SZ, "test", 4

this makes a value but the data in this value is changed into "d"

Could somebody help me?