Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HidD_GetProductString sometimes gets iInterface--how to always get iProduct?

86 views
Skip to first unread message

Jim

unread,
Dec 13, 2010, 9:05:47 AM12/13/10
to
Hi all,

I'm writing a user app and using hid.lib to communicate with some HID
devices. MSDN doc of HidD_GetProductString() says it can return
either iProduct or iInterface (if interface descriptor exists). I
find this ambiguity a real PAIN. Is there a more robust way of
getting the iProduct string descriptor? I figure I need to somehow
get the device descriptor and see what index it has for iProduct.
Then, I can use HidD_GetIndexedString(). My concern is that when/if I
get this descriptor, the iProduct value will be set to the iInterface
(see the comments in HidD_GetIndexedString).

Thanks,

Jim

0 new messages