Hi,
thanks for the reply. Yes, a keyboard and a generic HID.
Here's what I did:
AuxDeviceHandle=CreateFile (arrayDetailData->DevicePath,
0, FILE_SHARE_READ|FILE_SHARE_WRITE, (LPSECURITY_ATTRIBUTES)NULL,
OPEN_EXISTING, 0, NULL);
I would like to explain it but not so easy here. To resume, I used CreateFile to be able to get information on the devices, then I closed the handle, sort devices and then I used Create File again to dig more in the interesting devices. I removed the second Create File and did the whole job on the first call. It solved the problem but I don't really know why, I had closed the first handle from the first CreateFile call.
Any idea?
Thank you