ay19880703
驱动牛犊
驱动牛犊
  • 注册日期2008-05-24
  • 最后登录2010-03-25
  • 粉丝0
  • 关注0
  • 积分18分
  • 威望120点
  • 贡献值1点
  • 好评度1点
  • 原创分0分
  • 专家分0分
阅读:2119回复:1

为什么DDK里面的PASSTHRU的NDIS驱动加载后自己就卸载了.....附上调试信息

楼主#
更多 发布于:2008-08-06 12:15
试了2个驱动  
windows网络封包截获技术里面的那个XPASSTHRU例子
00000000    0.00000000    *** XPASSHTRU.SYS ***    
00000001    0.00005699    ==> DriverEntry...    
00000002    0.00038608    <== NdisIMRegisterLayeredMiniport,the return code is 0.    
00000003    0.00090430    *** XPASSHTRU.SYS ***    
00000004    0.00095180    <== NdisRegisterProtocol.    
00000005    0.00107444    *** XPASSHTRU.SYS ***    
00000006    0.00111523    <== NdisIMAssociateMiniport.    
00000007    0.00268051    *** XPASSHTRU.SYS ***    
00000008    0.00360577    <== Passthru Protocol PtUnload    
00000009    23.41916466    *** XPASSHTRU.SYS ***    
00000010    23.41921997    ==> DriverEntry...    
00000011    23.41955376    <== NdisIMRegisterLayeredMiniport,the return code is 0.    
00000012    23.42001152    *** XPASSHTRU.SYS ***    
00000013    23.42006493    <== NdisRegisterProtocol.    
00000014    23.42019272    *** XPASSHTRU.SYS ***    
00000015    23.42023468    <== NdisIMAssociateMiniport.    
00000016    23.42171669    *** XPASSHTRU.SYS ***    
00000017    23.42176628    <== Passthru Protocol PtUnload    

DDK里面的PASSTHRU的例子
00000000    0.00000000    Passthru:    
00000001    0.00006258    PtUnload: entered    
00000002    0.00029082    Passthru:    
00000003    0.00033356    PtUnloadProtocol: done!    
00000004    0.00039614    Passthru:    
00000005    0.00043637    PtUnload: done!    

我看XPASSTHRU里面附带的输出调试信息里面是这样子的:
00000079    0.11450307    *** XPASSHTRU.SYS ***==>Passthru Miniport MPQueryInformation    
00000080    0.11454497    *** XPASSHTRU.SYS ***==>Passthru Miniport MPIsSendOID    
00000081    0.11458101    *** XPASSHTRU.SYS ***<== Passthru Protocol PtRequestComplete    
00000082    0.11464722    *** XPASSHTRU.SYS ***==>Passthru Miniport MPQueryInformation    
00000083    0.11469499    *** XPASSHTRU.SYS ***==>Passthru Miniport MPIsSendOID    
00000084    0.11473019    *** XPASSHTRU.SYS ***<== Passthru Protocol PtRequestComplete    
00000085    0.11478048    *** XPASSHTRU.SYS ***==>Passthru Miniport MPQueryInformation    
00000086    0.11481903    *** XPASSHTRU.SYS ***==>Passthru Miniport MPIsSendOID    
00000087    0.11485339    *** XPASSHTRU.SYS ***<== Passthru Protocol PtRequestComplete    
00000088    0.11787808    *** XPASSHTRU.SYS ***==>Passthru Miniport MPQueryInformation    
00000089    0.11792333    *** XPASSHTRU.SYS ***==>Passthru Miniport MPIsSendOID    
00000090    0.11796021    *** XPASSHTRU.SYS ***<== Passthru Protocol PtRequestComplete    
00000091    0.11801301    *** XPASSHTRU.SYS ***==>Passthru Miniport MPQueryInformation    
00000092    0.11811023    *** XPASSHTRU.SYS ***==>Passthru Miniport MPIsSendOID    
00000093    0.11814543    *** XPASSHTRU.SYS ***<== Passthru Protocol PtRequestComplete    
00000094    0.11832311    *** XPASSHTRU.SYS ***==> Passthru Protocol PtSendComplete    
00000095    0.11835495        PacketPointer: 2164619032.    
00000096    0.11837842        PhysicalBufferCount: 1.    
00000097    0.11840021        BufferCount: 1.    
00000098    0.11842787        FirstBufferPointer: 2164469064.    
00000099    0.11845301        TotalPacketLenth: 42.    
00000100    0.11847396        HeaderSize: 0.    
00000101    0.11850246        Protocol: DEFAULT.    
00000102    0.11852509        Status: NDIS_STATUS_PENDING.

请问是我哪个地方出了问题  为什么输出结果跟他们不一样呢
login20
驱动牛犊
驱动牛犊
  • 注册日期2010-05-28
  • 最后登录2012-03-21
  • 粉丝0
  • 关注0
  • 积分3分
  • 威望31点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2012-03-15 22:35
怎么好几年了也没人来回答。原来做驱动的都这么。。。哎!
游客

返回顶部