Ejemplo n.º 1
0
 public static extern ServiceControlHandle CreateService(ServiceControlHandle serviceControlManagerHandler,
                                                         string lpSvcName,
                                                         string lpDisplayName,
                                                         SERVICE_ACCESS dwDesiredAccess,
                                                         SERVICE_TYPES dwServiceType,
                                                         SERVICE_START_TYPES dwStartType,
                                                         SERVICE_ERROR_CONTROL dwErrorControl,
                                                         string lpPathName,
                                                         string lpLoadOrderGroup,
                                                         IntPtr lpdwTagId,
                                                         string lpDependencies,
                                                         string lpServiceStartName,
                                                         string lpPassword);
Ejemplo n.º 2
0
 public static extern int DeleteService(ServiceControlHandle serviceHandle);
Ejemplo n.º 3
0
 public static extern ServiceControlHandle OpenService(ServiceControlHandle serviceControlManagerHandle, string lpSvcName, SERVICE_ACCESS dwDesiredAccess);
Ejemplo n.º 4
0
 public static extern int StartService(ServiceControlHandle serviceHandle, int dwNumServiceArgs, string lpServiceArgVectors);