Adding devices in setupapi

Maarten Lankhorst m.b.lankhorst at
Tue Feb 19 17:48:36 CST 2008

Hi all,

I'm trying to add the ipod detection from crossover wine to winehq.
However it seems to be not compatibel due to changes to setupapi in
the last 3 years.

Basically what I want to do is add an usb mass storage device with the
correct device path and register it with setupapi. Composing the
string is easy but I'm not 100% sure what the locations are. The code
seems a bit vague in that aspect. The snippet iTunes uses for
detection is shown below:

SetupDiGetClassDevsExW {53f56307-b6bf-11d0-94f2-00a0c91efb8b} (null)
(nil) 0x00000012 (nil) (null) (nil)
SetupDiEnumDeviceInterfaces 0x136638, (nil),
{53f56307-b6bf-11d0-94f2-00a0c91efb8b}, 0, 0x7aa2140c

How do I get my device listed in SetupDiEnumDeviceInterfaces there so
iTunes can pick it up?


More information about the wine-devel mailing list