private void GetActiveWindowsScreenshot(IntPtr hwnd, bool show)
        {
            WINDOWINFO info = new WINDOWINFO();
            if (Tools.GetWindowInfo(hwnd, out info))
            {
                if (info.rcClient.Size.Width < 1)
                    return;

                 ApplicationManager.Current.TakeScreenShot(
                                                            info.rcClient.Size.Width,
                                                            info.rcClient.Size.Height,
                                                            info.rcClient.Left,
                                                            info.rcClient.Top,
                                                            PixelFormat.Format32bppArgb);
            }
        }
 public static extern bool GetWindowInfo(IntPtr hWnd, out WINDOWINFO pwi);