Share via


Creating and Opening a Registry Key

A version of this page is also available for

Windows Embedded CE 6.0 R3

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.

See Also

Concepts

Programmatic Registry Operations
Registry Fundamentals