mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
[UMPNPMGR] Broadcast a WM_DEVICECHANGE message after a device install was queued
This commit is contained in:
parent
8f8db4ddb6
commit
ec0a300f2b
1 changed files with 9 additions and 0 deletions
|
@ -136,6 +136,7 @@ ProcessDeviceInstallEvent(
|
||||||
DeviceInstallParams* Params;
|
DeviceInstallParams* Params;
|
||||||
DWORD len;
|
DWORD len;
|
||||||
DWORD DeviceIdLength;
|
DWORD DeviceIdLength;
|
||||||
|
// DWORD dwRecipient;
|
||||||
|
|
||||||
DPRINT("ProcessDeviceInstallEvent(%p)\n", PnpEvent);
|
DPRINT("ProcessDeviceInstallEvent(%p)\n", PnpEvent);
|
||||||
DPRINT("Device enumerated: %S\n", PnpEvent->InstallDevice.DeviceId);
|
DPRINT("Device enumerated: %S\n", PnpEvent->InstallDevice.DeviceId);
|
||||||
|
@ -156,6 +157,14 @@ ProcessDeviceInstallEvent(
|
||||||
ReleaseMutex(hDeviceInstallListMutex);
|
ReleaseMutex(hDeviceInstallListMutex);
|
||||||
|
|
||||||
SetEvent(hDeviceInstallListNotEmpty);
|
SetEvent(hDeviceInstallListNotEmpty);
|
||||||
|
|
||||||
|
// dwRecipient = BSM_ALLDESKTOPS | BSM_APPLICATIONS;
|
||||||
|
// BroadcastSystemMessageW(BSF_POSTMESSAGE,
|
||||||
|
// &dwRecipient,
|
||||||
|
// WM_DEVICECHANGE,
|
||||||
|
// DBT_DEVNODES_CHANGED,
|
||||||
|
// 0);
|
||||||
|
SendMessageW(HWND_BROADCAST, WM_DEVICECHANGE, DBT_DEVNODES_CHANGED, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue