Click to See Complete Forum and Search --> : IPC between device driver and application level program


swalehk
February 27th, 2003, 05:58 AM
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

Mick
February 27th, 2003, 08:26 AM
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