This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
namespace SystemEx | |
{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ServiceInstaller | |
{ | |
private const int STANDARD_RIGHTS_REQUIRED = 0xF0000; | |
private const int SERVICE_WIN32_OWN_PROCESS = 0x00000010; | |
[StructLayout(LayoutKind.Sequential)] | |
private class SERVICE_STATUS | |
{ | |
public int dwServiceType = 0; | |
public ServiceState dwCurrentState = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Management; | |
using System.Net; | |
using System.Runtime.InteropServices; | |
using System.Text.RegularExpressions; |
NewerOlder