Hi,
I want to read some configuration info from a data file in my file system
filter driver. My driver is based on sfilter, it is loaded in boot time.
My driver need to read some information from a data file when it is loaded,
but each time I got BSOD. If I the codes that read file or set the driver
start key to be “2”, it works OK.
My question:
How to read a file in boot time?
Thanks in advance!
I can’t tell in detail, but some time ago when I tried the same, I saw some
restrictions in filesize or in size of the buffer. Not quite sure. During
start=0 there is just the boot file system active (the one to load boot
drivers and system hive) - with very limited features. Since start=1 the
restrinctions should disappear, because the complete file systems get loaded
then. Hope it helps - I appreciate any correction!
Best way to store values to pass to a boot driver is it’s own registry key
(subkey “parameters”).
Tobias
----- Original Message -----
From: “Zm Chen”
To: “File Systems Developers”
Sent: Wednesday, May 21, 2003 8:00 AM
Subject: [ntfsd] How to read a file in boot time?
> Hi,
>
> I want to read some configuration info from a data file in my file system
> filter driver. My driver is based on sfilter, it is loaded in boot time.
> My driver need to read some information from a data file when it is
loaded,
> but each time I got BSOD. If I the codes that read file or set the driver
> start key to be “2”, it works OK.
>
> My question:
>
> How to read a file in boot time?
>
> Thanks in advance!
>
>
>
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@linkwave.org
> To unsubscribe send a blank email to xxxxx@lists.osr.com
“Zm Chen” wrote in message news:xxxxx@ntfsd…
>
> Hi,
>
> I want to read some configuration info from a data file in my file system
> filter driver. My driver is based on sfilter, it is loaded in boot time.
> My driver need to read some information from a data file when it is
loaded,
> but each time I got BSOD. If I the codes that read file or set the driver
> start key to be “2”, it works OK.
>
> My question:
>
> How to read a file in boot time?
You can’t do file IO at boot time on NT kernels. Use the registry.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyDriver\Parameters
Phil
–
Philip D. Barila
Seagate Technology, LLC
(720) 684-1842
As if I need to say it: Not speaking for Seagate.