I have C# windows service application myapp.exe that I have installed as windows service. The process list of Task Manager shows svchost.exe as process for all windows services that are running. I want to find which out of all of these svchost.exe is running my executable.
Asked
Active
Viewed 789 times
0
-
1Possible duplicate of [Get the PID of a Windows service](http://stackoverflow.com/questions/23084720/get-the-pid-of-a-windows-service) – Mehrzad Chehraz Apr 29 '15 at 07:52
-
Its probably wrong question as it shows myapp.exe as process in task manager. sorry! I will be deleting the question in sometime. – CleanBold Apr 29 '15 at 08:51
-
1The svchost.exe is only used by Microsoft's services. – Harry Johnston Apr 29 '15 at 09:30
1 Answers
2
You can assign a different name to your process using Project installer Class Click here to see how you could do that.
Once this is done you could get the Process ID for your application using this
Community
- 1
- 1
Denzil Soans
- 667
- 1
- 7
- 27