http://bugs.winehq.org/show_bug.cgi?id=21023
--- Comment #4 from Mauricio de Alencar mdealencar@gmail.com 2009-12-16 04:10:57 --- The application that I need which depends on this is an utility program that configures an USB DAQ module (Novus myPCLab). The module works well with the ti_usb_3410_5052 kernel module and can be accessed from wine through a COM_ port pointing to /dev/ttyACM_.
The config program, though, browses through the registry to locate the device, and fails because of this bug.
My workaround was to create the necessary registry values inside the wrong HKEY returned.
By the way, the example program can be compiled with:
i586-mingw32msvc-gcc -o bug_example_SetupDiOpenDevRegKey.exe bug_example_SetupDiOpenDevRegKey.c -lsetupapi
It will list the subkeys of the HKEY returned from SetupDiOpenDevRegKey().
Under Wine it shows three registry keys, among them the "Device Parameters" one.
Under Windows it shows nothing (the "Device Parameters" has no subkeys).