随笔分类 -  C#网络编程

摘要:public class WindowsMessage { public const int WM_NULL = 0x0000; // public const int WM_CREATE = 0x0001; //应用程序创建一个窗口 public const int WM_DESTROY = 0x0002; //一个窗口被销毁 ... 阅读全文
posted @ 2016-04-16 16:55 童心少年 阅读(6227) 评论(1) 推荐(0) 编辑
摘要:Process.ProcessorAffinity 属性: public IntPtr ProcessorAffinity { get; set; }属性值:位掩码,表示关联进程内的线程可以在其上运行的处理器。默认值取决于计算机上的处理器数。默认值为 2 n -1,其中 n 是处理器数。 在 Win 阅读全文
posted @ 2015-02-26 17:25 童心少年 阅读(240) 评论(0) 推荐(0) 编辑
摘要:思路清晰后仅仅只需百来行代码便可轻松编写出一套完整的资源动态下载组件- SerialDownloader和ParallelDownloader,它们共用一个完成资源表,且串行下载集成了优先机制(DownloadPriority),并行下载也根据需要封装了并行队列模式(QueueParallelDow... 阅读全文
posted @ 2015-01-30 10:16 童心少年 阅读(223) 评论(0) 推荐(0) 编辑