Hello,
I'm having problems with the registry.. and the Win32 API Reference isn't exactly clear.
Say I wanted to greet the user by the name stored in the registry, located at:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion

The data value that I want to read is "RegisteredOwner" - after this I would simply display a message box.

Also, how can I set a value in the registry? I can use RegSetValue but that only stores data in the registry as the "default" data value - perhaps I want to store a value in the registry under a certain key with the string value name of "User".. To put this in more simple terms, I wish to achieve the same effect as the following ".key" file:

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\MySoftware]
"UserName"="Bill Gates"
"RegistrationKey"="G45-46346-DF345"


Any tutorials or replies helping with this problem would be gratefully appreciated.

Thanks.