Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hello,
 
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.
 
Thanks
Posted 27-May-12 22:01pm
lilyNaz536
Rate this: bad
good
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
  Permalink  
Comments
JackDingler at 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 at 29-May-12 21:13pm
   
humm, I should learn about drivers
Rate this: bad
good
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[^]
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 28 May 2012
Copyright © CodeProject, 1999-2014
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