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:
- A given process's CPU/RAM usage
- The process which is using the most CPU/RAM
Is there a way to access that information via Python or C++ (basically, via the Windows API)?
Here's what I'm essentially trying to do (in pseudo code):
app x = winapi.most_intensive_process
app y = winapi.most_RAM_usage
print x.name
print y.name
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…