Retrieves the device driver services on the local computer.
| C# | Visual Basic |
public static ServiceController[] GetDevices()
Public Shared Function GetDevices As ServiceController()
An array of type ServiceController in which each element is associated with a device driver service on the local computer.
GetDevices returns only the device driver services from the local computer.
To retrieve the non-device driver services or services that are not drivers, call the GetServices()()()() method.
Together, the two methods provide access to all the services on a computer.