안녕하세요.. ^^ 원격 이미지 캡쳐 관련하여.. 질문이...
 우선 간단하게 webBrowser1를 통해 특정 화면을 캡쳐를 하려고 하는데..
 캡쳐는
      public static Image captureWindow(IntPtr handle, int x, int y, int width, int height)
        {
            IntPtr hdcSrc = User32.GetWindowDC(handle);
            RECT windowRect = new RECT();
            User32.GetWindowRect(handle, ref windowRect);
            IntPtr hdcDest = Gdi32.CreateCompatibleDC(hdcSrc);
            IntPtr hBitmap = Gdi32.CreateCompatibleBitmap(hdcSrc, windowRect.right - windowRect.left, windowRect.bottom - windowRect.top);
            IntPtr hOld = Gdi32.SelectObject(hdcDest, hBitmap);
            Gdi32.BitBlt(hdcDest, 0, 0, width, height, hdcSrc, x, y, 13369376);
            Gdi32.SelectObject(hdcDest, hOld);
            Gdi32.DeleteDC(hdcDest);
            User32.ReleaseDC(handle, hdcSrc);
            Image img = Image.FromHbitmap(hBitmap);
            Gdi32.DeleteObject(hBitmap);
            return img;
        }
  으로 간단하게 캡쳐가 되는것을 확인햇습니다. 문제는..
  캡쳐가 되는거도 서버에 원격으로 붙어서 넣고 원격 데스크탑으로 연결 한 상태에서는 잘 동작이 됩니다. 그런데..
  원격이 끊어지니 검정 화면만 나오더군요.
  그래서 내부 PC를 연결 하고 나서 모니터를 떄고 나니 잘 되는데.. 왠지 권한 쪽인거 같아서...
  연속 이미지를 캡쳐를 해서 페이지에서 돌리려고 하는데..
   원격 데스크탑 연결 때는 잘 돌고 잇다가 끊어지면 저 캡쳐 프로그램이 검정 화면만 나옵니다.;;;
  며칠째 노가다 중인데.. 어떻게 해야 할까요?? 혹시.. 이런 증상을 하신다면 충고좀 얻을수 있을까요?
    
        
        
                    
                    
                    
                    
                    
    
                    
                    
                    
                    
                    
                
                    [최초 등록일: ]
                    [최종 수정일: 8/15/2015]