阅读:1155回复:3
怎么给驱动传递参数啊?
用DriverStudio做了一个NDIS中间层的驱动
主要实现对网卡收发包的过滤 现在是 如果想过滤收到的源地址为某个ip的包,而这个ip地址是可以给用户设定的 怎么把这个ip地址传进驱动呢?? 望高手指点 |
|
沙发#
发布于: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. |
|
|
板凳#
发布于:2005-06-22 02:10
能说的具体点么
都听不懂 呵呵 谢谢 |
|
地板#
发布于:2005-06-21 22:03
用NdisMRegisterDevice,你的应用程序就可以CreateFile,DeviceIoControl和驱动通讯了
|
|