摘要:
ServiceController service = new ServiceController("EnergyRecordService");protected void btnRestart_Click(object sender, EventArgs e) { try ... 阅读全文
摘要:
C# 判断文件是否被占用的三种方法using System.IO;using System.Runtime.InteropServices;[DllImport("kernel32.dll")]public static extern IntPtr _lopen(string lpPathName,... 阅读全文