Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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
 
Share this answer
 
Comments
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
You should perhaps read the series of which this article is part:

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900