阅读:1514回复:3
急!急!数据无法发送到下层驱动程序
我现在写一个手柄驱动,可是我驱动安装之后我发现驱动往下层发送的数据全都失败了,不管是Irp还是Urb通过IoCallDriver都不行,我walt oney书里面的方法GET_LOWER_DEVICE_OBJECT,获得下次驱动的地址,可是不行啊。
所以我想是不是inf文件出问题了?我的设备安装之后,在设备管理器的属性页里面显示的驱动信息里面,只有三个文件,分别是inf文件,sys文件和一个动态链接库,所以想请教一下各位高人,到底有可能什么地方出错了?谢谢了 |
|
沙发#
发布于:2004-09-19 21:50
看看你的设备栈是否正确
另外你的错误代码是什么? |
|
|
板凳#
发布于:2004-09-20 09:50
失败时候的状态代码是这样的,
00000016 0.00060315 SendAwaitUrb - error -1073741808 00000017 0.00060706 SendAwaitUrb - returning 那个-1073741808是当时的status |
|
地板#
发布于:2004-09-20 11:33
我的调试信息是这样的,大侠们帮我看看,谢谢了
00000000 0.00000000 Minidriver Registration Worked 00000001 0.00002207 \REGISTRY\MACHINE\SYSTEM\ControlSet001\Services\test 00000002 0.00075931 AddDevice 00000003 0.00079060 DispatchPnp - Irp 24 not supported 00000004 0.00081575 DispatchPnp default- Error C00000BB IoCallDriver failed 00000005 0.00083726 DispatchPnp default- Error C00000BB status is not STATUS_PENDING, total failed 00000006 0.00107053 DispatchPnp - Irp 13 not supported 00000007 0.00109232 DispatchPnp default- Error C00000BB IoCallDriver failed 00000008 0.00111523 DispatchPnp default- Error C00000BB status is not STATUS_PENDING, total failed 00000009 0.00118730 DispatchPnp - IRP_MN_START_DEVICE entry 00000010 0.00120518 StartDevice - getting device descriptor 00000011 0.00122837 SendAwaitUrb - error -1073741808 00000012 0.00124178 SendAwaitUrb - returning 00000013 0.00125714 StartDevice - Error C0000010 trying to read device descriptor 00000014 0.00127949 DispatchPnp - IRP_MN_START_DEVICE exit 00000015 0.00410248 DispatchPnp - IRP_MN_REMOVE_DEVICE entry 00000016 0.00413628 DispatchPnp - release and wait removelock 00000017 0.00415556 DispatchPnp - Stop device 00000018 0.00416952 StopDevice - About to stop the interrupt urb 00000019 0.00418601 StopInterruptUrb - Entered 00000020 0.00420081 StopDevice - Stopped the interrupt urb 00000021 0.00421646 StopDevice - freeing pcd 00000022 0.00423126 StopDevice - passing irp down 00000023 0.00424495 StopDevice - returning 00000024 0.00425780 DispatchPnp - Call removedevice 00000025 0.00427429 RemoveDevice - Trying to delete the interrupt urb 00000026 0.00429496 DispatchPnp - Pass irp down 00000027 0.00431759 DispatchPnp - IRP_MN_REMOVE_DEVICE exit 00000028 0.00444973 Unload |
|