Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > HidD_GetFeature() working, HidD_SetFeature() not working

Reply
Thread Tools Display Modes

HidD_GetFeature() working, HidD_SetFeature() not working

 
 
Max
Guest
Posts: n/a

 
      12-01-2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Headset in front jack not working Sandy Windows Vista Hardware 2 02-13-2008 04:36 AM
Re: Chicony Webcam for Toshiba suddenly not working Ivan Tamayo Windows Vista Hardware 1 01-02-2008 04:21 AM
RE: Chicony Webcam for Toshiba suddenly not working the-norm Windows Vista Hardware 0 12-20-2007 05:30 AM
Games aren't working Lana Macri Windows Vista Games 4 12-12-2007 10:30 PM
Windows help And Supprt stops working SonicDeathMonkey Windows Vista Performance 0 04-16-2007 12:22 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59