Exemplo n.º 1
0
        public static bool updateScreenshotFromGame(IntPtr hWnd, int x, int y)
        {
            bool success = false;

            if (hWnd != IntPtr.Zero)
            {
                gameHWND = hWnd;

                success = User32.CaptureWindowBitmap(hWnd, x, y);
                //CaptureWindowToFile( hWnd_Flash, @"c:\temp\a.jpg", ImageFormat.Bmp );

                Int32 errr = Marshal.GetLastWin32Error();

                return(success);
            }

            return(success);
        }