Пример #1
0
 public static extern ManagedClasses.ServiceControlHandle CreateService(
     ManagedClasses.ServiceControlHandle serviceControlManagerHandle,
     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);
Пример #2
0
 public static extern int DeleteService(ManagedClasses.ServiceControlHandle serviceHandle);
Пример #3
0
 public static extern ManagedClasses.ServiceControlHandle OpenService(ManagedClasses.ServiceControlHandle serviceControlManagerHandle, string lpSvcName, SERVICE_ACCESS dwDesiredAccess);
Пример #4
0
 public static extern int StartService(ManagedClasses.ServiceControlHandle serviceHandle, int dwNumServiceArgs, string lpServiceArgVectors);