Q
Q
Qreen2021-07-18 18:40:42
DLL
Qreen, 2021-07-18 18:40:42

How do dll files work?

There is no awareness of the work of dll files. I realized that dlls are practically the same exes, i.e. PE files. But what is their difference? And, since these are the same executable files, is it possible to do at the beginning, for example, jmp my_function in the dll itself when it is imported? Or should the functions be called only from the program that imports the dll? How does the import work in general?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-07-18
@Qreen

But what is their difference?

They don't have an entry point, so they can't just be picked up and run - that's one thing.
Two - a .NET assembly can be hidden under the .dll, and not a classic binary.
And, since these are the same executable files, is it possible to do at the beginning, for example, jmp my_function in the dll itself when it is imported?

It is impossible, because these are not executable files, but a set of functions.
How does the import work in general?

Dynamic linking

K
Konstantin Tsvetkov, 2021-07-18
@tsklab

RUNDLL allows you to call individual functions .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question