如何使用_unDName功能?我应链接哪些库以使以下程序有效?
#include <Windows.h>
#include <cstdlib>
extern "C"
char * _unDName(
char * outputString,
const char * name,
int maxStringLength,
void * (* pAlloc )(size_t),
void (* pFree )(void *),
unsigned short disableFlags);
int main()
{
const char * const pName = "?Member@?$X@H@@QAEXXZ";
char * const pTmpUndName = _unDName(0, pName, 0, malloc, free, 0x2800);
if (pTmpUndName)
{
//copy pTmpUndName somewhere, this is the undecorated name
free(pTmpUndName);
}
}
是的,我知道在WinAPI中有一个名为UnDecorateSymbolName的函数。