https://bugs.winehq.org/show_bug.cgi?id=37166
--- Comment #2 from Joel Holdsworth joel@airwebreathe.org.uk --- In Rufus v1.4.10, the relevant code calling SetupDiGetClassDevsA is given here: https://github.com/pbatard/rufus/blob/v1.4.10/src/usb.c#L110
Shouldn't be too hard to turn this into a mini test app.
How are test cases normally written for this sort of thing? - is it possible to fake out the physical device presence somehow?