Re: NDIS Drivers, Symbolic Names, Ethernet send/receive etc.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Arkady Frenkel (arkadyf_at_hotmailxdotxcom)
Date: 01/18/05


Date: Tue, 18 Jan 2005 08:19:42 +0200

Hi!
"Skybuck Flying" <nospam@hotmail.com> wrote in message
news:csgk1d$8sg$1@news4.zwoll1.ov.home.nl...
> Hi,
>
> Suppose a user has a computer with a network card and windows xp
> pre-installed.
>
> Now I want to write a program to send and receive ethernet packets for
this
> kind of computer.
>
> To do this I would need to call CreateFile and then use some sort of
> symbolic name.

Usually you can't do this because not driver but NDIS created security
setting for device
due to Security Descriptor Definition Language (SDDL) in the driver calling
IoCreateDeviceSecure() inside.
>
> Maybe something like:
>
> \\.\\NDIS
>
> What is this specific symbolic name ?
>
> Or maybe
>
> \\.\\IP
>
> ?
>

No , you have to use GUID as a name for device device

> Does windows xp automatically install NDIS drivers for detected network
> cards ?
>
Yes , but if default driver don't match the device , Device manager will ask
you about
driver for NIC

> If so how can I use these drivers ? How do I find out their symbolic names
?
>
You'll see them in registry

> If not then the user should install NDIS drivers ?
>
I answered on that : one before last

> Again how do I find out their symbolic names ? Or how do I find these
> drivers ? ( so my application can talk to them ).
>
As an example look at http://www.pcausa.com/Utilities/macaddr2.htm

> Is there anything else I need to do with these NDIS drivers... maybe bind
> them ? or is that driver specific ?
>
Device Manager automatically bind miniport(s) ( driver(s) of NIC ) to layer
above : IM or protocol.
Miniport in NDIS have no knowledge about protocol above it , only NDIS
manage that.
HTH
Arkady

> Bye,
> Skybuck.
>
>
>



Relevant Pages

  • NDIS hanging during Init
    ... During bootup, Device.exe loads the PCI bus driver, which enumerates our network card. ... It then loads ndis and points it to that card's instance. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Incorrect server name
    ... There is no primary WINS server defined for this adapter. ... Broadcom BCM5708C NetXtreme II GigE (NDIS VBD Client) ... Network Monitor Driver ...
    (microsoft.public.windows.server.general)
  • Re: Question about FILE_OBJECT
    ... NDIS IM is a driver that fully conforms to the model, ... I.E. every time they allocated a new context object they ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Running NDISTest on Vista with an NDIS IM Driver
    ... I had a quick look at the ndistest stuff in the WLK1.0c, ... actually some ndis driver in the ... I tried using the version that comes with WLK/DTM on PassThru (NDIS IM ...
    (microsoft.public.development.device.drivers)
  • Re: NDIS functionality details
    ... In my driver I need to decompress compressed video data and provide ... >> NDIS subsystem exports a lot of functions with Ndis* prefix. ... >> DDK says, that there is two ways, one is to copy each packet to driver ...
    (microsoft.public.development.device.drivers)