Best way to send data back to Userland
PostPosted:Thu Jul 21, 2011 11:55 am
Hello,
I wrote a driver and its userland app , no problem to call the the IRP_MJ_DEVICE_CONTROL major function, so I can pass a buffer pointer from UL to KM.
But now, I want to do the reverse path, from KM to UL...
I saw the inverted call model (http://www.osronline.com/article.cfm?id=94), but the code is a bit hard to understand (to huge).
Is there a simple way to do that? Or anyone can explain me with simple words / schematics / snippets ?
Thanks a lot
EDIT: Oops, I just saw that thread http://www.kernelmode.info/forum/viewto ... f=14&t=920
Will have a look.
I wrote a driver and its userland app , no problem to call the the IRP_MJ_DEVICE_CONTROL major function, so I can pass a buffer pointer from UL to KM.
But now, I want to do the reverse path, from KM to UL...
I saw the inverted call model (http://www.osronline.com/article.cfm?id=94), but the code is a bit hard to understand (to huge).
Is there a simple way to do that? Or anyone can explain me with simple words / schematics / snippets ?
Thanks a lot
EDIT: Oops, I just saw that thread http://www.kernelmode.info/forum/viewto ... f=14&t=920
Will have a look.