我现在只能存在硬盘上再传出去,有没有更好的办法?

解决方案 »

  1.   

    使用GetBitmapBits直接获取到位图数据就可以用socket发送出去了:
    HBITMAP hbmp = CreateCompatibleBitmap(hdcScreen,
               prc->right - prc->left,  // 位图宽
               prc->bottom - prc->top); // 位图高
    DOWORD dwBitmapSize = (prc->right - prc->left * prc->bottom - prc->top) * 24 /8 ;
    BYTE * pBitmap = new BYTE[dwBitmapSize ]; 
    if (pBitmap )
    {
       LONG lResult =GetBitmapBits(
               hbmp,      // handle to bitmap
               dwBitmapSize ,     // number of bytes to copy
               pBitmap);     // buffer to receive bits
       if (lResult >0 )
       {
          // Send the bitmap data store in pBitmap with socket, it is length is dwBitmapSize 
       }
    }
      

  2.   

    microspy(microspy)的方法可行,我没有什么说得了!