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

Support a custom SymbolProvider in NativeLibrary #1483

Closed
wants to merge 0 commits into from

Conversation

soywiz
Copy link
Contributor

@soywiz soywiz commented Dec 2, 2022

This allows to do function hooking/replacement while still using direct mapping.

In addition to that, to properly using the OpenGL library on Windows, and access OpenGL >= 2.0, we need to use a custom getSymbol function: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-wglgetprocaddress

Relevant information:

I have run already the tests here:
https://github.com/korlibs/jna/actions/runs/3601244855

In the test I'm switching cos and sin functions to show it works.

@soywiz
Copy link
Contributor Author

soywiz commented Dec 9, 2022

Started a thread here: https://groups.google.com/g/jna-users/c/RDt8sHAnTm0

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