Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.12 KB

installing-a-non-pnp-driver.md

File metadata and controls

30 lines (23 loc) · 1.12 KB
title description keywords ms.date
Installing a Non-PnP Driver
Installing a Non-PnP Driver
Kernel-Mode Driver Framework WDK , installing drivers
framework-based drivers WDK KMDF , installing
INF files WDK KMDF , non-PnP drivers
non-PnP drivers WDK KMDF
03/12/2020

Installing a Non-PnP Driver

If your KMDF driver supports a non-Plug and Play (PnP) device on Windows 10, use the same approach as that shown in the Non-PnP Driver Sample, but remove references to INF files and co-installers. For example, you do not need the following:

#define NONPNP_INF_FILENAME  L"\\nonpnp.inf"
#define WDF_SECTION_NAME L"nonpnp.NT.Wdf"
 
LoadWdfCoInstaller
UnloadWdfCoInstaller
 
PFN_WDFPREDEVICEINSTALLEX pfnWdfPreDeviceInstallEx;
PFN_WDFPOSTDEVICEINSTALL   pfnWdfPostDeviceInstall;
PFN_WDFPREDEVICEREMOVE     pfnWdfPreDeviceRemove;
PFN_WDFPOSTDEVICEREMOVE   pfnWdfPostDeviceRemove;

For a non-PnP KMDF driver, simply call the SCM API to create the service. For more info, see Installing a Service.