HID device enumeration problem

Hi,
This question is with reference to the following thread Id http://www.osronline.com/showThread.cfm?link=112156.
(mouse with extra buttons).

As told by Doron and Maxim, we have created a second TLC for the extra buttons on our mouse.
It works fine with our application when it is the only mouse connected to the host.

If another USB mouse (HP mouse) is first connected and then the mouse with extra buttons is plugged-in, our application fails to find and open a handle to the mouse with extra buttons.
The SetupDiEnumDeviceInterfaces call seems to be not returning all the HID devices.

Can you please throw light on why it is happening so and how this problem can be overcome?

Regards,
Vinod

Is your application enumerating all the HID interface instances? Or is
it stopping after it finds the first instance? What does the code look
like which enumerates the HID instances?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@mindtree.com
Sent: Thursday, August 02, 2007 11:58 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] HID device enumeration problem

Hi,
This question is with reference to the following thread Id
http://www.osronline.com/showThread.cfm?link=112156.
(mouse with extra buttons).

As told by Doron and Maxim, we have created a second TLC for the extra
buttons on our mouse.
It works fine with our application when it is the only mouse connected
to the host.

If another USB mouse (HP mouse) is first connected and then the mouse
with extra buttons is plugged-in, our application fails to find and open
a handle to the mouse with extra buttons.
The SetupDiEnumDeviceInterfaces call seems to be not returning all the
HID devices.

Can you please throw light on why it is happening so and how this
problem can be overcome?

Regards,
Vinod


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer