How to get data in side kernel mode driver from file/registry at boot time

hi,
We are developing minifilter for filesystem ,we wanted to read some file contents at boot time in side the driver.
How file system minifilter kernel mode driver can access data to perform some logic in driver mode?
Can it read from a file ,if yes ,can it fetch the data from a file at boot time?what is the advantage and disadvantages in this.can you please tell me how efficient this approach is?

Also can it read from registry ,if yes ,can it fetch the data from a registry at boot time? and upto what amount of data it can read from registry? is it going to be more efficient from reading the file?
How the mapping of file to system memory using EngMapFile( ) is diffrent from the reading the file.

Are these two only methods for getting data in kernel mode driver program ,or we do have some more method to get the data at boot time?

what is the nonpaged memory buffer alocation limit for kernel mode driver program?
Can we use nonpaged memory pool in lernel mode to store temporary data read from file at boot time?
please suggest the

Regards,
prasanta

“Can it read from a file”

Yes it can.

“can it fetch the data from a file at boot time”

Yes again. However, it will have to wait till the partition is mounted.
Since the system drive is mounted the earliest, keeping such files there is
better. Ofcourse, you cannot use paths like C:\MYfile.Txt, but instead use,
\Device\HarddiskVolume1\Myfile.TXT

"can it read from registry "

Yes, it can, but different hives of teh registry are loaded at different
times during the boot process, thus, you have to be careful where to place
the data.

“is it going to be more efficient from reading the file”

I am not sure, but I do recall that certain hives of the registry are loaded
before any mount operations. Please correct me if I am mistaken.

I would suggest to delay reading till System start phase, after SystemRoot
will be mounted.

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

----- Original Message -----
From:
To: “Windows File Systems Devs Interest List”
Sent: Friday, July 21, 2006 1:40 PM
Subject: [ntfsd] How to get data in side kernel mode driver from file/registry
at boot time

> hi,
> We are developing minifilter for filesystem ,we wanted to read some file
contents at boot time in side the driver.
> How file system minifilter kernel mode driver can access data to perform some
logic in driver mode?
> Can it read from a file ,if yes ,can it fetch the data from a file at boot
time?what is the advantage and disadvantages in this.can you please tell me how
efficient this approach is?
>
> Also can it read from registry ,if yes ,can it fetch the data from a registry
at boot time? and upto what amount of data it can read from registry? is it
going to be more efficient from reading the file?
> How the mapping of file to system memory using EngMapFile( ) is diffrent from
the reading the file.
>
>
> Are these two only methods for getting data in kernel mode driver program ,or
we do have some more method to get the data at boot time?
>
>
> what is the nonpaged memory buffer alocation limit for kernel mode driver
program?
> Can we use nonpaged memory pool in lernel mode to store temporary data read
from file at boot time?
> please suggest the
>
> Regards,
> prasanta
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com