Table of contents
TOC
Collapse the table of content
Expand the table of content

Installing the WpdServiceSampleDriver Sample

Last Updated: 1/24/2017

Similar to the other WPD samples, this sample driver installs 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 from the <WDK_Install_Location>\redist\wdf\<architecture> directory to the directory that contains the driver DLL.
  4. Install the driver (“devcon install wpdservicesampledriver.inf WUDF\WpdService”)

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

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

Driver Removal Steps

Complete the following steps to remove the sample driver:

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

The WpdServiceSampleDriverSample

The WPD Driver Samples

Send comments about this topic to Microsoft

© 2017 Microsoft