我已经看到了这个答案How to get function's name from function's pointer in C? . 但这个解决方案适用于 linux。
问问题
489 次
1 回答
0
I found this http://ivbel.blogspot.fr/2012/02/how-to-get-functions-name-from.html
res = SymGetSymFromAddr64(GetCurrentProcess(), addr, &dis64, pSym);
if (!res)
{
/* TODO: call your trace function instead of printf */
printf("SymGetSymFromAddr64 fails, error=%ld\n", GetLastError());
return FALSE;
}
else
{
strcpy(symbolName, pSym->Name);
}
The full code is on the link
于 2012-11-28T08:01:33.423 回答