Registry APIs

The registry is a system-defined database in which applications and system components store and retrieve configuration data. The data stored in the registry varies according to the version of Microsoft Windows. Applications use the registry API to retrieve, modify, or delete registry data.

You should not edit registry data that does not belong to your application unless it is absolutely necessary. If there is an error in the registry, your system may not function properly. If this happens, you can restore the registry to the state it was in when you last started the computer successfully. For more information, see the help for your operating system.

NOTE: APIs that are not explicitly documented as supported are not guaranteed to work. You should thoroughly test any code that uses undocumented functions.

Registry Function

Notes

RegCloseKey

Closes a handle to the specified registry key.

RegCreateKey

Creates Key.

RegCreateKeyEx

Creates the specified key.

RegDeleteKey

Deletes a subkey and its values

RegDeleteKeyEx

Deletes a subkey and its values from the specified platform specific view of the registry.

RegDeleteValue

Removes the specified value from the specified registry key.

RegEnumKey

Enumerates the subkeys.

RegEnumKeyEx

Enumerates the subkeys and retrives information about one subkey each time it is called.

RegEnumValue

Enumerates the values for the specified open registry key.

RegOpenKey

Opens the specified registry key.

RegOpenKeyEx

Opens the specified registry key

RegQueryValueEx

Retrieves the data of a specified registry key.

RegSetValueEx

Sets the value of registry key.