CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2002
    Posts
    9

    IPC between device driver and application level program

    Hi Friend,

    We are developing a File Monitoring Device Driver for Win NT/Win 2K/Win XP.

    We want to pass some data from the driver to an application...

    Are there any ready made Win APIs available for the same...

    for e.g. if we want to share or pass data at application level we can use Shared Memory or Pipes.

    Is IPC possible between driver and application?

    Can we use shared memory etc... for the same

    Best Regards
    Swaleh

  2. #2
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    To answer your question 'Yes' but the more complete answer is it depends on what your doing. I use LPC myself because my data size is small and managable. Though you can setup a shared read/write segment when calling zwConnectPort() to extend the size of the buffer being passed. The equiv would be CreateFileMapping() in user mode for setting up the shared read/write section.

    What you need to do is gather some references if your going to write a filter hook driver, as you will have many more questions. Also, web searches will show you example code and problems issues that have been dealt with before.

    http://www.ntdev.org/index.html has some searchable archives for some of the pesky things you will run into but there are others. Generally I find not many people on these forums have worked with the DDK. So you may not get answers posting anywhere near here, but that's just my opinion. Microsoft also hosts a DDK forum as I recall but I don't have those links on my home systems. But again you can search for them.

    There should also be some sample filter code that comes with the DDK.

    I recommend (not limited too, just what I have on hand right now)

    windows nt/2000 Native API Reference - Gary Nebbett
    Undocumented windows 2000 secrets - sven b schreiber

    Having Microsofts references also help...

    Programming the Windows Driver Model
    Windows 2000 Driver Development Kit
    Last edited by Mick; February 27th, 2003 at 09:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured