Search code examples
c#.netperformancecounter

How to get Free Memory and CPU usage without PerformanceCounter?


I have Windows XP which do not provide the Categories Processor or Memory, and I cannot bring it to show them (I'm not allowed to edit the registry nor to change System Files)

Is there any way to get the actual CPU usage and Free Memory without using PerformanceCounter?

I'm using .NET 3.5 and C# on Windows XP SP2


Solution

  • Would you be able to use native win32 API calls? If so then they would provide the information your after.

    See the following article: CodeProject: Calling API functions using C#