Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

caesar4

loading a DLL from memory

This topic is 5155 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

for a project of mine, i need to load a DLL directly from memory. is there a way to do that other than temporarily saving it to the HD? and would i need GetProcAddress() for each function and class exported in such a DLL?
Cartman''s definition of sexual harrasement: "When you are trying to have intercourse with a lady friend, and some other guy comes up and tickles your balls from behind" (watch South Park, it rocks)

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
You cannot load a DLL from memory. For a user with administrative rights you could in theory create a ram drive and load the DLL from there, but it seems like a really messy solution.

What are you trying to accomplish? Go with some well-known legacy design instead.

Share this post


Link to post
Share on other sites
quote:
Original post by caesar4
for a project of mine, i need to load a DLL directly from memory.
is there a way to do that other than temporarily saving it to the HD?



Um, what?

A .dll is a file already on your hard drive. Just load it and use it.

Share this post


Link to post
Share on other sites
theory is:
1)dll is encrypted in some file on the HD
2)read into memory and decrpyted
3)execute dll directly from memory

this i think should prevent most cheating, hacking, and cracking.
problem is to implement it



Cartman''s definition of sexual harrasement:
"When you are trying to have intercourse with a lady friend, and some other guy comes up and tickles your balls from behind"

(watch South Park, it rocks)

Share this post


Link to post
Share on other sites
Ah. Well, after decrypting, just write it out to a temp file, and load that. Delete the file after you''re done with it.

Share this post


Link to post
Share on other sites
if i write it as a temp file, it could be cracked

EDIT: it would take the best cracker to crack it if it's loaded from memory, so the piracy rate should drop a thousand-fold

[edited by - caesar4 on April 12, 2004 4:04:49 PM]

Share this post


Link to post
Share on other sites
it can be cracked even if it is in memory ...

-----------------
SloGameDev.net :: Slovenian Game Developers network

Q:What does a derived class in C# tell to it''s parent?
A:All your base are belong to us!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!