Understanding Why RegSaveKey FailsLast reviewed: January 15, 1997Article ID: Q154806 |
The information in this article applies to:
SUMMARYThe 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 | ---------------------------------------------------------------------- | 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. | | | ---------------------------------------------------------------------- |
KBCategory: kbprg kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |