0

I am trying to write a windows non-pnp kernel mode software driver which should communicate bidirectional with my user mode app (user sends request and driver responds). The problem is that I can't find examples or documentations - the msdn sample drivers are far to compilcated - how to handle IOCTL requests with non-pnp drivers.

I wasted a couple days on research and couldn't get it to work. I just wanted to ask if this kind of communication is even the recommended one and would appreciate everything which would help me finish my project, like understandable documentation or simple sample drivers.

halfer
  • 19,824
  • 17
  • 99
  • 186
h4x0r
  • 153
  • 2
  • 9
  • As far as I know, it makes no difference whether it's a PNP or non-PNP driver. You just implement DispatchDeviceControl(). – Harry Johnston Aug 16 '16 at 03:14
  • What I have read so far is the `DispatchDeviceControl()` function provided by the framework because I don't use WDM but the WDF framework. – h4x0r Aug 16 '16 at 03:17
  • 1
    OK, according to the documentation the WDF framework has a EvtIoDeviceControl() callback for handling IOCTL requests. As far as I can see, it still doesn't make any difference whether it is a PNP driver or not. Can you clarify why you think it should? – Harry Johnston Aug 16 '16 at 03:25
  • I was quite unsure about it just because I couldn't find an example using a non-PNP driver. I'm glad to here that it shouldn't make a differnce. – h4x0r Aug 16 '16 at 03:27

0 Answers0