Пример #1
0
        private void btn_FilterHWND_Click(object sender, EventArgs e)
        {
            AccessWin aw = new AccessWin();

            AccessWin.WindowsTree wt = new AccessWin.WindowsTree();
            IntPtr pt = aw.GetWindowHandlebyTitle(txt_APPTitle.Text);

            txt_handle.Text = pt.ToString("X");  //display the handle in textbox
            //IntPtr vHandle = new IntPtr(Convert.ToInt32(txt_ListHandle.Text, 16));
            wt = aw.ListWindow(pt);
            try
            {
                dgv_list.DataSource = wt.FiltedbyHWND(Convert.ToInt32(txt_FilterHWND.Text, 16)).toDatatable();
            }
            catch
            { }
        }