首页
社区
课程
招聘
[求助]代码怎么会蓝屏的.??我只想传给 ring 3 的程序而已
发表于: 2009-5-16 12:33 3900

[求助]代码怎么会蓝屏的.??我只想传给 ring 3 的程序而已

2009-5-16 12:33
3900
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 探索篇!

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 412
活跃值: (30)
能力值: ( LV5,RANK:70 )
在线值:
发帖
回帖
粉丝
2
蓝屏看DUMP
2009-5-16 12:42
0
雪    币: 44
活跃值: (133)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
宽字符
这里只是default里的Irp->IoStatus.Information = 0;
实际操作的字节数呢
2009-5-16 15:02
0
游客
登录 | 注册 方可回帖
返回
//