title: Accessing CPU/RAM usage (like with Task Manager, but via API!)?
body: <p>Is there a specific way to access "task manager" information with the Windows API? I have done a fair bit of searching on the matter, but I can't seem to find an API call that will tell me either:</p>
  
  <ul>
  <li>A given process's CPU/RAM usage</li>
  <li>The process which is using the most CPU/RAM</li>
  </ul>
  
  <p>Is there a way to access that information via Python or C++ (basically, via the Windows API)?</p>
  
  <p>Here's what I'm essentially trying to do (in pseudo code):</p>
  
  <pre><code>app x = winapi.most_intensive_process
  app y = winapi.most_RAM_usage
  
  print x.name
  print y.name
  </code></pre>