Skip to content

hid_enumerate fails with "Failed to get size of HID device interface list" when running a windows app on Steam Deck #726

Answered by Youw
rafael-f asked this question in Q&A
Discussion options

You must be logged in to vote

The error you get indicates that CM_Get_Device_Interface_List_SizeW fails here.
Unfortunately the error-code is not being logged, so if you could modify and the library to log the cr as well - that might give a little more to reason what is going on there.

If I where to guess - the application from the context you run it either don't have access to HID devices (or any direct access to similar devices) at all, or it has something to do with CfgMgr32 API.
You may try to use HIDAPI v0.11.1 (or older) since that one uses SetupAPI instead of CfgMgr32.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rafael-f
Comment options

@Youw
Comment options

Youw Mar 11, 2025
Maintainer

Answer selected by rafael-f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants