public Win32_Handle_Hijack updateParentValue()
        {
            var target       = TargetHandle.get_Text().toInt().intPtr();
            var targetParent = target.parent().str();

            ParentHandle.set_Text(targetParent);
            return(this);
        }
 public Win32_Handle_Hijack screenShot()
 {
     restore();
     try
     {
         var handle = TargetHandle.get_Text().toInt().intPtr();
         var bitmap = handle.window_ScreenShot();
         HijackedWindow.clear().add_PictureBox().layout_Zoom().show(bitmap);
     }
     catch (Exception ex)
     {
         ex.log();
     }
     return(this);
 }
        public Win32_Handle_Hijack hijack()
        {
            restore();
            var handle    = TargetHandle.get_Text().toInt().intPtr();
            var newParent = HijackedWindow.clear().handle();

            "Hijacking {0} into window {1}".info(handle, newParent);
            HijackedHandle = handle;

            WinAPI.GetWindowRect(handle, ref HijackedHandleRECT);
            HijackedParent = ParentHandle.get_Text().toInt().intPtr();
            handle.setParent(newParent);

            adjustHandleSizeToTargetWindow();
            return(this);
        }