how to get the status of services in windows Service
-
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
-
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
HI Can you provide some sort of example such wich process you want to check ?
Thanks and Regards Sandeep
-
HI Can you provide some sort of example such wich process you want to check ?
Thanks and Regards Sandeep
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
-
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
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