anylin
驱动牛犊
驱动牛犊
  • 注册日期2005-06-07
  • 最后登录2008-11-04
  • 粉丝0
  • 关注0
  • 积分365分
  • 威望45点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
阅读:1155回复:3

怎么给驱动传递参数啊?

楼主#
更多 发布于:2005-06-21 21:41
  用DriverStudio做了一个NDIS中间层的驱动

主要实现对网卡收发包的过滤

现在是 如果想过滤收到的源地址为某个ip的包,而这个ip地址是可以给用户设定的

怎么把这个ip地址传进驱动呢??

望高手指点
cyliu
论坛版主
论坛版主
  • 注册日期2003-06-13
  • 最后登录2014-04-11
  • 粉丝5
  • 关注0
  • 积分1238分
  • 威望2531点
  • 贡献值0点
  • 好评度577点
  • 原创分14分
  • 专家分10分
沙发#
发布于:2005-06-22 09:26
An intermediate driver or miniport driver creates a device object by calling NdisMRegisterDevice from its DriverEntry function.

NDIS drivers should never call IoCreateDevice or IoCreateSymbolicLink. Instead, if an NDIS driver must create a device object, it should call NdisMRegisterDevice. Drivers should never attempt to stack the device object over the physical device object by calling IoAttachDevice.

Note that, if a handle to the device object created with NdisMRegisterDevice is open, the driver that created the device object cannot be unloaded. For more information on processing a request to remove a device, see the Platform SDK documentation.

Callers of NdisMRegisterDevice run at IRQL = PASSIVE_LEVEL.
走走看看开源好 Solaris vs Linux
anylin
驱动牛犊
驱动牛犊
  • 注册日期2005-06-07
  • 最后登录2008-11-04
  • 粉丝0
  • 关注0
  • 积分365分
  • 威望45点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-06-22 02:10
能说的具体点么
都听不懂

呵呵 谢谢
zhaock
驱动太牛
驱动太牛
  • 注册日期2002-01-26
  • 最后登录2018-06-02
  • 粉丝3
  • 关注2
  • 积分73328分
  • 威望362317点
  • 贡献值1点
  • 好评度226点
  • 原创分0分
  • 专家分0分
  • 社区居民
地板#
发布于:2005-06-21 22:03
用NdisMRegisterDevice,你的应用程序就可以CreateFile,DeviceIoControl和驱动通讯了
游客

返回顶部