wmi & legacy driver .. can it be done?

Hi

quick question: can wmi be used from a legacy (ie: non-wdm) driver?

The doc says that the wmi library is an extension to WDM but I would like to
know if anybody has tried to get it to work with a legacy driver or if it is
a waste of time trying to.

More specifically, we would like to use wmi to 1) Notify user-mode
applications of driver-defined events , and 2) make custom data available to
user-mode applications.

cheers,


Marco [www.neovalens.com]

Yes, it can be done. Wmilib can be used as well, but in places where
you are indicted to forward the irp down the stack, you need to complete
it immediately (since there is no stack). Also, you will need to use
static instance names b/c you have no PDO to rely on for naming.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Marco Peretti
Sent: Tuesday, June 07, 2005 8:34 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] wmi & legacy driver … can it be done?

Hi

quick question: can wmi be used from a legacy (ie: non-wdm) driver?

The doc says that the wmi library is an extension to WDM but I would
like to
know if anybody has tried to get it to work with a legacy driver or if
it is
a waste of time trying to.

More specifically, we would like to use wmi to 1) Notify user-mode
applications of driver-defined events , and 2) make custom data
available to
user-mode applications.

cheers,


Marco [www.neovalens.com]


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

WMI does not require PnP or PDOs. Works fine in FS filter.

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

----- Original Message -----
From: “Marco Peretti”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Tuesday, June 07, 2005 7:33 PM
Subject: [ntdev] wmi & legacy driver … can it be done?

> Hi
>
> quick question: can wmi be used from a legacy (ie: non-wdm) driver?
>
> The doc says that the wmi library is an extension to WDM but I would like to
> know if anybody has tried to get it to work with a legacy driver or if it is
> a waste of time trying to.
>
> More specifically, we would like to use wmi to 1) Notify user-mode
> applications of driver-defined events , and 2) make custom data available to
> user-mode applications.
>
> cheers,
>
> –
> Marco [www.neovalens.com]
> –
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

great!

thank you both Doron & Maxim … that is what I needed to hear.

Marco

“Doron Holan” wrote in message
news:xxxxx@ntdev…
Yes, it can be done. Wmilib can be used as well, but in places where
you are indicted to forward the irp down the stack, you need to complete
it immediately (since there is no stack). Also, you will need to use
static instance names b/c you have no PDO to rely on for naming.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Marco Peretti
Sent: Tuesday, June 07, 2005 8:34 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] wmi & legacy driver … can it be done?

Hi

quick question: can wmi be used from a legacy (ie: non-wdm) driver?

The doc says that the wmi library is an extension to WDM but I would
like to
know if anybody has tried to get it to work with a legacy driver or if
it is
a waste of time trying to.

More specifically, we would like to use wmi to 1) Notify user-mode
applications of driver-defined events , and 2) make custom data
available to
user-mode applications.

cheers,


Marco [www.neovalens.com]



Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com