Installing the WpdWudfSampleDriver Sample

Similar to the other WPD samples, this sample driver is installed as a root-enumerated device. It appears under the Portable Devices or WPD node in Device Manager, with a device ID of ROOT\WPD\NNNN.

Driver Installation Steps

Complete the following steps to install the sample driver:

  1. Launch the desired build environment from the Start menu.
  2. Build the sample (“build –cZ”).
  3. Copy WUDFUpdate_0xxxx.dll to the directory that contains the driver DLL. This can be found in the <WDK Install Path>\redist\wdf\<architecture> directory
  4. Install the driver (“devcon install wpdwudfsampledriver.inf WUDF\Basic”)

Be aware that the last argument to the devcon command corresponds to the following entry that is found in the driver's INF file:

[Microsoft.NTx86]
%BasicDeviceName%=Basic_Install,WUDF\Basic

Driver Removal Steps

Complete the following steps to remove the sample driver:

  1. Open Device Manager.
  2. Under the Portable Devices node, click the driver that you want to remove.
  3. Click Uninstall.

The WpdWudfSampleDriverSample

The WPD Driver Samples

 

 

Send comments about this topic to Microsoft