SymFromAddr api returning 487 error code
Ashutosh Kumar Verma
0
Reputation points
SymFromAddr api returning 487 error codex for the following code:
DWORD64 dwDisplacement = 0;
char buffer[sizeof(SYMBOL_INFO) + MAX_SYM_NAME * sizeof(CHAR)];
PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer;
pSymbol->SizeOfStruct = sizeof(SYMBOL_INFO);
pSymbol->MaxNameLen = MAX_SYM_NAME;
if (SymFromAddr(hProcess, dwAddress, &dwDisplacement, pSymbol) && pSymbol->NameLen > 0 && pSymbol->Name[0] != 0)
{
// SymFromAddr returned success
return std::string(pSymbol->Name, pSymbol->NameLen);
}
else
{
// SymFromAddr failed
LOG_ERROR("Error Getting Symbol name from Address:" + std::to_string(GetLastError()) );
}
Error that I see, is this:
[ Error: ] Error Getting Symbol name from Address:487
Sign in to answer