Example #1
0
 private void FrmEnhanceTest_Load(object sender, EventArgs e)
 {
     //开启控制台输出
     LoadDll.AllocConsole();
     mhxy.MHKernel mk = new mhxy.MHKernel();
     mk.Init();
 }
Example #2
0
        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();
        }