コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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)));
 }
コード例 #3
0
 /// <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;
 }