Registry\Machine\Software not available during boot ?

During boot time the driver fails to open HKEY_LOCAL_MACHINE\Software key.
Error code is 0xC0000034

I found that RtlCheckRegistryKey(RTL_REGISTRY_ABSOLUTE,
“Registry\Machine\Software”); fails with 0xC0000034 i.eSTATUS_OBJECT_NOT_FOUND
RtlCheckRegistryKey(RTL_REGISTRY_ABSOLUTE, “Registry\Machine\System”);
however succeeds

Is it that only “Registry\Machine\System” key is available to a driver when
it loads during system boot. ??

Is it that only “Registry\Machine\System” key is available to a

driver when it loads during system boot. ??

Yes.

L.

 

Yes, you can only access the system hive during boot. The others are
loaded a lot later. For a driver you should only be storing data in the
system hive anyway.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

“Mudassar Tamboli” wrote in message
news:xxxxx@ntfsd…
> During boot time the driver fails to open HKEY_LOCAL_MACHINE\Software
> key.
> Error code is 0xC0000034
>
> I found that RtlCheckRegistryKey(RTL_REGISTRY_ABSOLUTE,
> “Registry\Machine\Software”); fails with 0xC0000034
> i.eSTATUS_OBJECT_NOT_FOUND
> RtlCheckRegistryKey(RTL_REGISTRY_ABSOLUTE, “Registry\Machine\System”);
> however succeeds
>
> Is it that only “Registry\Machine\System” key is available to a driver
> when
> it loads during system boot. ??
>

Thanks for the reply.

Mudassar

> During boot time the driver fails to open HKEY_LOCAL_MACHINE\Software

This is correct. HKEY_LOCAL_MACHINE\Software is not available in the init path
of the boot driver.

Place your values to HKEY_LOCAL_MACHINE\SYSTEM itself.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com