Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use wspiapi.h for getaddrinfo #28

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Use wspiapi.h for getaddrinfo #28

merged 2 commits into from
Jul 23, 2024

Conversation

jchv
Copy link
Collaborator

@jchv jchv commented Jul 23, 2024

Windows XP and later have getaddrinfo and freeaddrinfo functions in ws2_32.dll. Windows 2000 didn't, but said functions were supported by the Windows 2000 IPv6 Technology Preview in a separate module. Earlier Windows NT platforms and Windows 9x did not support IPv6 or getaddrinfo/freeaddrinfo at all. Using wspiapi.h should dynamically choose the best possible paths to support getaddrinfo/freeaddrinfo.

This should allow Windows 98 to load Rugburn, although all of the hooks will fail to install.

jchv added 2 commits July 22, 2024 21:12
Windows XP and later have getaddrinfo and freeaddrinfo functions in
ws2_32.dll. Windows 2000 didn't, but said functions were supported by
the Windows 2000 IPv6 Technology Preview in a separate module. Earlier
Windows NT platforms and Windows 9x did not support IPv6 or
getaddrinfo/freeaddrinfo at all. Using wspiapi.h should dynamically
choose the best possible paths to support getaddrinfo/freeaddrinfo.
This is needed to prevent unwanted calls into the universal CRT in some
cases.
@jchv jchv merged commit 2ba7773 into master Jul 23, 2024
6 checks passed
@jchv jchv deleted the wspiapi branch July 23, 2024 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant