Creating and Opening a Registry Key
A version of this page is also available for
4/8/2010
Create a registry key by calling the RegCreateKeyEx function. Windows Mobile automatically opens the key after you create it.
If the key already exists, a call to RegCreateKeyEx simply opens the key for processing. You can also use the RegOpenKeyEx function to open a key. The difference between these two functions is that RegOpenKeyEx does not create a new key if the key did not exist previously.