I want to implement a memory control for my program (I want to know how much memory that it spend)
I have a little piece of code for it (found on the web), and it use :
Qt Code:
  1. #include <windows.h>
  2. #include <psapi.h>
To copy to clipboard, switch view to plain text mode 

I have errors on :
Qt Code:
  1. if ( !EnumProcesses( a ....
  2. if ( GetProcessMemoryInfo( hProc
To copy to clipboard, switch view to plain text mode 
Am I forgetting something ?
Thanks