INFO: Understanding Why RegSaveKey Fails (154806)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- the operating system: Microsoft Windows NT 3.51
- the operating system: Microsoft Windows NT 4.0
- the operating system: Microsoft Windows 2000
- the operating system: Microsoft Windows XP
This article was previously published under Q154806 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. | | |
----------------------------------------------------------------------
Modification Type: | Minor | Last Reviewed: | 9/27/2004 |
---|
Keywords: | kbinfo kbKernBase kbRegistry KB154806 |
---|
|