Click here to Skip to main content
13,148,364 members (59,495 online)
Rate this:
Please Sign up or sign in to vote.

I have written a driver and I need my driver to call a function in a user mode program(which can be done using DEVICEIOCONTROL), then my driver have to wait for the user program to respond. I need a sample code which does so.

Posted 27-May-12 21:01pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Well, I don't know much about this, but one simple solution is in mind.

from application you can pass the pointer of your function to dll. after that your driver call call the specific function
JackDingler 29-May-12 15:38pm
You can't make direct calls between user mode and kernel mode.

The two are mapped into separate memory spaces.
Mohibur Rashid 29-May-12 21:13pm
humm, I should learn about drivers
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You should perhaps read the series of which this article is part:

Driver Development Part 2: Introduction to Implementing IOCTLs[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170924.2 | Last Updated 28 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100