Writing and Creating a Registry Value
A version of this page is also available for
4/8/2010
Use the RegSetValueEx function to add a value to or alter a value in a registry key. If the value that you want to change does not exist, RegSetValueEx creates a value and the associated data. You can also name the type of data as you enter the data into the key. Because all values are stored and returned in a binary format, labeling data does not affect how Windows Mobile views it. However, for the sake of third-party registry editors, label your values appropriately.