46 CHAR buffer[
sizeof(SYMBOL_INFO) + MAX_SYM_NAME] = { 0 };
47 PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer;
48 pSymbol->SizeOfStruct =
sizeof(SYMBOL_INFO);
49 pSymbol->MaxNameLen = MAX_SYM_NAME;
51 DWORD64 Displacement = 0;
52 if (!SymFromAddr(
hProcess, addr, &Displacement, pSymbol)) {
62 CHAR buffer[
sizeof(SYMBOL_INFO) + MAX_SYM_NAME] = { 0 };
63 PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer;
64 pSymbol->SizeOfStruct =
sizeof(SYMBOL_INFO);
65 pSymbol->MaxNameLen = MAX_SYM_NAME;
67 DWORD64 Displacement = 0;
68 BOOLEAN result = SymFromAddr(
hProcess, addr, &Displacement, pSymbol);
69 std::cout << std::dec <<
"[" << GetProcessId(
hProcess) <<
"] " << std::hex << addr;
71 std::cout <<
" Sym: " << pSymbol->ModBase <<
" : " << pSymbol->Name <<
" disp: " << Displacement
72 <<
" Flags: " << pSymbol->Flags <<
" Tag: " << pSymbol->Tag << std::endl;
73 if (pSymbol->Flags == SYMFLAG_CLR_TOKEN) std::cout <<
" CLR token!\n";
76 std::cout <<
" UNK \n";