I really need a function that will take a string (or equivalent) of the name of a process, and return it's CPU usage at that moment in time.
I've tried coding something myself based on the huge number of stuff in the PAQ's, but am not getting anywhere...
My IDE is Dev-C++.
[BTW, I can guarantee that only 1 process with the specified name will be running at any given time].
Thanks very much !