mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[DEVMGR] Report property changes by the device manager to the installer
This commit is contained in:
parent
bb01b94f83
commit
65646a75a2
1 changed files with 31 additions and 0 deletions
|
@ -3035,6 +3035,37 @@ Cleanup:
|
|||
}
|
||||
}
|
||||
|
||||
if (Ret != 1)
|
||||
{
|
||||
SP_DEVINSTALL_PARAMS_W DeviceInstallParams;
|
||||
|
||||
DeviceInstallParams.cbSize = sizeof(DeviceInstallParams);
|
||||
if (SetupDiGetDeviceInstallParamsW(DeviceInfoSet,
|
||||
DeviceInfoData,
|
||||
&DeviceInstallParams))
|
||||
{
|
||||
SP_PROPCHANGE_PARAMS PropChangeParams;
|
||||
PropChangeParams.ClassInstallHeader.cbSize = sizeof(PropChangeParams.ClassInstallHeader);
|
||||
PropChangeParams.ClassInstallHeader.InstallFunction = DIF_PROPERTYCHANGE;
|
||||
PropChangeParams.Scope = DICS_FLAG_GLOBAL;
|
||||
PropChangeParams.StateChange = DICS_PROPCHANGE;
|
||||
|
||||
SetupDiSetClassInstallParamsW(DeviceInfoSet,
|
||||
DeviceInfoData,
|
||||
(PSP_CLASSINSTALL_HEADER)&PropChangeParams,
|
||||
sizeof(PropChangeParams));
|
||||
|
||||
SetupDiCallClassInstaller(DIF_PROPERTYCHANGE,
|
||||
DeviceInfoSet,
|
||||
DeviceInfoData);
|
||||
|
||||
DeviceInstallParams.FlagsEx &= ~DI_FLAGSEX_PROPCHANGE_PENDING;
|
||||
SetupDiSetDeviceInstallParamsW(DeviceInfoSet,
|
||||
DeviceInfoData,
|
||||
&DeviceInstallParams);
|
||||
}
|
||||
}
|
||||
|
||||
if (DevAdvPropInfo != NULL)
|
||||
{
|
||||
if (DevAdvPropInfo->FreeDevPropSheets)
|
||||
|
|
Loading…
Reference in a new issue