Writing NDIS driver - basic

I’m going to write a driver for Realtek 8139D card.
I went through Microsoft’s samples (https://github.com/Microsoft/Windows-driver-samples) like network/ndis/ndisprot*. and I’m quite confused which of all these functions I need to use to write just simple driver.
I’m aware of types of network drivers (miniport, filter, NIC, transport, etc), and I’m not sure what I need to write exactly. Can you help me figuring out how the simple driver should look like? Or give me a good link.
P.S. I googled it but failed, maybe I missed some article, but I dont understand these gigantic Microsoft samples

For a physical NIC, you need a minport driver (a.k.a. "MAC driver).
Try to find some opensource Windows driver, such as virtual guest driver from VirtualBox. Since it does not deal with real hardware, it should be easier to understand.
Opensource protocol driver example is pcap, used with Wireshark.

– pa

xxxxx@gmail.com wrote:

I’m going to write a driver for Realtek 8139D card.

Without intending to stifle your creativity, why are you doing this?
There are already a number of drivers for that chip, which has a very
long history.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Tim, it’s not my creativity, I need to write this because l want to write sort of Driver Generator for any device, so I need this as example to create a simple template :slight_smile:

Pavel, thank you, I will check this out

A “driver generator?” even if you restrict things to just NDIS Ethernet
NIC’s you will not get a good solution, there are too many variable in
things like interrupt handling, concurrent packets, etc to make a generated
driver anything but a performance pig.

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Friday, March 11, 2016 7:59 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Writing NDIS driver - basic

Tim, it’s not my creativity, I need to write this because l want to write
sort of Driver Generator for any device, so I need this as example to create
a simple template :slight_smile:

Pavel, thank you, I will check this out


NTDEV is sponsored by OSR

Visit the list online at:
http:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software
drivers!
Details at http:

To unsubscribe, visit the List Server section of OSR Online at
http:</http:></http:></http:>

Don
I didn’t say my utility will generate fully-functioned drivers, just a template for some “lazy people”, who want to know only specific part to append to template to make driver work good.
By the way, this is the other topic

Can anyone say, which .lib or .dll should I link to get rid of this kind of things?

error LNK2019: unresolved external symbol NdisCloseConfiguration in function NICReadRegParameters \adapter.obj

last post is odd - made this editing linker Inputs :slight_smile:

A quick google indicates that NdisCloseConfiguration lives within the Ndis.lib https://msdn.microsoft.com/en-us/library/windows/hardware/ff561642(v=vs.85).aspx