With this code I can get the address of a function by its name:
DWORD dwAddr = (DWORD)GetProcAddress(GetModuleHandleA("user32.dll"), "MessageBoxA");
But it's possible to do the reverse process? From the function address find the function name?
Let's assume that the MessageBoxA
address is 0x1234abcd
. What I want is this:
char *func_name = this_is_what_i_want(0x1234abcd);
printf("%s", func_name); // this will print "MessageBoxA"
OS: Windows