How to get theVendor and Product ID of a USB Window CE device RRS feed

  • Question

  • I am new to USB HID on winCE.  Could someone tell me how to get vendor and product onreport under windowCE environment. On window side there is a function called SetupDiGetDeviceProperty, is there an equvient term on the windowCE side?

    Thank you for your help!

    • Edited by Liang1 Friday, December 14, 2012 1:19 PM
    Thursday, December 13, 2012 9:08 PM


  • Hi,

    In Windows CE Vendor ID and Product ID of USB device are not accessible in the application level.In the Driver you can get it under the CHub::AttachDevice() using following API

    GetDescriptor( pControlPipe,
                                    0, // descriptor index
                                    sizeof( deviceInfo.Descriptor ),
                                    &deviceInfo.Descriptor ) ) ;


    • Proposed as answer by Bruce EitmanModerator Wednesday, December 19, 2012 1:49 PM
    • Marked as answer by Liang1 Monday, December 31, 2012 1:51 AM
    Wednesday, December 19, 2012 12:23 PM