Is a service program running ? How to find ?
-
Dear All, I need to find out that my service program ("rr.exe" service exe) is running or not by coding ?. How ?. I used shellExecute() fn to start my service. I dont know is that running. I want to checkout by coding. How ? Thanks.
See
EnumServicesStatus
WhiteSky
-
Dear All, I need to find out that my service program ("rr.exe" service exe) is running or not by coding ?. How ?. I used shellExecute() fn to start my service. I dont know is that running. I want to checkout by coding. How ? Thanks.
Sakthiu wrote:
I used shellExecute() fn to start my service.
You should be able to use the
SERVICE_CONTROL_INTERROGATE
control code.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
See
EnumServicesStatus
WhiteSky
-
EnumServiceStatus would be best thing. you can also use CreateToolhelp32Snapshot as an alternative
Me or Sakthiu ;)
WhiteSky