|
UNSIGNED LONG 0x1000的输出格式
[复制链接]
程序中有下面的代码:
ULONG length = 0;
LARGE_INTEGER offset = { 0 };
...
if (IRP_MJ_WRITE == Irpsp->MajorFunction)
{
//如果是写的irp请求,我们在irp stack中取得相应的参数作为offset和length
offset = Irpsp->Parameters.Write.ByteOffset;
length = Irpsp->Parameters.Write.Length;
KdPrint(("IRP_MJ_WRITE:offset:%x.length:%ld!\n",offset.QuadPart,length));
}
WinDBG调试时显示的输出信息一直是下面这样,length是0
IRP_MJ_WRITE:offset:3e878800.length:0!
单步调试,在length = Irpsp->Parameters.Write.Length;这儿显示 length = UNSIGNED LONG 0x1000
但是下一步输出信息还是 IRP_MJ_WRITE:offset:3e878800.length:0!
不知道哪儿出问题了,是ULONG的输出格式不对么?要用什么?
谢了!
|
|