示例#1
0
 private void FrmEnhanceTest_Load(object sender, EventArgs e)
 {
     //开启控制台输出
     LoadDll.AllocConsole();
     mhxy.MHKernel mk = new mhxy.MHKernel();
     mk.Init();
 }
示例#2
0
文件: FrmMain.cs 项目: sczhaoyu/mh
        private void FrmMain_Load(object sender, EventArgs e)
        {
            loopMsg = new Thread(loopReadMsg);
            Control.CheckForIllegalCrossThreadCalls = true;
            //开启控制台输出
            LoadDll.AllocConsole();


            loadType();
            lv_pkg.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
            //获得当前窗口句柄
            IntPtr hwnd = this.Handle;

            lab_current_win.Text += hwnd.ToString();


            loopMsg.Start();
        }