Hi guys...
Has anyone had any luck getting the Hook Function Call (/Gh) working?
The help file is pretty cryptic on the topic, mentioning _penter only in reference to the compiler flag, but giving virtually no detail about how to use it.
If I'm reading it correctly, the call to _penter should be issued at the beginning of each function with the prototype as shown below...
This code...
#include <stdio.h>
void __cdecl _penter(void)
{
}
int main (void)
{
printf("In Main...\n");
return 0;
}
produces these errors...
E:\C_Code\Experiments\returnaddr\main.c(3): error #3119: [asm] Redefinition of symbol '__penter'.
E:\C_Code\Experiments\returnaddr\main.c(8): error #3119: [asm] Redefinition of symbol '__penter'.
error #3119: [asm] Redefinition of symbol '__penter'.
error #3119: [asm] Redefinition of symbol '__penter'. *** Error code: 1 ***
Any suggestions how to get this to work?