> pBuffer = (MYVARTYPE *)Irp->AssociatedIrp.SystemBuffer;
if (irpStack->Parameters.DeviceIoControl.IoControlCode == MY_IOCTL)
{
// pBuffer->pid … the PID I’m getting hold of
// pBuffer->address … the address I’m getting hold of(…) // Now how am I gonna use MmGetSystemAddressForMdlSafe here?
Try this:
pMappedBuffer = MmGetSystemAddressForMdlSafe(Irp->MdlAddress);
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com