Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to get the Cached physical memory like what is displayed in the task manager.

I was able to get the physical memory and the free memory using

System.Management.ManagementClass(Win32_OperatingSystem)

but i am suck on getting the cached.

Any insight on how to achieve this would be greatly appreciated

I am trying to do this in a windows form that will be running on Microsoft servers.

I dont need to cache anything i just need to have the same cache value that is shown in the task manager.
Posted
Updated 21-Nov-12 8:46am
v2

1 solution

MSDN will help ya :)
 
Share this answer
 
Comments
DinoRondelly 21-Nov-12 14:17pm    
Hey thanks for the reply, visual studio doesnt seem to want to import the namespace required for this and if i download the dll and add a reference to it i still cant get this name space to work.

I read somewhere while looking into this that only the full install of VS will have this namespace.

Is there any other way to get this information?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900