INFO: Understanding Why RegSaveKey Fails
ID: Q154806
|
The information in this article applies to:
-
Microsoft Win32 Application Programming Interface (API), used with:
-
Microsoft Windows NT versions 3.51, 4.0
-
Microsoft Windows 95, version 4.0
-
Microsoft Windows 2000
SUMMARY
The RegSaveKey API can be used to save a registry key and all of its
subkeys to a specified file. The API creates the file in the following
manner depending upon which operating system it is running on:
----------------------------------------------------------------------
| | WINDOWS 95 |WINDOWS NT/WINDOWS 2000|
----------------------------------------------------------------------
| File attributes | archive, hidden, | archive |
| | read-only, system | |
----------------------------------------------------------------------
| Location of | Created in the windows | Created in the |
| saved registry | directory for both local | current directory |
| file if no path | and remote keys. | of the process for a |
| is specified. | | local key, and in the |
| | | %systemroot%\system32 |
| | | for a remote key. |
----------------------------------------------------------------------
| Error returned | error code 1016, | error code 183, |
| if file already | ERROR_REGISTRY_IO_FAILED | ERROR_ALREADY_EXISTS |
| exists. | | |
----------------------------------------------------------------------
Additional query words:
3.51 4.00 Win95 kbdss
Keywords : kbKernBase kbWinOS2000 kbRegistry kbDSupport kbGrpKernBase
Version : winnt:3.51,4.0
Platform : winnt
Issue type : kbinfo