.NET Framework Class Library
ServiceController..::.GetServices Method

Retrieves the non-device driver services on a computer, and those that are not drivers.

Overload List

  NameDescription
Public methodStatic memberGetServices()()()Retrieves all the services on the local computer, except for the device driver services.
Public methodStatic memberGetServices(String)Retrieves all the services on the specified computer, except for the device driver services.
Top
See Also

Reference

Tags :


Community Content

Thomas Lee
Thread safety

I'm fairly sure the GetServices static method is NOT thread safe - running this method in separate threads simultaneously can cause an incomplete list of services to be returned, or an AccessViolationException to be thrown.

Tags : contentbug?

Page view tracker