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
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to get the status of services in windows Service

how to get the status of services in windows Service

Scheduled Pinned Locked Moved ASP.NET
tutorial
4 Posts 2 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.
  • R Offline
    R Offline
    ramyasangeet
    wrote on last edited by
    #1

    hi all, I have created a windows service and in that i need to capture the status of all other services which are running in the same system. Is it possible to capture windows services status in another Service. Plz give me ur suggestions. Thanks in advance

    cheers sangeet

    S 1 Reply Last reply
    0
    • R ramyasangeet

      hi all, I have created a windows service and in that i need to capture the status of all other services which are running in the same system. Is it possible to capture windows services status in another Service. Plz give me ur suggestions. Thanks in advance

      cheers sangeet

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      HI Can you provide some sort of example such wich process you want to check ?

      Thanks and Regards Sandeep

      R 1 Reply Last reply
      0
      • S Sandeep Akhare

        HI Can you provide some sort of example such wich process you want to check ?

        Thanks and Regards Sandeep

        R Offline
        R Offline
        ramyasangeet
        wrote on last edited by
        #3

        thanks for ur reply. In my Windows Service, i want to check the status of other windows services which are all running in the same system.like whether they are started /stopped. Is it possible??

        cheers sangeet

        S 1 Reply Last reply
        0
        • R ramyasangeet

          thanks for ur reply. In my Windows Service, i want to check the status of other windows services which are all running in the same system.like whether they are started /stopped. Is it possible??

          cheers sangeet

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          HI If you want to see all the process on youe machine then check this System.Diagnostics.Process[] Processes; Processes = Process.GetProcesses(); foreach (Process proc in Processes) { if (proc.HasExited) { } }

          Thanks and Regards Sandeep

          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