Click to Rate and Give Feedback

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
ServiceController..::.GetServices Method

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

  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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Thread safety      Barguast ... Thomas Lee   |   Edit   |   Show History

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.

Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker