0

How can I use _unDName function? What library should i link to make the following program work?

#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);
  }
}

And yes, I know that there's a function named UnDecorateSymbolName in WinAPI.

FrozenHeart
  • 18,778
  • 30
  • 107
  • 223

0 Answers0