In my Windows DLL (VS 2015, Win 10), AudioDeviceManager::getAvailableDeviceTypes() delivers nothing, no matter what. Even if I force a re-scan by hacking listNeedsScanning = true, the list still is empty.
The same code in a standalone App delivers available devices as expected. Also, no problems in a dynamic library on macOS.
I’m doing the setCurrentModuleInstanceHandle() thing in DllMain already.
I suspect this may possibly have to do with an improper call of initialiseJuceGUI(), which is called on a secondary thread (the one that also loads the DLL), because I don’t seem to have a chance to push it to the message thread before MessageManager actually exists. Is there a trick to get around this?
What am I missing?

