bolotier
驱动牛犊
驱动牛犊
  • 注册日期2008-06-18
  • 最后登录2009-10-18
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望41点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:3338回复:1

求助:WdfIoTargetCreate导致蓝屏

楼主#
更多 发布于:2009-02-20 17:36
由用户态程序发起一个IoControl,在驱动的DeviceIoControl中使用
Status = WdfIoTargetCreate(pDevExt->Device, WDF_NO_OBJECT_ATTRIBUTES, &IoTarget);
总是蓝屏。
pDevExt->Device是在AddDevice函数中用WdfDeviceCreate创建。

看dump文件说:

FOLLOWUP_IP:
PCIE!WdfIoTargetCreate+1d [c:\winddk\6001.18001\inc\wdf\kmdf\1.7\wdfiotarget.h @ 276]
8f33ddad 5d              pop     ebp

FAULTING_SOURCE_CODE:  
   272:     WDFIOTARGET* IoTarget
   273:     )
   274: {
   275:     return ((PFN_WDFIOTARGETCREATE) WdfFunctions[WdfIoTargetCreateTableIndex])(WdfDriverGlobals, Device, IoTargetAttributes, IoTarget);
>  276: }
   277:
   278: //
   279: // WDF Function: WdfIoTargetOpen
   280: //
   281: typedef


驱动是PCIE的驱动。而且相同的代码在另外一虚拟设备的WDF驱动里可以正常调用,运行没错。但是在PCIE这个WDF驱动里总是蓝屏。

请问各位这是怎么回事?在DeviceIoControl中不能调用WdfIoTargetCreate吗?
bolotier
驱动牛犊
驱动牛犊
  • 注册日期2008-06-18
  • 最后登录2009-10-18
  • 粉丝0
  • 关注0
  • 积分6分
  • 威望41点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2009-02-22 23:02
   
Nobody could help on it?
游客

返回顶部