Re: IRP_MJ_READ/IRP_MJ_WRITE

Tech-Archive recommends: Speed Up your PC by fixing your registry



wdk doc says that Irp->userbuffer is used only in case Deviceiocontrol IRPs.

It is used always for all read/write/IOCTL IRPs.

To touch this buffer, you need a) __try/__except block b) be in the caller's
process context.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

.



Relevant Pages

  • Re: Pen Drive Initialization
    ... It must have the valid filesystem metadata with 100% of data space marked ... >> Maxim Shatskih, Windows DDK MVP ... >>> When I do that, windows keeps repeating the reading commands, and there ...
    (microsoft.public.development.device.drivers)
  • Re: Replacing MdlAddress of an IRP. Can we do that?
    ... If the partial MDL was built - then a master MDL which was used as a base ... Maxim Shatskih, Windows DDK MVP ... Apparently I have to use a IoBuildPartialMdl (PreviousMdl, SwapMdl, ...
    (microsoft.public.development.device.drivers)
  • Re: Accessing the adapter context in an NDIS driver
    ... >> Maxim Shatskih, Windows DDK MVP ... >> StorageCraft Corporation ... >>> I don't know how to get to my adapter context from my dispatch routine, ...
    (microsoft.public.development.device.drivers)
  • Re: USBSTOR.SYS
    ... > interpret certain sectors. ... >>> Maxim Shatskih, Windows DDK MVP ... >>> StorageCraft Corporation ...
    (microsoft.public.development.device.drivers)
  • Re: sharing serial ports among applications
    ... > has to be acquired before the applications can access the com port. ... >> Maxim Shatskih, Windows DDK MVP ... >> StorageCraft Corporation ...
    (microsoft.public.development.device.drivers)