You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I afraid the most - it will hide the #133 issue deep enough so some users will start thinking that there is no issue.
I always favor an explicit crash/hang/error (so it is reproducible, can be easily debugged/fixed) instead of an "undefined behavior" that may hit you one in a million times.
In other words: hid_close better not try to interrupt hid_read (explicitly or implicitly) unless it is going to wait for its completion (which is not the case for any of the backends).
When the use of CM_Get_DevNode_PropertyW (Vista and later) has been introduced in 11cc0e8, it was made optional. In 2551a5d, failure to resolve CM_Get_DevNode_PropertyW becomes a fatal error, which effectively drops Windows XP support.
This is not a complaint (though if you're interested, I could submit a pull request); I'm just providing information for the sake of someone else whose code will fail to initialise on an old machine and who will go searching for "Windows XP" in this repo.
Thanks for observation.
If you're interested in Windows XP support and can test it - a PR with a fix is welcome.
As for general direction - there're still older releases of HIDAPI that build&run on Windows XP, and I'm sure there'are projects that are still using it.
But until I hear about them here on Github (as an issue or a PR), I say that we can effectively abandone WindowsXP support, even if not intentionally, but as a result of a refactoring/improvement.
And even though the original topic of this conversation was about dropping WindowsXP support, effectivelly it is about a (false) workaround for #133.
Activity
Youw commentedon Jan 26, 2021
Maybe.
It just don't really solve anything in context of #133. #146 - does. I've described it in details.
mcuee commentedon Jan 26, 2021
Yes it does not sort the issue of #133.
But then it may still be a good idea to upgrade from CancelIo to CancelIoEx.
Youw commentedon Jan 26, 2021
What I afraid the most - it will hide the #133 issue deep enough so some users will start thinking that there is no issue.
I always favor an explicit crash/hang/error (so it is reproducible, can be easily debugged/fixed) instead of an "undefined behavior" that may hit you one in a million times.
In other words:
hid_closebetter not try to interrupthid_read(explicitly or implicitly) unless it is going to wait for its completion (which is not the case for any of the backends).mcuee commentedon Apr 20, 2021
In this case, I will close this one.
mcuee commentedon Jun 14, 2021
I will keep this open even if this does not help on #133. Probably this can be considered after #133. But from what I read #133 is not easy.
mcuee commentedon Apr 25, 2022
I think it is better to close this as it is clear that hidapi will support old OS when there are no extra efforts.
#376 (comment)
aitap commentedon Mar 7, 2023
When the use of
CM_Get_DevNode_PropertyW(Vista and later) has been introduced in 11cc0e8, it was made optional. In 2551a5d, failure to resolveCM_Get_DevNode_PropertyWbecomes a fatal error, which effectively drops Windows XP support.This is not a complaint (though if you're interested, I could submit a pull request); I'm just providing information for the sake of someone else whose code will fail to initialise on an old machine and who will go searching for "Windows XP" in this repo.
Youw commentedon Mar 7, 2023
Thanks for observation.
If you're interested in Windows XP support and can test it - a PR with a fix is welcome.
As for general direction - there're still older releases of HIDAPI that build&run on Windows XP, and I'm sure there'are projects that are still using it.
But until I hear about them here on Github (as an issue or a PR), I say that we can effectively abandone WindowsXP support, even if not intentionally, but as a result of a refactoring/improvement.
And even though the original topic of this conversation was about dropping WindowsXP support, effectivelly it is about a (false) workaround for #133.