SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Windows XP

How to identify non-microsoft services

(4 posts)
  • Started 6 years ago by Jamie101
  • Latest reply from michael
  • Topic Viewed 1171 times

Jamie101
Posts: 2

Hope this thread is in the right forum category.

Using C#, I have used the ServiceController class to list all services. However, I want to exclude the Microsoft services from the list.
The ServiceType().ToString() method only shows two types: Win32ShareProcess and Win32OwnProcess.

Any ideas how toidentify microsoft services, so I can exclude the from the list?

This may be a complicated process and I am not necessarily looking for a complete answer, just some guidance on where to look.

Any suggestions?

Jamie

Posted 6 years ago
Top
 
michael
michael
Posts: 568

Go to Start -> Run, and type in MsConfig. On the Services tab, you can click "Hide Non-Microsoft Services"

--
Mike

Posted 6 years ago
Top
 
Jamie101
Posts: 2

Thanks for the reply Miichael.

However, I wanted to know how to achieve this from within in the C# code. I was hopping to get access to a "Company" or "Author" attribute for a given service/executable.

I have been scouring C# help and C# forums, but have still yet to find a solution. I presume this info must be avaiable, the problem lies in identifying the appropriate Win 32 API or c# class/attribute.

Any ideas?

Jamie

Posted 6 years ago
Top
 
michael
michael
Posts: 568

Oh right. I have no idea. Will Google.

--
Mike

Posted 6 years ago
Top
 



Topic Closed

This topic has been closed to new replies.