How to access WMI in MFC Application?

Hi All,

I am working on WDM based USB Driver which controls the functionality of
Mass storage devices.

We have one requirement to print URBs and IRPs which we are passing to Lower
Drivers. For this we have to pass all URBs which we are preparing for lower
Driver to Application.

I am planning to do the same with WMI. Is it a good approach?

I have studied a little and understood about how to generate event in
Kernel Mode driver using *IoWMIWriteEvent *which queue the events.

Can any body tell how to access these events in Application(MFC based)?

Thnaks and Regards
Sunil

Enough is very heavy weight for this. Wmi events are targeted at infrequent small buffers. You should use an inverted call here by pending app io to the driver and completing it when you have an urb to report.

d

dent from a phpne with no keynoard


From: Sunil Kumar
Sent: October 10, 2010 11:24 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to access WMI in MFC Application?

Hi All,

I am working on WDM based USB Driver which controls the functionality of Mass storage devices.

We have one requirement to print URBs and IRPs which we are passing to Lower Drivers. For this we have to pass all URBs which we are preparing for lower Driver to Application.

I am planning to do the same with WMI. Is it a good approach?

I have studied a little and understood about how to generate event in Kernel Mode driver using IoWMIWriteEvent which queue the events.

Can any body tell how to access these events in Application(MFC based)?

Thnaks and Regards
Sunil
— 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

Hi Doron,

Thanks for prompt reply!!

Can you please tell me some link for “inverted call here by pending app io”
operation?I dont have any idea about this!!

Regards
Sunil

On Mon, Oct 11, 2010 at 11:57 AM, Doron Holan wrote:

> Enough is very heavy weight for this. Wmi events are targeted at infrequent
> small buffers. You should use an inverted call here by pending app io to the
> driver and completing it when you have an urb to report.
>
> d
>
> dent from a phpne with no keynoard
>
> ------------------------------
> From: Sunil Kumar
> Sent: October 10, 2010 11:24 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] How to access WMI in MFC Application?
>
> Hi All,
>
> I am working on WDM based USB Driver which controls the functionality of
> Mass storage devices.
>
> We have one requirement to print URBs and IRPs which we are passing to
> Lower Drivers. For this we have to pass all URBs which we are preparing for
> lower Driver to Application.
>
> I am planning to do the same with WMI. Is it a good approach?
>
> I have studied a little and understood about how to generate event in
> Kernel Mode driver using *IoWMIWriteEvent *which queue the events.
>
> Can any body tell how to access these events in Application(MFC based)?
>
> Thnaks and Regards
> Sunil
> — 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
>
> —
> 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
>

FYI:
http://www.osronline.com/article.cfm?id=94

2010/10/11 Doron Holan

> Enough is very heavy weight for this. Wmi events are targeted at infrequent
> small buffers. You should use an inverted call here by pending app io to the
> driver and completing it when you have an urb to report.
>
> d
>
> dent from a phpne with no keynoard
>
> ------------------------------
> From: Sunil Kumar
> Sent: October 10, 2010 11:24 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] How to access WMI in MFC Application?
>
> Hi All,
>
> I am working on WDM based USB Driver which controls the functionality of
> Mass storage devices.
>
> We have one requirement to print URBs and IRPs which we are passing to
> Lower Drivers. For this we have to pass all URBs which we are preparing for
> lower Driver to Application.
>
> I am planning to do the same with WMI. Is it a good approach?
>
> I have studied a little and understood about how to generate event in
> Kernel Mode driver using *IoWMIWriteEvent *which queue the events.
>
> Can any body tell how to access these events in Application(MFC based)?
>
> Thnaks and Regards
> Sunil
> — 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
>
> —
> 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
>

Thanks !!

On Mon, Oct 11, 2010 at 1:39 PM, 张佩 wrote:

> FYI:
> http://www.osronline.com/article.cfm?id=94
>
>
>
> 2010/10/11 Doron Holan
>
> Enough is very heavy weight for this. Wmi events are targeted at
>> infrequent small buffers. You should use an inverted call here by pending
>> app io to the driver and completing it when you have an urb to report.
>>
>> d
>>
>> dent from a phpne with no keynoard
>>
>> ------------------------------
>> From: Sunil Kumar
>> Sent: October 10, 2010 11:24 PM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] How to access WMI in MFC Application?
>>
>> Hi All,
>>
>> I am working on WDM based USB Driver which controls the functionality of
>> Mass storage devices.
>>
>> We have one requirement to print URBs and IRPs which we are passing to
>> Lower Drivers. For this we have to pass all URBs which we are preparing for
>> lower Driver to Application.
>>
>> I am planning to do the same with WMI. Is it a good approach?
>>
>> I have studied a little and understood about how to generate event in
>> Kernel Mode driver using *IoWMIWriteEvent *which queue the events.
>>
>> Can any body tell how to access these events in Application(MFC based)?
>>
>> Thnaks and Regards
>> Sunil
>> — 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
>>
>> —
>> 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
>>
>
> — 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
>

ETW can help.


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

“Sunil Kumar” wrote in message news:xxxxx@ntdev…
Hi All,

I am working on WDM based USB Driver which controls the functionality of Mass storage devices.

We have one requirement to print URBs and IRPs which we are passing to Lower Drivers. For this we have to pass all URBs which we are preparing for lower Driver to Application.

I am planning to do the same with WMI. Is it a good approach?

I have studied a little and understood about how to generate event in Kernel Mode driver using IoWMIWriteEvent which queue the events.

Can any body tell how to access these events in Application(MFC based)?

Thnaks and Regards
Sunil