Open bditt opened 2 years ago
What's a "manual mapper" and how does that work?
What's a "manual mapper" and how does that work?
Manual Mapping is basically emulating LoadLibrary and you basically allocate space in a process to write the dll into memory. I don't think this should be an issue, but I just figured I'd mention it.
I absolutely expect that to fail then, because there's more than just memory that needs to run. You need to properly initialize every static variable, run every kick-on routine that's associated with the DLL being loaded, and more.
Is this an Open Source project? I could try debugging it that way.
It's not open source, but I think this is the closest I can show that's like the project.
https://github.com/mactec0/Kernelmode-manual-mapping-through-IAT
Hi there, I'm running into an issue when it comes to manual mapping my DLL.
The DLL is written in Visual Studio 2019, C++ 17 Standard, with Use MFC in static library enabled.
Using Lua 5.4.3 compiled on my windows PC via command line.
I can run it normally when I use LoadLibrary, but when manual mapping it, I get a Microsoft C++ Exception during the creation of a new usertype.
Like I said, this only happens when using my manual mapper I made, but not with LoadLibrary. So I'm not sure if it's a mapper issue or a Sol issue.
Vector Class:
Code: