I've been making some research of how to get a process RAM usage by id, but all of the results lead to the use of WorkingSet64 variable, which returns an incorrect value. I have already compared both values WorkingSet64 and the value in the Task Manager, and they aren't equal.
I would like to know how to get the real and correct process RAM usage, just like the Windows' Task Manager's one.
Can you help me out? Thanks in advance.