passthru的安装后打印的信息分析

来源:互联网 发布:淘宝封号怎么解封 编辑:程序博客网 时间:2024/05/17 22:40

Passthru: PtPnPHandler: Adapt 00000000, Event 4
Passthru: ==> Protocol BindAdapter
Passthru: <== Protocol BindAdapter: pAdapt 81FEF2C8, Status 0
Passthru: ==> Protocol BindAdapter
Passthru: <== Protocol BindAdapter: pAdapt 82003CF0, Status 0
Passthru: ==> Protocol BindAdapter
Passthru: <== Protocol BindAdapter: pAdapt 81FC9690, Status 0
Passthru: ==> Protocol BindAdapter
Passthru: ==> Miniport Initialize: Adapt 81FC5B18
Passthru: ==>PtRegisterDevice
Passthru: <==PtRegisterDevice: 0
Passthru: <== Miniport Initialize: Adapt 81FC5B18, Status 0

Passthru: ==> Miniport Initialize: Adapt 81FEF2C8
Passthru: ==>PtRegisterDevice
Passthru: <==PtRegisterDevice: 0
Passthru: <== Miniport Initialize: Adapt 81FEF2C8, Status 0
Passthru: ==> Miniport Initialize: Adapt 81FC9690
Passthru: ==>PtRegisterDevice
Passthru: <==PtRegisterDevice: 0
Passthru: <== Miniport Initialize: Adapt 81FC9690, Status 0

如上所示,省去了一点发送和接收包的信息。

从上面打印的信息可知,当我们的sys安装后,首先是PNP发出通知,事件类型为4。为NetEventReconfigure这个通知

下面是ddk中对这个事件的解释

Indicates that the configuration has changed for a network component. For example, if a user, through the Network and Dial-up Connections folder, changes the IP address for TCP/IP, NDIS indicates the NetEventReconfigure event to the TCP/IP protocol. Also, an intermediate driver typically uses this event as a trigger to call the NdisIMInitializeDeviceInstanceEx function and start its virtual miniports. For more information about NetEventReconfigure, see NetEventIMReEnableDevice.

 

预测当前网络元件的配置已经发生了改变。also,当驱动直接调用NdisIMInitializeDeviceInstanceEx 函数并且开始虚拟小端口驱动时这个事件也被引发。这个passthru应该是这个函数引起的事件。

 

事件发出后,并开始Protocol BindAdapter,绑定协议驱动了,我是在虚拟机中农的,有好几块虚拟机网卡,所以绑定了好几次,绑定完毕后开始了小端口驱动的初始化。然后开始注册设备。。。。。。

 

等这一切完毕后,便开始接收数据和发送数据的过滤了。

 

在顺便记下关于关闭驱动签名的:

我的电脑”,选择“属性”命令打开“系统属性”对话框,切换到“硬件”选项卡。

然后点击“驱动程序签名”按钮,接着在弹出的对话框中选择“忽略”项,即“安装软件,不要征求我的同意”,注意应确保“将这个操作作为系统默认值应用”选项前的复选框选中,最后“确定”退出后即可生效。

 

 

仅作个人理解中间层驱动所用,理解的不对还请大家告知哈

原创粉丝点击