Hi All,
I am developing a USB function driver and using the
ZwOpenKey() function to read some registry values. All
these functions working fine after windows is loaded.
But when I restart the system with my USB device
plugged in, reading of registry fails when my driver
loaded. I know this is because the registry is not
ready to access when my driver is loaded.
1)So I think I need to change the load order of my
driver. I would like to know what the safe load order
for my USB function driver in order to access the
registry at boot time. ?
2)How I can specify this boot order in my INF file?
Thanks in adavnce
Suja
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
Move all your registry values to SYSTEM hive. Drivers must not access other
hives.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “SUJA JAMES”
To: “Windows System Software Devs Interest List”
Sent: Sunday, May 23, 2004 7:10 AM
Subject: [ntdev] ZwOpenKey fails in USB driver
> Hi All,
> I am developing a USB function driver and using the
> ZwOpenKey() function to read some registry values. All
> these functions working fine after windows is loaded.
> But when I restart the system with my USB device
> plugged in, reading of registry fails when my driver
> loaded. I know this is because the registry is not
> ready to access when my driver is loaded.
>
> 1)So I think I need to change the load order of my
> driver. I would like to know what the safe load order
> for my USB function driver in order to access the
> registry at boot time. ?
> 2)How I can specify this boot order in my INF file?
>
> Thanks in adavnce
> Suja
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Domains - Claim yours for only $14.70/year
> http://smallbusiness.promotions.yahoo.com/offer
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
“SUJA JAMES” wrote in message news:xxxxx@ntdev…
> Hi All,
> I am developing a USB function driver and using the
> ZwOpenKey() function to read some registry values. All
> these functions working fine after windows is loaded.
> But when I restart the system with my USB device
> plugged in, reading of registry fails when my driver
> loaded. I know this is because the registry is not
> ready to access when my driver is loaded.
>
> 1)So I think I need to change the load order of my
> driver. I would like to know what the safe load order
> for my USB function driver in order to access the
> registry at boot time. ?
> 2)How I can specify this boot order in my INF file?
>
> Thanks in adavnce
> Suja
–
You can try to register and use Reinitialize routine for reading values from
the registry (see functions IoRegisterDriverReinitialization and
IoRegisterBootDriverReinitialization in DDK).
Regards,
Gennady Mayko.
The callback function you register in these routines is called well
before the rest of the registry is loaded. They will not help you.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gennady Mayko
Sent: Sunday, May 23, 2004 8:47 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] ZwOpenKey fails in USB driver
“SUJA JAMES” wrote in message
news:xxxxx@ntdev…
> Hi All,
> I am developing a USB function driver and using the
> ZwOpenKey() function to read some registry values. All
> these functions working fine after windows is loaded.
> But when I restart the system with my USB device
> plugged in, reading of registry fails when my driver
> loaded. I know this is because the registry is not
> ready to access when my driver is loaded.
>
> 1)So I think I need to change the load order of my
> driver. I would like to know what the safe load order
> for my USB function driver in order to access the
> registry at boot time. ?
> 2)How I can specify this boot order in my INF file?
>
> Thanks in adavnce
> Suja
–
You can try to register and use Reinitialize routine for reading values
from
the registry (see functions IoRegisterDriverReinitialization and
IoRegisterBootDriverReinitialization in DDK).
Regards,
Gennady Mayko.
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com