The information in this article applies to:
SYMPTOMSThe RegReplaceKey() function is supposed to replace the file that backs a key and all its subkeys with another file. When the computer is restarted, the key and subkeys store the values in the new file. However, this
might indicate that the call was successful, but the file might not be
replaced when the computer is restarted.
CAUSEUnder Windows 98, the registry file is replaced during shutdown. This is a change from Windows 95, which replaced the registry file on start up. Under Windows 98, a message that notifies the system to replace the registry file is never sent if fast shutdown is enabled. RESOLUTIONNOTE: This resolution only works with the original release of Windows 98 and not Windows 98 Second Edition. Currently, there is no workaround for Windows 98 Second Edition.
If this string is "1", fast shutdown is enabled. To disable fast shutdown, change the FastReboot value to "0". If you use this resolution, you should probably restore the original value of FastReboot after you have successfully replaced the hive. STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. MORE INFORMATIONSteps to Reproduce BehaviorThe following console application demonstrates the bug if fast shutdown is enabled:
If successful, the program should create a copy of HKEY_LOCAL_MACHINE\HARDWARE under HKEY_LOCAL_MACHINE\TEMPKEY. After you run the program, notice that the file SYSTEM.~~R is created in the WINDOWS directory. When you shutdown your computer, SYSTEM.DAT should be replaced by SYSTEM.~~R. However, if the Windows 98 fast shutdown is enabled, the file is never replaced. NOTE: Manually renaming SYSTEM.~~R to SYSTEM.DAT is not supported. The system will not recognize the file as a valid registry hive. After you run the previous sample code to verify the bug, you should delete the files TEMP.RG and TEMP.BK from the temporary directory. You should also delete the key TEMPKEY from the HKEY_LOCAL_MACHINE hive. Additional query words:
Keywords : kbKernBase kbRegistry kbWinOS98bug |
Last Reviewed: September 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |