Is there a call to get all the system metrics with one call instead of using TOO MANY calls to GetSystemMetrics() to get each metric one at at time.
Printable View
Is there a call to get all the system metrics with one call instead of using TOO MANY calls to GetSystemMetrics() to get each metric one at at time.
I don't know of any way to do what you're asking and I kinda doubt that there is a way.
What I can recommend is to create yourself a structure with all the items you need to retrieve and then pass it into a function that fills it up (through multiple calls to GetSystemMetrics, of course). This will simulate what you need: one call to do it all.
Cheers!
Alvaro