Interfacing ndis miniport with application.

Hi all,

I have developed a simple “ndis miniport driver”.

Now can I write an application which will make NDIS call my driver’s
“MiniportSend”(or MiniportSendPackets). In a way I am trying to interface my
miniport driver directly to application but ofcourse through NDIS. I don’t
have any protocol driver(or intermediate driver)
over it…

Is this possible with CreateFile – WriteFile. OR is there any other way.???

Please let me know…

SHAILESH.


Chat with friends online, try MSN Messenger: http://messenger.msn.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Shailesh,

To test your send handler, you will have to provide a protocol that’s
bound to your miniport. You can use the NDISUIO sample in the DDK.
Make sure you modify the .INF file appropriately so that it binds to
your miniport (upper/lower edge names). NDISUIO also has a console app
component that opens NDISUIO (via CreateFile) which will allow you to
send private IOCTLs to NDISUIO. You can use an IOCTL from the console
app to signal NDISUIO to create a packet and call NdisSend. I think
most of the work is already done for you.

To call your driver from a user-space application via CreateFile,
WriteFile, etc, see the documentation for NdisMRegisterDevice (don’t use
IoCreateDevice/IoCreateSymbolicName). However, this will not exercise
your send handler as you requested. You will have to use something like
the NDISUIO solution I outlined above.

Hope this helps.

Bryan S. Burgin
xxxxx@microsoft.com

This posting is provided “AS IS” with no warranties, and confers no
rights (c) 2002 Microsoft Corporation. All rights reserved.

-----Original Message-----
From: Shailesh Parulekar [mailto:xxxxx@hotmail.com]
Sent: Monday, February 11, 2002 12:19 PM
To: NT Developers Interest List
Subject: [ntdev] Interfacing ndis miniport with application.

Hi all,

I have developed a simple “ndis miniport driver”.

Now can I write an application which will make NDIS call my driver’s
“MiniportSend”(or MiniportSendPackets). In a way I am trying to
interface my
miniport driver directly to application but ofcourse through NDIS. I
don’t
have any protocol driver(or intermediate driver)
over it…

Is this possible with CreateFile – WriteFile. OR is there any other
way.???

Please let me know…

SHAILESH.


Chat with friends online, try MSN Messenger: http://messenger.msn.com


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com