none
Getting data out of a WFP monitor? RRS feed

  • Question

  • Hi,

    I have a kernel-mode WPF driver, which is successfully fetching data I want from the network.  Now I want to pass that data up to a user-mode application for further processing.

    What's the best way to get the data from the driver to the application?  For example (and I don't think this is a smart way to go) the driver could write the data to a file, and the application then read it out from that file (clumsy and inefficient, if even possible).

    I kind of suspect WMI or IOCTL might be the right way to go, but I'm not sure.

    Any suggestions would be really appreciated :)

    PS The data in question would normally small messages of up to 100 bytes or so.

    Thanks! :)

    Paul.
    Thursday, February 18, 2010 6:41 AM

Answers

  • Certainly a normal device interface is the way to go. Once you add this your user-mode application can open a handle to your device and then use either ReadFile or DeviceIControl to fetch data.

    Good luck,

    Thomas F. Divine
    http://www.pcausa.com

    Thomas F. Divine http://www.pcausa.com
    • Marked as answer by pcolby Tuesday, February 23, 2010 2:42 AM
    Thursday, February 18, 2010 2:28 PM

All replies

  • Certainly a normal device interface is the way to go. Once you add this your user-mode application can open a handle to your device and then use either ReadFile or DeviceIControl to fetch data.

    Good luck,

    Thomas F. Divine
    http://www.pcausa.com

    Thomas F. Divine http://www.pcausa.com
    • Marked as answer by pcolby Tuesday, February 23, 2010 2:42 AM
    Thursday, February 18, 2010 2:28 PM
  • Thanks!  It looks like you've steered me in the right direction :)

    I still have a lot of reading / coding to do, but looks like your suggestion is right for me :)

    Thanks again!
    Tuesday, February 23, 2010 2:42 AM