Επεξεργασία

Κοινή χρήση μέσω


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:

  1. Open Microsoft Visual Studio. On the File menu, choose New > Project.
  2. In the New Project > Templates > Visual C++ > Windows Driver > WDF dialog box, select Kernel Mode Driver (KMDF) Template.
  3. To open the Driver Property Page dialog, choose Project > Properties.
  4. 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.
  5. In the Configuration Properties > Driver Settings > Network Adapter Driver dialog box, select Network Adapter Major Version and Network Adapter Minor Version.
    1. The current version of NetAdapterCx is 2.0. For more information, see NetAdapterCx version overview.
  6. 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.