Jump to content

CPU load indicator without ActiveX

Recommended Posts

Hi, I tried it, it works, but only if you have .NET installed. Not everyone has this, so I would rather have a way that works on all common configurations. Is there no API-call to kernel32.dll or something similar?


NtQuerySystemInformation used to be the popular way of getting the right information. MS now recommend using other functions though (linked on the same page). Not sure how easier it's going to be to get LabView to handle the datatypes...

This CodeProject page might also be of some assistance.

Another approach which may or may not be better is to use the PDH.DLL (Performance Data Helper) functions. Can't remember what the general availability is (might need to distribute the DLL with your app?). They query the performance counters, which are sorta designed for this task, so they might be the best bet.



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.