I know this question has been asked multiple times. I've looked around a lot, but I can't seem to find an answer.
I did find this code How to get memory usage under Windows in C++. But it will not compile, and all the other answers I've seen have been about how to get a single processes cpu/ram usage.