Reading Registry from Driver Entry.

Hi All
I have written a file system filter driver. I want to read some
registry value to initialize some parameter. My problem is when I am
setting it’s(FSFD) loading option SYSTEM, and trying to read registry
value from DriverEntry Function (while OS is loading). I am not able to
read it. Where as ones the operating system is fully loaded I am able to
read registry values.

Please tell me how/where should I read registry value when my FSFD is
loading. Or is there any way by which FSFD can get signal that OS is
loaded so on that signal I will try to read registry.

Regards
Raghwendra

*********************************************************
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use

********************************************************

\Registry\Machine\System\CurrentControlSet\Services%YourDriver%\Parameters

This is your choice

L.

Guess you didn’t notice the “other” parameter to driver entry:
NTSTATUS DriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)

HANDLE OpenRegistryKey(PUNICODE_STRING RegistryPath)

{

NTSTATUS ntStatus;

HANDLE hKey;

OBJECT_ATTRIBUTES objAttr;

InitializeObjectAttributes(&objAttr, RegistryPath, OBJ_KERNEL_HANDLE | OBJ_CASE_INSENSITIVE, NULL, NULL);

ntStatus = ZwOpenKey( &hKey,STANDARD_RIGHTS_ALL , &objAttr);

if(ntStatus != STATUS_SUCCESS)

{

return NULL;

}

return hKey;

}

status = ZwQueryValueKey(hKey, &usValueName, KeyValueFullInformation,pKeyValue, size, &size);

“Raghwendra Kshatriya” wrote in message news:xxxxx@ntfsd…
Hi All

I have written a file system filter driver. I want to read some registry value to initialize some parameter. My problem is when I am setting it’s(FSFD) loading option SYSTEM, and trying to read registry value from DriverEntry Function (while OS is loading). I am not able to read it. Where as ones the operating system is fully loaded I am able to read registry values.

Please tell me how/where should I read registry value when my FSFD is loading. Or is there any way by which FSFD can get signal that OS is loaded so on that signal I will try to read registry.

Regards

Raghwendra

*
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use

All registry values for drivers must be in SYSTEM hive, never use SOFTWARE
hive for drivers.

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

----- Original Message -----
From: “Raghwendra Kshatriya”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, November 15, 2005 11:56 AM
Subject: [ntfsd] Reading Registry from Driver Entry.

Hi All
I have written a file system filter driver. I want to read some
registry value to initialize some parameter. My problem is when I am
setting it’s(FSFD) loading option SYSTEM, and trying to read registry
value from DriverEntry Function (while OS is loading). I am not able to
read it. Where as ones the operating system is fully loaded I am able to
read registry values.

Please tell me how/where should I read registry value when my FSFD is
loading. Or is there any way by which FSFD can get signal that OS is
loaded so on that signal I will try to read registry.

Regards
Raghwendra

*
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s) or
attachment(s) if any) are privileged and confidential material of MBT and
should not be disclosed to, used by or copied in any manner by anyone other
than the intended addressee(s). In case you are not the desired addressee,
you should delete this message and/or re-direct it to the sender. The views
expressed in this E-mail message (including the enclosure(s) or attachment(s)
if any) are those of the individual sender, except where the sender expressly,
and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of
any virus. However, it is the responsibility of the recipient to ensure that
it is virus free and MBT is not responsible for any loss or damage arising in
any way from its use



Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com