Skip to content

Drop Windows XP support #237

Closed
Closed

Description

@mcuee

From #133.
It may be a good idea to drop Windows XP support. libusb has done that for Windows.

Activity

  1. added
    Windows
    on Jan 26, 2021
  2. Youw commented on Jan 26, 2021

    @Youw
    Member

    Maybe.
    It just don't really solve anything in context of #133. #146 - does. I've described it in details.

  3. mcuee commented on Jan 26, 2021

    @mcuee
    MemberAuthor

    Yes it does not sort the issue of #133.

    But then it may still be a good idea to upgrade from CancelIo to CancelIoEx.

  4. Youw commented on Jan 26, 2021

    @Youw
    Member

    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).

  5. mcuee commented on Apr 20, 2021

    @mcuee
    MemberAuthor

    In this case, I will close this one.

  6. mcuee commented on Jun 14, 2021

    @mcuee
    MemberAuthor

    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.

  7. reopened this on Jun 14, 2021
  8. mcuee commented on Apr 25, 2022

    @mcuee
    MemberAuthor

    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)

    does it make sense to still support Windows XP and Vista? Or old macOS versions? Or very old Linux versions?

    For as long as it doesn't require the actually effort / workarounds on a code level to support those.

  9. aitap commented on Mar 7, 2023

    @aitap

    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.

  10. Youw commented on Mar 7, 2023

    @Youw
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions