windows::Win32::Devices::DeviceAndDriverInstallation

Function DiInstallDevice

pub unsafe fn DiInstallDevice(
    hwndparent: Option<HWND>,
    deviceinfoset: HDEVINFO,
    deviceinfodata: *const SP_DEVINFO_DATA,
    driverinfodata: Option<*const SP_DRVINFO_DATA_V2_W>,
    flags: DIINSTALLDEVICE_FLAGS,
    needreboot: Option<*mut BOOL>,
) -> Result<()>