OpenService (advapi32)
Last changed: maxbgn-178.74.224.122

.
Summary
The OpenService function opens an existing service.

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
static extern IntPtr OpenService( IntPtr hSCManager, string lpServiceName, SERVICE_ACCESS eDesiredAccess );

VB Signature:

Declare Function OpenService Lib "advapi32.dll" (TODO) As TODO

User-Defined Types:

None.

Notes:

See

Tips & Tricks:

Please add some!

Sample Code:

Please add some! ha

Alternative Managed API:

Unless you are going use EnumDependentServices API please use 'System..ServiceProcess..ServiceController' that is provided in the framework.

Documentation
OpenService on MSDN