title: Terminal session when minimized\disconnected returns a blank screen upon capturing desktop snapshot
body: <p>I am using the below JAVA code to capture the desktop of a remote machine</p>
  
  <pre><code>    Robot robot = new Robot();
      BufferedImage screenShot = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
  
      ByteArrayOutputStream imageBytes = new ByteArrayOutputStream();
      ImageIO.write(screenShot, "PNG", imageBytes);
  
      return imageBytes.toByteArray();
  </code></pre>
  
  <p>However the captured image is blank, when the terminal session to the remote machine is either minimized or disconnected. I appreciate your help in resolving the issue, at the very least the minimized scenario. </p>
  
  <p><strong>Configuration:</strong>
  I have the same issues with a physical machine running windows 7 and a virtual machine running windows server 2008 R2.</p>
  
  <p>More insights from MSDN:</p>
  
  <p><strong>Why you get black screen when you disconnect from RDP ?</strong>
   
  <a href="http://msdn.microsoft.com/en-us/library/aa383015%28VS.85%29.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/aa383015%28VS.85%29.aspx</a></p>
  
  <p><em>Here is my attempt to make things work, but none of the following did the trick:</em>
   </p>
  
  <p><strong>How to get data when RDP window minimized ?</strong>
   
  You can force the RDP display driver to send data when minized, try these steps and let me know how it goes:
   
  1) Add the following key
  HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client\ Created a new DWORD value and named it RemoteDesktop_SuppressWhenMinimized. Specified 2 as the value data.</p>
  
  <p>Note: Also tried adding the registry key to HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Terminal Server Client\ 
   
  2) Disable bitmap caching (<a href="http://technet.microsoft.com/en-us/library/cc737325(WS.10).aspx" rel="noreferrer">http://technet.microsoft.com/en-us/library/cc737325(WS.10).aspx</a>)
  In the Remote Desktop Connection window, click Options.</p>
  
  <p>On the Experience tab, verify that the Bitmap caching check box is selected. Or, to disable bitmap caching, clear theBitmap caching check box</p>