/// <summary> /// Converts a Windows Service to a Windows Kernel Driver Service.. /// </summary> /// <param name="Service">The service.</param> public static WindowsServiceKernel FromService(WindowsService Service) { return(new WindowsServiceKernel(Service)); }
/// <summary> /// Initializes a new instance of the <see cref="WindowsService"/> class using a service name. /// </summary> /// <param name="ServiceName">The name of the service.</param> public static WindowsService FromServiceName(string ServiceName) { return(WindowsService.FromRegistryPath(Path.Combine(RegistryPathForServices, ServiceName))); }
/// <summary> /// Initializes a new instance of the <see cref="WindowsServiceKernel"/> class. /// </summary> /// <param name="InWindowsService">The windows service this kernel service is based on.</param> public WindowsServiceKernel(WindowsService InWindowsService) { this.WindowsService = InWindowsService; }