хм.....че та тут не то
.....фаулт при отображении MDL
буферинг - прямой METHOD_IN_DIRECT
if (ioStack->Parameters.DeviceIoControl.InputBufferLength < 10)
{
code = STATUS_INVALID_BUFFER_SIZE;
break;
}
__try {
pWriteByte = (unsigned char*)
MmGetSystemAddressForMdl(Irp->MdlAddress);
if (pWriteByte == NULL)
DbgPrint("MmGetSystemAddressForMdl Fail!\n");
}
__except(EXCEPTION_EXECUTE_HANDLER) {
DbgPrint("Sorry...\n");
__try {
pWriteByte = (unsigned char*)
MmGetSystemAddressForMdlSafe(Irp->MdlAddress,
LowPagePriority);
if (pWriteByte == NULL)
DbgPrint("MmGetSystemAddressForMdlSafe Fail!\n");
}
__except(EXCEPTION_EXECUTE_HANDLER) {
DbgPrint("Sorry2...\n");
}
}
Че делать то?