Accessing HID USB peripheral from application on CE 3.0 device
Posted on 2003-11-26
I have a Windows CE 3.0 device with a USB port, and a USB peripheral that is an HID device. I would like to communicate with the peripheral from the CE host from a user-level application I am developing.
I have seen samples which show how to "talk" to an HID conformant USB device from an application on "standard" Windows platforms (e.g. 2000) - it appears "straightforward" with calls like "HidD_GetHidGuid" and "SetupDiGetDeviceInterfaceDetail", "Creat File" and a bunch of others...
However, when I turn to CE (I'm developing with MS eMbedded Visual C++ 3) I do not find similar examples, or functions, or much help at all. I have seen references to some calls within ce .net - but because of the nature of my host device, I am locked in to CE 3, and embedded visual tools 3 and can't really upgrade. The host device is not a common CE device, e.g. I'm not talking about a PocketPC for example.
I do not want to write a device driver or anything like that - I simply want my user level application to communicate with the device much like it would under "normal" Windows. I do _not_ want to involve the "platform builder" - I am not the OEM - the platform supposedly supports HID compliant devices. It does in fact work with a USB mouse for example (which I believe is a HID device.)
I would like a definitive answer where either - no, this really is not supported under windows CE 3 and can't be done by mere mortals (or without tremendous time/expense/writing a driver/working with the platform builder - or yes, this can be done (with working example,source or pointers thereto...) I am interested in learning as well as having the straight scoop - please supply as much supporting detail as possible.
Thanks very much for any help.
R. W. Glass