Skip to content

Allow pinning win modules#178

Merged
nagisa merged 5 commits intonagisa:masterfrom
Kharosx0:allow_pinning_win_modules
May 26, 2025
Merged

Allow pinning win modules#178
nagisa merged 5 commits intonagisa:masterfrom
Kharosx0:allow_pinning_win_modules

Conversation

@Kharosx0
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

nagisa commented May 26, 2025

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

@Kharosx0
Copy link
Copy Markdown
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