Retrieves all the services on the local computer, except for the device driver services.
| C# | Visual Basic |
public static ServiceController[] GetServices()
Public Shared Function GetServices As ServiceController()
An array of type ServiceController in which each element is associated with a service on the device.