28,655 questions
Thanks for posting your question in the Microsoft Q&A forum.
Ensure that the feature report's size matches the HID device's expected size. If the size of the buffer you pass to HidD_SetFeature does not match the expected size, it can result in failure.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **