-
-
[求助]代码怎么会蓝屏的.??我只想传给 ring 3 的程序而已
-
发表于:
2009-5-16 12:33
3900
-
[求助]代码怎么会蓝屏的.??我只想传给 ring 3 的程序而已
NTSTATUS status = STATUS_SUCCESS;
PIO_STACK_LOCATION irpSp = IoGetCurrentIrpStackLocation(Irp);
char chj[] = "feifei";
ULONG uos = irpSp->Parameters.DeviceIoControl.OutputBufferLength;
PVOID pb = Irp->AssociatedIrp.SystemBuffer;
switch(irpSp->Parameters.DeviceIoControl.IoControlCode)
{
case 3538:
// status = SomeHandlerFunction(irpSp);
RtlCopyMemory(pb,chj,7);
status = STATUS_SUCCESS;
break;
default:
Irp->IoStatus.Status = STATUS_INVALID_DEVICE_REQUEST;
Irp->IoStatus.Information = 0;
break;
}
上面的代码怎么会蓝屏的.??我只想传给 ring 3 的程序而已
[课程]Linux pwn 探索篇!