RE: ntdev digest: October 16, 2001

Hi,

you have to be careful if you are writing a driver which is loaded early.
The Software Registry Key is not available from the beginning.
I run into this problem with PNP drivers for PCMCIA and PCI cards.
The Software registry is in this case not available when START_DEVICE is
called.
I try to read the registry when the first application opens the driver.

Hope that helps
Martin

Subject: Querying Registry entries
From: “Balaji Swaminathan - CTD, Chennai.”
> Date: Tue, 16 Oct 2001 12:42:33 +0530
> X-Message-Number: 4
>
> Hi,
> I want to query a registry key say from
> \HKEY_LOCAL_MACHINE\SOFTWARE\xxx
> from my 2K driver.
>
> First I tried giving my Registry path as “\HKLM\SOFTWARE\xxx”
> RtlQueryRegistryValues returned with
> STATUS_OBJECT_NAME_NOT_FOUND error.
>
> Then I tried with \Registry\Machine\Software\xxx, but Im
> getting page
> fault error in RtlQueryRegistryValues.
>
> I need info about querying the registry path other then the
> RegistryPath got
> from DriverEntry routine.
>
> Regards,
> S.Balaji


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com