How to fix error code 433 STATUS_NO_SUCH_DEVICE from api HidD_SetFeature

yyyyyauu 5 Reputation points
2023-12-06T05:24:58.5766667+00:00

We need to set command to HID device by HidD_SetFeature. But we get error 433 even we can get device handle.

Our process is as follows:

  1. using API HID_GetDevice to get HID devices
  2. using API HidD_GetAttributes to get device vid and pid
  3. using vid to found the device we want to communicate with
  4. using HID_OpenDevice to get device handle
  5. using HidD_SetFeature to send command -> problem error 433

What are the possible reasons for this issue? How to fix it?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-12-06T05:49:17.3766667+00:00

    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 **

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.