Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Load DLL from memory unit - how use?

Posted on 2012-03-30
4
Medium Priority
?
1,049 Views
Last Modified: 2012-03-30
Hi guys,
I've found a unit with functions that allow to Load a DLL directly from memory, but I don't know how can I use it..

This is the unit: http://www.delphibasics.info/home/delphibasicssnippets/udllfrommem-loadadllfrommemory

I know that the function is:

function memLoadLibrary(FileBase : Pointer) : Pointer;

Open in new window


But I don't know how can I use it, what is the FileBase that I need to define, etc..

Can anyone help-me?

Thanks.
0
Comment
Question by:Mascarado
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 19

Assisted Solution

by:Thommy
Thommy earned 1500 total points
ID: 37788783
With this unit you can load a DLL directly from a bytearray in memory.

FileBase is the pointer to the first array element...
0
 
LVL 19

Accepted Solution

by:
Thommy earned 1500 total points
ID: 37788874
With the result of function memLoadLibrary and the Dll function names you can get the function adresses:

Physbase:= memLoadLibrary(apointer);
FunctionBase := memGetProcAddress(Physbase,'ADllFuncName');

Why do you want to load a DLL directly from memory???
0
 

Author Closing Comment

by:Mascarado
ID: 37789143
Helped
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question