I need to transfer data from user space to intermediate NDIS driver.
Is possible to do it with driver I/O ?
(with adding Dos symbolic link and registering
->MajorFunction[IRP_MJ_CREATE] = DriverDispatch....
->MajorFunction[IRP_MJ_WRITE] = DriverDispatch....
...
...

Or there is other prefered mechanism ?
Thanks !
Peter

Re: intermediate driver and driver I/O by Zuka

Zuka
Sat Sep 06 06:31:29 CDT 2003

I'm using IOCTL, and it's ok.

You get called in your driver's Dispatch under
switch (irpStack->MajorFunction)

{

case IRP_MJ_DEVICE_CONTROL:

switch (irpStack->Parameters.DeviceIoControl.IoControlCode)

{

case YOUR_OWN_IO_CONTROL_CODE1:

case YOUR_OWN_IO_CONTROL_CODE2:

...

}

}




"Peter" <pskvarka@kerio.com> wrote in message
news:uSEizuEdDHA.2112@TK2MSFTNGP10.phx.gbl...
> I need to transfer data from user space to intermediate NDIS driver.
> Is possible to do it with driver I/O ?
> (with adding Dos symbolic link and registering
> ->MajorFunction[IRP_MJ_CREATE] = DriverDispatch....
> ->MajorFunction[IRP_MJ_WRITE] = DriverDispatch....
> ...
> ...
>
> Or there is other prefered mechanism ?
> Thanks !
> Peter
>
>
>



Re: intermediate driver and driver I/O by Thomas

Thomas
Sat Sep 06 08:10:20 CDT 2003

See the article "Extending the PassThru NDIS IM Driver" at www.wd-3.com.

Thomas F. Divine

"Peter" <pskvarka@kerio.com> wrote in message
news:uSEizuEdDHA.2112@TK2MSFTNGP10.phx.gbl...
> I need to transfer data from user space to intermediate NDIS driver.
> Is possible to do it with driver I/O ?
> (with adding Dos symbolic link and registering
> ->MajorFunction[IRP_MJ_CREATE] = DriverDispatch....
> ->MajorFunction[IRP_MJ_WRITE] = DriverDispatch....
> ...
> ...
>
> Or there is other prefered mechanism ?
> Thanks !
> Peter
>
>
>



RE: intermediate driver and driver I/O by bburgin

bburgin
Sat Sep 06 13:45:17 CDT 2003

------=_NextPart_0001_DA8CA507
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


Use NdisMRegisterDevice -- it will create a device and symbolic link for
you. The MUX, PASSTHRU and NETVMINI samples show how to do this.

Bryan S. Burgin
bburgin@microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_DA8CA507
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20
\par Use NdisMRegisterDevice -- it will create a device and symbolic link for you. The MUX, PASSTHRU and NETVMINI samples show how to do this.
\par
\par Bryan S. Burgin
\par bburgin@microsoft.com
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
------=_NextPart_0001_DA8CA507--