From: Max on
Hi all,

Afetr a lot of tries I finally found and hid descriptor that work as
keyboard hid minidriver and, in my intention, should allow me to
communicate with the driver thought the two api calls
HidD_SetFeature() and HidD_GetFeature(). Unfortunately it seem thta
only HidD_GetFeature() is working. If I try to use HidD_SetFeature() I
note that the driver receive the HID_SET_FEATURE event but the buffer
passed to the event that should contain my custom data to set is
always 2 bytes length, not the original size I passed using the
HidD_SetFeature() call (in my test example I passed a buffer length of
17). I suppose there still is something wrong in my hid descriptor, I
post the descriptor I use, someone can check if there is something
wrong in my configuration? Thank you

0x05, 0x01, // Generic Desktop
0x09, 0x06, // Keyboard
0xA1, 0x01, // Collection (Application)
0x85,0x01,
0x05, 0x07,
0x19, 0xE0,
0x29, 0xE7,
0x15, 0x00,
0x25, 0x01,
0x75, 0x01,
0x95, 0x08,
0x81, 0x02,
0x95, 0x01,
0x75, 0x08,
0x81, 0x01,
0x95, 0x05,
0x75, 0x01,
0x05, 0x08,
0x19, 0x01,
0x29, 0x05,
0x91, 0x02,
0x95, 0x01,
0x75, 0x03,
0x91, 0x01,
0x95, 0x06,
0x75, 0x08,
0x15, 0x00,
0x25, 0x65,
0x05, 0x07,
0x19, 0x00,
0x29, 0x65,
0x81, 0x00,
0xC0, // End Collection

0x06,0x00, 0xFF,
0x09,0x01,
0xA1,0x01,
0x85,0x02,
0x19,0x01,
0x29,0x20,
0x15,0x00,
0x26,0xff, 0x00,
0x75,0x08,
0x95,0x01,
0xB1,0x00,
0xC0