associating IRP with logical or physical disk block

Hi,

My goal is to associate each IRP with the disk blocks they access (can
be logical or physical). Is there any way to determine the logical (or
physical) OS disk block that will be accessed from an IRP?

Thanks,
Nate

> My goal is to associate each IRP with the disk blocks they access (can

be logical or physical). Is there any way to determine the logical (or
physical) OS disk block that will be accessed from an IRP?

IoGetCurrentIrpStackLocation(Irp)->Parameters.Read.ByteOffset or
Parameters.Write.ByteOffset

Divide to the sector size.

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