Page 1 of 1

Using exported Functions of a dll wich i can´t see directly?

Posted: Sun Oct 27, 2013 11:51 am
by N_Gnom
I have a dll and there are not all exported functions visible.
I have one exported mainfunction and it is possible that all the functions are inside a class.

I know how to use exported functions of a dll, but thats now a problem.

I know the names of the exported functions but how i have to call them?

Or is there a way to show all functions inside the dll?(i´m not sure if the names are all correct)
PE Explorer and so on doesn´t let me show all.

Re: Using exported Functions of a dll wich i can´t see direc

Posted: Sun Oct 27, 2013 1:27 pm
by IdeasVacuum
If PE Explorer can't see the functions, then the DLL has most likely been encrypted in some way. Your best bet is to contact the author of the DLL.

Re: Using exported Functions of a dll wich i can´t see direc

Posted: Sun Oct 27, 2013 1:50 pm
by N_Gnom
I can see functions...but only a few.
I think in the main function are all the other functions inside.

Re: Using exported Functions of a dll wich i can´t see direc

Posted: Sun Oct 27, 2013 2:41 pm
by Shield
N_Gnom wrote:I have one exported mainfunction and it is possible that all the functions are inside a class.
If the functions are defined in a class, they won't be visible to the outside (i.e. your program).

Instead, these are virtual methods that will be called based on an object. The methods are stored in a virtual
table and will be called by address. The exported functions are most likely the constructors.
In order to access them, you need to know the exact structure. Do you have some header file?.

If, however, these classes are not pure-virtual, you will be pretty much out of luck calling them with PB,
it will be a pain in the rear not worth the time dealing with. Maybe you could give some more information
about the DLL in question.

Re: Using exported Functions of a dll wich i can´t see direc

Posted: Sun Oct 27, 2013 2:57 pm
by N_Gnom
Yes i have the header file for the .lib.
But only for the .lib.

Re: Using exported Functions of a dll wich i can´t see direc

Posted: Sun Oct 27, 2013 3:07 pm
by Shield
If it is an object oriented library, you'll be much better off writing a procedural wrapper in C++.
There are some examples in the forums on how to do that, it is not that difficult but it requires some
knowledge to get started.

Re: Using exported Functions of a dll wich i can´t see direc

Posted: Sun Oct 27, 2013 3:12 pm
by N_Gnom
In wich way the structure should be?
so i can take a look at the header files and post snippets of that.
i don´t wanna post all the header files here.