Skip to content

Allow pinning win modules #178

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

Merged
merged 5 commits into from
May 26, 2025
Merged

Conversation

Kharosx0
Copy link
Contributor

Linux modules can be pinned by passing flags like RTLD_NODELETE to dlopen.

Similar functionality exists on Windows but is not currently exposed. To pin on windows you pass the flag GET_MODULE_HANDLE_EX_FLAG_PIN to GetModuleHandleEx.

This PR aims to permit module pinning for Windows by exposing a function to handle this.

Copy link
Owner

@nagisa nagisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall, thanks!

@nagisa
Copy link
Owner

nagisa commented May 26, 2025

Looks like there are also some minor clippy nags to address.

@Kharosx0
Copy link
Contributor Author

Looks like there are also some minor clippy nags to address.

Fixed

@nagisa nagisa merged commit 990a918 into nagisa:master May 26, 2025
23 checks passed
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.

2 participants