Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello,
I am working on a project in which I have to display all the services of the system in my project. I got success in displaying the ServiceName,DispalyName and Status of the services using below code
C#
ListViewItem datalist;
               
                services = ServiceController.GetServices();
            
                foreach (ServiceController service in services)
                {
                    datalist = new System.Windows.Forms.ListViewItem(service..ToString());
                    datalist.SubItems.Add(service.DisplayName);
                    datalist.SubItems.Add(service.Status.ToString());
                    
                    ServiceList.Items.Add(datalist);
                    
                }      


Now the problem is I also want to display Manufacturer of the service and I don't how to get that. Can anyone help me in this matter. Please provide code, if possible.

Thank you :)
Posted
Comments
Sergey Alexandrovich Kryukov 3-Mar-14 10:32am    
It depends on where you store the Manufacturer...
—SA
AdityaBohra 4-Mar-14 1:57am    
I didn't get you, can you please elaborate.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900