Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to get system information

How to get system information

Scheduled Pinned Locked Moved C#
questioncsharpperformancetutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kekrops
    wrote on last edited by
    #1

    How do i get processor usage status, virtual memory status, physical memory status and free space on C: drive using C# functions? I cant seem to locate this in the MSDN library. Thanks in advance.

    K 1 Reply Last reply
    0
    • K kekrops

      How do i get processor usage status, virtual memory status, physical memory status and free space on C: drive using C# functions? I cant seem to locate this in the MSDN library. Thanks in advance.

      K Offline
      K Offline
      Kristian Sixhoj
      wrote on last edited by
      #2

      kekrops wrote:

      How do i get processor usage status, virtual memory status, physical memory status and free space on C: drive using C# functions?

      Look at the performance counter component. It can do all the things you're asking for.

      Kristian Sixhoej


      "Failure is not an option" - Gene Kranz

      A 1 Reply Last reply
      0
      • K Kristian Sixhoj

        kekrops wrote:

        How do i get processor usage status, virtual memory status, physical memory status and free space on C: drive using C# functions?

        Look at the performance counter component. It can do all the things you're asking for.

        Kristian Sixhoej


        "Failure is not an option" - Gene Kranz

        A Offline
        A Offline
        alanteigne
        wrote on last edited by
        #3

        Here's a little bit of help, pulling code from something I wrote a while back: add this reference... using System.Diagnostics; create a perf counter... private PerformanceCounter cpuCounter; define it cpuCounter = new PerformanceCounter("Processor", "% Processor Time", "_Total", true); get the value: cpuCurrValue = Convert.ToInt32(cpuCounter.NextValue()); I created a myPerfMon class that uses the perf counters to get and return the values, and another class that tells it to do so on a timer.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups