mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00:00
[UMPNPMGR] Broadcast a WM_DEVICECHANGE message after a device install was queued
This commit is contained in:
@@ -136,6 +136,7 @@ ProcessDeviceInstallEvent(
|
||||
DeviceInstallParams* Params;
|
||||
DWORD len;
|
||||
DWORD DeviceIdLength;
|
||||
// DWORD dwRecipient;
|
||||
|
||||
DPRINT("ProcessDeviceInstallEvent(%p)\n", PnpEvent);
|
||||
DPRINT("Device enumerated: %S\n", PnpEvent->InstallDevice.DeviceId);
|
||||
@@ -156,6 +157,14 @@ ProcessDeviceInstallEvent(
|
||||
ReleaseMutex(hDeviceInstallListMutex);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user