12 2019 档案

摘要:HwndSource hwndSource = PresentationSource.FromVisual(this) as HwndSource;//窗口过程 if (hwndSource != null) { hwndSource.AddHook(new HwndSourceHook(Devei 阅读全文
posted @ 2019-12-31 14:19 搬砖的L先生 阅读(1156) 评论(0) 推荐(0) 编辑
摘要:/// /// GB2312转换成UTF8 /// /// /// public static string gb2312_utf8(string text) { //声明字符集 System.Text.Encoding utf8, gb2312; //gb2312 gb2312 = System. 阅读全文
posted @ 2019-12-20 16:32 搬砖的L先生 阅读(2085) 评论(0) 推荐(0) 编辑
摘要:ushort Tbed = 2255; byte gao = (byte)(Tbed 8); byte di = (byte)(Tbed & 0xff); ushort a = (ushort)(gao << 8); ushort b = (ushort)di; //ushort newBed = 阅读全文
posted @ 2019-12-19 15:56 搬砖的L先生 阅读(1490) 评论(0) 推荐(0) 编辑
摘要:[DllImport("psapi.dll")] private static extern int EmptyWorkingSet(int hProcess); public void HandleSetGC() { GC.Collect(); GC.WaitForPendingFinalizer 阅读全文
posted @ 2019-12-19 10:02 搬砖的L先生 阅读(712) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示