I want my WIN32 application (not the driver) to process IRP_MJ_READ
packets data. What should I do ?
My SYS driver is based on M$ ramdisk example and is quite simple.
Assume, that the application is always active and running. Please do not
worry about it.
Note that on IRP_MJ_READ event I have to send some data (like starting
sector number) to my application, then prepare new data (sector
contents) in that application, send it back to the driver, then complete
IRP_MJ_READ packet. Preparing returning sector data by my application
may take up to 3 seconds.
I know how to exchange data between the driver and my application using
private IOCTL commands. I suppose I should notify my application when
IRP_MJ_READ packet is received. This is the thing that I can do. But how
to “hold” that IRP_MJ_READ packet until my app returns new data ?
Any ideas and/or examples with source code ?
Jurkie (newbie/novice)