Windows 95 supports all the Win16 and Win32 Registry functions. Some Win32 functions return errors when called from Windows 95, however, just as some Win32 functions return errors when called from Win32s, as a result of system differences. Table 10-2 on the following page lists the Registry functions that Windows 95 supports, including numerous Win16 functions that are provided for compatibility with Windows 3.1.
Function | Description |
RegCloseKey (Win16) | Closes the specified key. |
RegCreateKey (Win16) | Creates the specified key. (Win32-based applications should use the RegCreateKeyEx function.) |
RegDeleteKey (Win16) | Deletes the specified key. |
RegEnumKey (Win16) | Enumerates the subkeys of the specified open key. (Win32-based applications should use the RegEnumKeyEx function.) |
RegOpenKey (Win16) | Opens the specified key. (Win32-based applications should use the RegOpenKeyEx function.) |
RegQueryValue (Win16) | Returns the value associated with the specified open key. (Win32-based applications should use the RegQueryValueEx function.) |
RegSetValue (Win16) | Sets the value for the specified key. (Win32-based applications should use the RegSetValueEx function.) |
RegCreateKeyEx (Win32) | Creates a key. |
RegDeleteValue (Win32) | Deletes a value associated with the specified key. |
RegEnumKeyEx (Win32) | Enumerates the subkeys of the specified open key. |
RegEnumValue (Win32) | Enumerates the values of the specified open key. |
RegFlushKey (Win32) | Writes all the attributes of the specified open key to the Registry. |
RegOpenKeyEx (Win32) | Opens the specified key. |
RegQueryInfoKey (Win32) | Returns information about the specified key. |
RegQueryValueEx (Win32) | Returns the value associated with the specified open key. |
RegSetValueEx (Win32) | Sets the value for the specified key. |
Table 10-2. Registry functions supported in Windows 95.