Building a NetAdapterCx client driver
To obtain the latest version of Visual Studio and the Windows Driver Kit (WDK), please visit the Hardware Dev Center.
Use the following steps to create a new NetAdapter client driver in Visual Studio:
- Open Microsoft Visual Studio. On the File menu, choose New > Project.
- In the New Project > Templates > Visual C++ > Windows Driver > WDF dialog box, select Kernel Mode Driver (KMDF) Template.
- To open the Driver Property Page dialog, choose Project > Properties.
- In the Configuration Properties > Driver Settings > Network Adapter Driver dialog box, select the Link to the Network Adapter Class Extension dropdown and set to Yes.
- In the Configuration Properties > Driver Settings > Network Adapter Driver dialog box, select Network Adapter Major Version and Network Adapter Minor Version.
- The current version of NetAdapterCx is 2.0. For more information, see NetAdapterCx version overview.
- Add the following header to every source file (or to your common/precompiled header):
#include <ntddk.h>
#include <wdf.h>
#include <netadaptercx.h>
The following video Network Adapter Class Extension: Your First Driver shows how to create a new NetAdapter client driver in Visual Studio.