public IScreenshotContent GetCurrentWindowScreenshot() { EnsureNotCanceled(); this.currentScreenshot = this.environmentInterface.CreateWindowScreenshot( this.windowHandle, this.currentScreenshot); return(this.currentScreenshot); }
public IScreenshotContent GetCurrentWindowScreenshot() { EnsureNotCanceled(); IntPtr hWnd = environmentInterface.FindMainWindowHandleOfProcess(process); currentScreenshot = environmentInterface.CreateWindowScreenshot(hWnd, currentScreenshot); return currentScreenshot; }