Adding devices in setupapi

James Hawkins truiken at
Tue Feb 19 17:53:16 CST 2008

On Feb 19, 2008 5:48 PM, Maarten Lankhorst <m.b.lankhorst at> wrote:
> 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?

Call the function in windows and check which registry keys are queried
using regmon.  See the post I just sent to your last question.

James Hawkins

More information about the wine-devel mailing list