How to fix error code 433 STATUS_NO_SUCH_DEVICE from api HidD_SetFeature

yyyyyauu 0 Reputation points

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 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,861 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 20,480 Reputation points

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