title: How to take a screenshot of Protected Active Window in Delphi?
body: <p>For Capture the Screen Shot of the Active Window, I use a source code <a href="http://delphi.about.com/od/adptips2006/qt/captureactive.htm" rel="nofollow">Capture the Screen Shot of the Active Window</a> with this code in Delphi:</p>
  
  <pre><code> procedure ScreenShot(activeWindow: bool; destBitmap : TBitmap) ;
   var
      w,h : integer;
      DC : HDC;
      hWin : Cardinal;
      r : TRect;
   begin
      if activeWindow then
      begin
        hWin := GetForegroundWindow;
        dc := GetWindowDC(hWin) ;
        GetWindowRect(hWin,r) ;
        w := r.Right - r.Left;
        h := r.Bottom - r.Top;
      end
      else
      begin
        hWin := GetDesktopWindow;
        dc := GetDC(hWin) ;
        w := GetDeviceCaps (DC, HORZRES) ;
        h := GetDeviceCaps (DC, VERTRES) ;
      end;
  
      try
       destBitmap.Width := w;
       destBitmap.Height := h;
       BitBlt(destBitmap.Canvas.Handle,
              0,
              0,
              destBitmap.Width,
              destBitmap.Height,
              DC,
              0,
              0,
              SRCCOPY) ;
      finally
       ReleaseDC(hWin, DC) ;
      end;
   end; 
  
  Usage:
  
   var
      b:TBitmap;
   begin
     b := TBitmap.Create;
     try
       ScreenShot(TRUE, b) ;
       Image1.Picture.Bitmap.Assign(b) ;
     finally
       b.FreeImage;
       FreeAndNil(b) ;
     end;
  </code></pre>
  
  <p>How can I convert that to take a screenshot of a Protected active software like <a href="http://www.oxynger.com/download.html" rel="nofollow">Oxynger KeyShield</a>?</p>