Using Kernel-Mode Driver Framework with Non-PnP Drivers
If you are writing a driver for a device that does not support Plug and Play (PnP), the driver must:
Set the WdfDriverInitNonPnpDriver flag in the WDF_DRIVER_CONFIG structure's DriverInitFlags member.
Provide an EvtDriverUnload event callback function.
Create framework device objects that only represent control device objects.
If your device does not support PnP, your driver does not provide an EvtDriverDeviceAdd callback function. Instead, the driver must determine if its device is present.