ririri
驱动牛犊
驱动牛犊
  • 注册日期2004-06-02
  • 最后登录2005-07-15
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1208回复:0

有关miniport的得列表问题

楼主#
更多 发布于:2004-06-25 18:36

我不是很清楚,大虾门来指点一下。

一个miniport设备相关的 适配器设备句柄adapter
(有没有这种说法啊,寒一个,先!)
在被设置激活:
pAdapt->MPDeviceState = NdisDeviceStateD0;
pAdapt->PTDeviceState = NdisDeviceStateD0;

这之后,还有必要设置第二个微端口
// Begin the Load Balancing and Bundle Identifier work here
// Default case: the miniport is the primary miniport
pAdapt->isSecondary = FALSE;
// default - primary
pAdapt->pPrimaryAdapt = pAdapt; // default, point to self
pAdapt->pSecondaryAdapt = pAdapt;
// default, point to self

// Set miniport as a secondary miniport, if need beBundleStatus  = MPBundleSearchAndSetSecondary(pAdapt);
――――――――――――――――――――――――――――――

这里,MPBundleSearchAndSetSecondary()是自定义的
用于设置下一个adapter

这一部分我不清楚
为什么要这么做呢?

我想,大概是有很多微端口设备吧
还有adapter list,这个概念又是什么呢?

在MPBundleSearchAndSetSecondary()中会用到一个全局的PADAPT
指针,初值为NULL
我这么没发现在开始用它之前,哪儿给它赋过值
挺怪的,没给它赋过值,就用肯定会错啊
怎么回事呢?

我在NetWall_Lite的源码中看见了(源码见附件)
附件名称/大小 下载次数 最后更新
2004-06-25_NetWall_Lite源码.rar (440KB)  6
游客

返回顶部