Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Using C and C++ at the same time [VS2010]

Name: Anonymous 2011-10-01 19:06

Terrible!!, I know, but I'm trying to inject a function (written in C) into a process and I need to get the address of the function, but the injecting function is written in C++. &function doesn't point to the actual function but to a jump instruction (which I assume jumps to the function) both when I do it in C++ code and when I make a simple C function to return the address. How do I bypass this thunk?

Name: Anonymous 2011-10-01 22:03

>>4
The VS disassembly shows that return &function; assembles to mov eax,offset @ILT+410(_function@4), but dumpbin just gives mov eax,offset _inj_FindFunction@4. And if I substitute the return statement with __asm mov eax,offset function; it changes to the above snippet anyway.
This seems to be some kind of debug thing; it doesn't happen when I switch the project to Release mode, but I still wish I knew how to turn that off.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List