LoadLibrary through Memory (not HardDisk)

Started by
2 comments, last by pDK 18 years, 10 months ago
Hey guys, I am trying something new: Loading a Library (*.dll) dynamicly through memory. The reason for this, is that the library will be encrypted on the hard disk, then decrypted into memory, in which binaries could pull functions from.
Example: [Hard Drive]->[Decrypter]->[RAM]<-->[Game]
I'm sure the answer lies in creating a whole new 'LoadLibrary' ontop of the winbase.h function. But... I'm hoping for an easier solution. Any help? - Eric [Edited by - pDK on May 30, 2005 1:04:22 AM]
Advertisement
There isn't an easier solution.
There was recently a thread on flipcode, someone managed to write a LoadLibrary equivalent, that would load a dll from memory and initialize everything correctly.

Lookie here.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Seems to be what I was looking for... to bad this guy's webpage seems to be running of 512k dsl... bah!

Wondering if there are any other solutions out there?

Also, what about a binary file? Streaming an .EXE to memory and executing it? Is that plausable?

This topic is closed to new replies.

Advertisement