Custom DLL exports

Need Help With an Existing Feature in Memory Hacking Software? Ask Here

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Custom DLL exports

Postby Felheart » Fri Jun 12, 2009 8:33 pm

Hi L.Spiro,
i wanted to ask if MHS automatically "undecorates" the function-names of c++ or if i have to use
Code: Select all
#define DLLEX extern "C"  __declspec( dllexport )


Because the only way to get the compiler to generate function names wich MHS can detect is by adding this.
Also, when I use the prototypes out of the help file, I get less "decorations" but still no "clean" function names
example:

Just typedefs
Code: Select all
"@@247257@Function@@@s4811@@".


typedefs with extern "C":
Code: Select all
"@Function@8"


The only way a correct name is generated is like this:
Code: Select all
DLLEX void MHS_ProcessAttach( HANDLE hProcess, DWORD dwProcessId )
{
   AllocConsole();
   printf("wall of text");
}


So there is no "CALLBACK" after the "void".
Maybe I should use .def files?
Would you advise using them to make MHS_DLLs ??[/code]
Felheart
Acker
 
Posts: 89
Joined: Sun Apr 27, 2008 3:05 am
Location: Germany

Postby L. Spiro » Fri Jun 12, 2009 9:31 pm

Use .DEF files.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests