![]() |
How to pass the large data in kernel mode to user mode?
Hi
I need to pass the large data in kernel mode to user mode. So, i created a file from kernel mode and write request data to new file. Do you can show other method for me, please?.Thanz u to help me. This is my source in kernel mode: Code:
|
You can allocate a buffer in user process, then send an IOCTL to the driver with this memory, and then call MmGetSystemAddressForMdlSafe(Irp->MdlAddress) in the driver.
|
Be very careful using this method if you move the code to 64bit, or if there is possibility of a 32 bit client running on 64bit windows sending this ioctrl to a 64bit driver.
Git |
Isn't the mapping being done automatically correct when running a 32 bit
application accessing a 64 Bit driver ... ... or did i only had (by accident) a lot of luck ? |
| All times are GMT +8. The time now is 04:03. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX