StartService (advapi32)
Last changed: -203.26.206.130

.
Summary
The StartService function starts a service.

C# Signature:

[DllImport("advapi32", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool StartService(
                IntPtr        hService,
            int        dwNumServiceArgs,
            string[]        lpServiceArgVectors
            );

VB Signature:

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

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

//
// Now, start the service on the remote machine
//

Win32.StartService( hService, 0, null ) ;

Alternative Managed API:

Do you know one? Please contribute it!

Documentation

http://msdn.microsoft.com/library/en-us/dllproc/base/startservice.asp?frame=true