摘要: static void Main(string[] args) { var concurrentDictionary = new ConcurrentDictionary(); var dictionary = new Dictionary(); var sw = new Stopwatch(); sw.Start(); for (int i = 0;... 阅读全文
posted @ 2017-10-13 16:03 hi..... 阅读(335) 评论(0) 推荐(0) 编辑
摘要: using GDIPrinterDriver; using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; 阅读全文
posted @ 2017-10-13 15:34 hi..... 阅读(138) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Drawing; using System.Drawing.Printing; using System.Printing; using System.Runtime.InteropServices; namespace ConsoleAppli 阅读全文
posted @ 2017-10-13 15:30 hi..... 阅读(195) 评论(0) 推荐(0) 编辑
摘要: class Interop { public static void CreateProcess(string app, string path) { bool result; IntPtr hToken = WindowsIdentity.GetCurrent().Token; IntPtr hD 阅读全文
posted @ 2017-10-13 15:11 hi..... 阅读(220) 评论(0) 推荐(0) 编辑
摘要: protected override void OnSessionChange(SessionChangeDescription changeDescription) { System.IO.File.AppendAllLines(@"D:\INX.TXT", new List { DateTime.Now.ToString() + " ------... 阅读全文
posted @ 2017-10-13 11:37 hi..... 阅读(381) 评论(0) 推荐(0) 编辑
摘要: if (args.Length == 0) { ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new MyService1() }; ServiceBase.Run(ServicesToRun); ... 阅读全文
posted @ 2017-10-13 10:32 hi..... 阅读(242) 评论(0) 推荐(0) 编辑