DiInstallDevice

RETERR DiInstallDevice(LPDEVICE_INFO lpdi)
 

Install the device specified by lpdi.

lpdi
Pointer to a DEVICE_INFO struct for the device being installed. If lpdi->lpSelectedDriver is NULL this function will install a NULL driver for the device, otherwise it installs the driver specificed in the driver node.

This API is the default handler for the DIF_INSTALLDEVICE class installer function. This API will install a device by GenInstalling the install section specificed by the lpid->lpSelectedDriver DRIVER_NODE. If Config Manager is running, this API will attempt to dynamically start the device.