rust_libloading icon indicating copy to clipboard operation
rust_libloading copied to clipboard

Reflective loading?

Open JohnScience opened this issue 2 months ago • 3 comments

Hi, I've just published reflective_pe_dll_loader and decided to share this piece of news with you. I don't know if you want to one day support reflective loading but you can salvage some of my code for implementation of reflective loading on Windows.

JohnScience avatar Apr 05 '24 10:04 JohnScience

That's very interesting, thank you. Do you handle linking at all, or is this limited to dependency-free code?

nagisa avatar Apr 05 '24 10:04 nagisa

@nagisa

It does support implicit linking but I don't know how to support delay-loaded DLLs.

JohnScience avatar Apr 05 '24 10:04 JohnScience

This article seems to implement the same approach and it mentions the limitations: https://www.codeproject.com/Tips/430684/Loading-Win-DLLs-manually-without-LoadLibrary

In the comment section, there is useful advice on how to circumvent those.

JohnScience avatar Apr 11 '24 17:04 JohnScience