Hello!
I want to read some configuration data during system boot. I am
interested in something that will also work on NT. My actual
implementation uses IoRegisterBootDriverReinitialization which reads the
configuration data from ??\C:\foo\bar.txt
However, this approach will bugcheck 0x23: FAT_FILE_SYSTEM on systems
that do not have the OS files on the C: drive. So the idea was to move my
bar.txt file to \SystemRoot\System32\Drivers\bar.txt
Now the problem is that my driver loads at boot time so attempting the
bar.txt from \SystemRoot will fail with STATUS_OBJECT_PATH_NOT_FOUND. I
suppose this is because my reinitialization routine is called early in the
boot process, when the SystemRoot symlink is not initialized.
Another option was reading the configuration data from registry. I also
got problems with this because of the fact that my driver loads at boot.
I would like to stick to the file-based configuration but I am looking
for solutions on both sides of the problem.
Any ideas on how to solve this problem?
Best wishes,
Razvan
In registry where are you storing the information? I believe if you
store it below services key it would work.
-Srin.
-----Original Message-----
From: Razvan [mailto:xxxxx@xnet.ro]
Sent: Saturday, June 07, 2003 4:00 PM
To: File Systems Developers
Subject: [ntfsd] Read configuration during system boot
Hello!
I want to read some configuration data during system boot. I am
interested in something that will also work on NT. My actual
implementation uses IoRegisterBootDriverReinitialization which reads
the
configuration data from ??\C:\foo\bar.txt
However, this approach will bugcheck 0x23: FAT_FILE_SYSTEM on
systems
that do not have the OS files on the C: drive. So the idea was to move
my
bar.txt file to \SystemRoot\System32\Drivers\bar.txt
Now the problem is that my driver loads at boot time so attempting
the
bar.txt from \SystemRoot will fail with STATUS_OBJECT_PATH_NOT_FOUND.
I
suppose this is because my reinitialization routine is called early in
the
boot process, when the SystemRoot symlink is not initialized.
Another option was reading the configuration data from registry. I
also
got problems with this because of the fact that my driver loads at
boot.
I would like to stick to the file-based configuration but I am
looking
for solutions on both sides of the problem.
Any ideas on how to solve this problem?
Best wishes,
Razvan
You are currently subscribed to ntfsd as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
> I want to read some configuration data during system boot. I am
Registry is the place.
Max