摘要: 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 阅读全文
posted @ 2010-12-31 11:49 迷茫中的游魂 阅读(4517) 评论(0) 推荐(0) 编辑