I’m working on a hardware control panel in JUCE, and I have to handle Windows plug and play messages in the main window. I believe I am correctly registering for the device notification event. I added a WM_DEVICECHANGE handler in juce_WndProc() and an OnDeviceChange() method to NativeDesktopWindow, which I override in my local window class, but it is never getting called. So:
a. Any idea what I am doing wrong?
b. Is there an easier way to do this? (I eventually have to do something similar for the Mac version, so I do need a generic “HardwareChanged” handler.)