Create a registry key with a call to the RegCreateKeyEx function. Windows CE automatically opens the key once you create it. If the key already exists, a call to RegCreateKeyEx simply opens the key for processing. Also, you can use the RegOpenKeyEx function to open a key. The difference between the two functions is that RegOpenKeyEx does not create a new key if the key did not previously exist.