Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Persisting kernel driver parameters

9 views
Skip to first unread message

sinosoidal

unread,
Dec 29, 2009, 9:35:01 AM12/29/09
to
Hi,

Can anyone tell me what is the method of persisting data for kernel
parameters?

Is it the registry? Is it based on normal files?

Thx,

Nuno

Don Burn

unread,
Dec 29, 2009, 9:42:53 AM12/29/09
to
Use the registry, unless you are talkig very big data files, putting it in
the registry under the driver's services key beneath a Parameters key is the
default approach.


--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

"sinosoidal" <sinos...@discussions.microsoft.com> wrote in message
news:A45EB006-372C-4D51...@microsoft.com...

> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4725 (20091229) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4725 (20091229) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


Maxim S. Shatskih

unread,
Dec 29, 2009, 9:52:23 AM12/29/09
to
> Is it the registry?

IoOpenDeviceRegistryKey for PnP drivers.

--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com

Don Burn

unread,
Dec 29, 2009, 9:58:24 AM12/29/09
to
Max,

He said driver which should be <registry key param to
DriverEntry>\Paramters. IoOpenDeviceRegistryKey is correct for a specifc
instance of a device, but the OP's question appeard to be towards global
parameters for the driver.


--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr


"Maxim S. Shatskih" <ma...@storagecraft.com.no.spam> wrote in message
news:Ov%23tIaJi...@TK2MSFTNGP06.phx.gbl...
> Is it the registry?

IoOpenDeviceRegistryKey for PnP drivers.

sinosoidal

unread,
Dec 29, 2009, 11:39:01 AM12/29/09
to
Hi Don,

Thx for your reply.

Is there any sample in DDK or place in the web that i can see an example of
how to use that functionalities?

Thanks,

Nuno

"Don Burn" wrote:

> .
>

Don Burn

unread,
Dec 29, 2009, 11:55:40 AM12/29/09
to
If you are using KMDF then take a look at WdfDriverOpenParametersRegistryKey
http://msdn.microsoft.com/en-us/library/aa491340.aspx. For WDM you are on
your own, but look at RtlQueryRegistryValues
http://msdn.microsoft.com/en-us/library/ms803008.aspx


--
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

Remove StopSpam to reply

"sinosoidal" <sinos...@discussions.microsoft.com> wrote in message

news:5CFE5FEB-35A1-40E6...@microsoft.com...

Pavel A.

unread,
Dec 29, 2009, 11:51:12 PM12/29/09
to
"sinosoidal" <sinos...@discussions.microsoft.com> wrote in message
news:A45EB006-372C-4D51...@microsoft.com...

Both. If you use files, they shoud be stored under SystemRoot,
preferably in same system32\drivers directory with the driver binaries.

--pa


0 new messages