阅读:1396回复:1
为什么我在写请求函数里获取文件名会出错???
相关代码:
FilterWrite( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp ) { PIO_STACK_LOCATION irpStack; PFILE_OBJECT file_object; PDEVICE_EXTENSION StorExtension = ( PDEVICE_EXTENSION )DeviceObject->DeviceExtension; ULONG len; CSHORT Long; irpStack = IoGetCurrentIrpStackLocation( Irp ); file_object = irpStack->FileObject; len=irpStack->Parameters.Write.Length; DbgPrint("文件长度是 %wZ" , file_object->FileName); if(irpStack->MajorFunction==IRP_MJ_WRITE) { DbgPrint("成功拦截写操作!"); } return IoCallDriver( StorExtension->NextLowerDriver, Irp ); } |
|
驱动小牛
|
沙发#
发布于:2009-09-24 17:51
为什么不用windbg?
|
|