I have an ULONG64
variable from SYMBOL_INFO
structure that contains virtual address represented as 18446744073709551572 value and I need to convert it to the void*
so I can pass it to the ReadProcessMemory
function.
If I just do
reinterpret_cast<void*>(pSymInfo->Address)
it gives me FFFFFFD4.
Why? What am I doing wrong? How can I fix it?
Thanks in advance.
Not sure why the
reinterpret_cast
is not working as it should but I usually useULongToPtr
to do these kind of things.