12 2019 档案
摘要:HwndSource hwndSource = PresentationSource.FromVisual(this) as HwndSource;//窗口过程 if (hwndSource != null) { hwndSource.AddHook(new HwndSourceHook(Devei
阅读全文
摘要:/// /// GB2312转换成UTF8 /// /// /// public static string gb2312_utf8(string text) { //声明字符集 System.Text.Encoding utf8, gb2312; //gb2312 gb2312 = System.
阅读全文
摘要:ushort Tbed = 2255; byte gao = (byte)(Tbed 8); byte di = (byte)(Tbed & 0xff); ushort a = (ushort)(gao << 8); ushort b = (ushort)di; //ushort newBed =
阅读全文
摘要:[DllImport("psapi.dll")] private static extern int EmptyWorkingSet(int hProcess); public void HandleSetGC() { GC.Collect(); GC.WaitForPendingFinalizer
阅读全文