The clumsy interop between NDIS and WDF has been a recurring theme on this list. That's about to change: at last week's WinHEC, we announced that you can now write a NIC driver using pure WDF. You don't need to use NDIS or its NBLs anymore. (Don't worry - NDIS isn't going away, so your existing drivers still work.)
Here's all the details: https://aka.ms/netadapter
. If you're too busy to click a link, the two main punchlines are: (1) Windows now includes a WDF class extension for networking; and (2) we're rolling out a new datapath designed to make networking great again.
Ask your questions here or send mail to <NetAdpater at microsoft.com>. This is a preview of our APIs, and we're keen on getting your feedback. In fact, various aspects of the new APIs were motivated by past NDIS + WDF threads on OSR's NTDEV list, so we've *already* incorporated some feedback from y'all.
Cheers from Seattle,
- The NDIS & WDF teams at Microsoft.