Re: Why hive registry cannot restore ROM registry.

From: Dean Ramsier (ramsiernospam_at_nospam.com)
Date: 07/30/04


Date: Fri, 30 Jul 2004 09:26:52 -0400

If you're trying to clean the hive and get back to the ROM registry, you
need to handle the
IOCTL_HAL_GET_HIVE_CLEAN_FLAG in your OAL. Basically, you'll need to cause
the system to reboot, and when it makes this IOCTL call on initialization
you need to indicate that it should clean the hive. See the PB documenation
for more details.

-- 
Dean Ramsier - eMVP
"Jack" <jgliu@toptrend.com.cn> wrote in message
news:%232r%23tmedEHA.3308@TK2MSFTNGP11.phx.gbl...
> Dear all:
>
>    Here I want to restore ROM registry which system use HIVE registry.
>
>    Here I call these APIs:
>      RegReplaceKey(HKEY_LOCAL_MACHINE, NULL, NULL, NULL);
>      SetCurrentUser(NULL, NULL, NULL, FALSE);
>    But the values under HKEY_CURRENT_USER cannot restore ROM
configurations.
>
>    How to make it works?
>
>    Best regards.
>
> Jack.
>
>
>