Files

21 lines
435 B
C#
Raw Permalink Normal View History

2026-08-06 09:23:30 +08:00
using System.ServiceProcess;
namespace WindowsService1
{
internal static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new Service1()
};
ServiceBase.Run(ServicesToRun);
}
}
}