pass parameters to driver

Hi,

I haven’t application working with my driver, but I won’t to pass some parameters’ values
to driver, how can I do that.

Thanks

If you want to pass inicialization params you may read them from the registry.

J

-----Mensaje original-----
De: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] En nombre de xxxxx@yahoo.com
Enviado el: ter?a-feira, 20 de novembro de 2007 16:21
Para: Windows System Software Devs Interest List
Asunto: [ntdev] pass parameters to driver

Hi,

I haven’t application working with my driver, but I won’t to pass some parameters’ values to driver, how can I do that.

Thanks


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Este mensaje, y en su caso, cualquier fichero anexo al mismo,
puede contener informacion clasificada por su emisor como confidencial
en el marco de su Sistema de Gestion de Seguridad de la
Informacion siendo para uso exclusivo del destinatario, quedando
prohibida su divulgacion copia o distribucion a terceros sin la
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboracion.


This message including any attachments may contain confidential
information, according to our Information Security Management System,
and intended solely for a specific individual to whom they are addressed.
Any unauthorised copy, disclosure or distribution of this message
is strictly forbidden. If you have received this transmission in error,
please notify the sender immediately and delete it.


xxxxx@yahoo.com wrote:

I haven’t application working with my driver, but I won’t to pass some parameters’ values
to driver, how can I do that.

The registry is a good way, as Julian suggested. Another option is
WMI. There are canned applications that can pass data into and out of a
driver via WMI.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Personally, I’d rather rip my fingernails out than implement WMI interfaces
in a driver.

On Nov 20, 2007 1:14 PM, Tim Roberts wrote:

> xxxxx@yahoo.com wrote:
> > I haven’t application working with my driver, but I won’t to pass some
> parameters’ values
> > to driver, how can I do that.
> >
>
> The registry is a good way, as Julian suggested. Another option is
> WMI. There are canned applications that can pass data into and out of a
> driver via WMI.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Mark Roddy

What I am amazed here is no one has pointed out create a custom IOCTL to
pass in the data? Sorry that is what these are for.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

“Mark Roddy” wrote in message news:xxxxx@ntdev…
> Personally, I’d rather rip my fingernails out than implement WMI
> interfaces
> in a driver.
>
> On Nov 20, 2007 1:14 PM, Tim Roberts wrote:
>
>> xxxxx@yahoo.com wrote:
>> > I haven’t application working with my driver, but I won’t to pass some
>> parameters’ values
>> > to driver, how can I do that.
>> >
>>
>> The registry is a good way, as Julian suggested. Another option is
>> WMI. There are canned applications that can pass data into and out of a
>> driver via WMI.
>>
>> –
>> Tim Roberts, xxxxx@probo.com
>> Providenza & Boekelheide, Inc.
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
>
> –
> Mark Roddy
>

+1, as Maxim would say.

mm
Mark Roddy wrote:

Personally, I’d rather rip my fingernails out than implement WMI
interfaces in a driver.

On Nov 20, 2007 1:14 PM, Tim Roberts > mailto:xxxxx> wrote:
>
> xxxxx@yahoo.com mailto:xxxxx wrote:
> > I haven’t application working with my driver, but I won’t to pass
> some parameters’ values
> > to driver, how can I do that.
> >
>
> The registry is a good way, as Julian suggested. Another option is
> WMI. There are canned applications that can pass data into and out of a
> driver via WMI.
>
> –
> Tim Roberts, xxxxx@probo.com mailto:xxxxx
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
>
> –
> Mark Roddy</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

Don Burn wrote:

What I am amazed here is no one has pointed out create a custom
IOCTL to pass in the data? Sorry that is what these are for.

Maybe because the guy specifically said he has no application working with his driver.

Don Burn wrote:

What I am amazed here is no one has pointed out create a custom IOCTL to
pass in the data? Sorry that is what these are for.

The reason is that he specifically stated that he does not have an
application. Yes, an ioctl is easier, but if you don’t want to write an
application, that’s not an option.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

One can still write a simple control app to do exactly that. Using WMI
would probably have required the same, and even using the registry if you
want to be nice.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

wrote in message news:xxxxx@ntdev…
> Don Burn wrote:
>
>> What I am amazed here is no one has pointed out create a custom
>> IOCTL to pass in the data? Sorry that is what these are for.
>
> Maybe because the guy specifically said he has no application working with
> his driver.
>

> What I am amazed here is no one has pointed out create a custom

IOCTL to pass in the data?

Actually, the way I understood it, the OP wants to pass parameters upon driver initialization and access them right in DriverEntry(). Therefore, IOCTLs don’t apply in this situation - the are not yet available to a driver.

The OP’s task is rather cumbersome under Windows. Things are so much easier under Linux -
you can pass parameters to a driver right on a command line when you load it with insmod…

Anton Bassov