Skip to content

Investigate windows-rs/windows-sys changes for 9x/Me/unicows support #16

Description

@seritools
  • The default "god import" library is imported before unicows.lib, so it prevents unicows from working correctly
  • target checks are too strict and wont link the god import library on rust9x anyways
    • this affects all additional targets like the new win7 one, so I created a fix PR for the official repo
  • Switching to raw-dylib runs into Investigate raw-dylib support/workarounds for unicows #15.
  • link! specifies library names with .dll, making it tricky to change it to #[link(name = "<libraryname>")]
    • one way would be to link everything, without raw-dylib, to kernel32, since kernel32 is always linked. Other dependencies will need to be manually specified in the link args, then.

Activity

  1. self-assigned this
    on Jan 4, 2024
  2. seritools commented on Jan 4, 2024

    @seritools
    MemberAuthor

    I've added two branches to rust9x/windows-rs, one for NT-based Windows only and another one with 9x/Me/unicows support: https://github.com/rust9x/windows-rs/branches

    Added info about it in the Limitation wiki entry as well.

  3. seritools commented on Jan 5, 2024

    @seritools
    MemberAuthor

    All official releases that include microsoft/windows-rs#2774 should also work for NT-based systems.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions