摘要:
1、在.net中,windows服务的实现类必需继承于System.ServiceProcess.ServiceBasepublic partial class myService : ServiceBase{}2、在windows服务的实现类的构造函数中进行必要的初始化工作,如设置系统标识服务的简短名称等。public partial class myService : ServiceBase{ public SqlBackupService() { ServiceName = "Myservice"; AutoLog = false; CanStop = true; }}3、重写OnSta 阅读全文