我需要抓取带有鼠标的远程桌面,在远程服务端定时抓取后经过一定的压缩算法通过网络在客户端显示出来。现在头疼的是没这方面的编程经验,网上很多提供的作品它都不带鼠标的,而且说是远程桌面监控,但我下载后看了下没有控制之说,只有监视。只好跑到csdn上,向这方面有经验的达人请教。

解决方案 »

  1.   

    我要的就是要观看服务端的屏幕操作呀
    以下这段代码我运行时怎么鼠标形状老是不变啊,就一个指针类型的??期望高手出现
    //获取当前光标及其位置 
    HCURSOR   hCursor=GetCursor();
    POINT   ptCursor; 
    GetCursorPos(&ptCursor);
    //获取光标的图标数据 
    ICONINFO   IconInfo; 
    if   (GetIconInfo(hCursor,   &IconInfo)) 

    ptCursor.x   -=   ((int)   IconInfo.xHotspot); 
    ptCursor.y   -=   ((int)   IconInfo.yHotspot); 
    if   (IconInfo.hbmMask   !=   NULL) 
    DeleteObject(IconInfo.hbmMask); 
    if   (IconInfo.hbmColor   !=   NULL) 
    DeleteObject(IconInfo.hbmColor); 

    //在兼容设备描述表上画出该光标
    DrawIconEx( 
    hmemdc, //   handle   to   device   context   
    ptCursor.x,   ptCursor.y, 
    hCursor, //   handle   to   icon   to   draw   
    0,0, //   width   of   the   icon   
    0, //   index   of   frame   in   animated   cursor   
    NULL, 
    DI_NORMAL   |   DI_COMPAT 
    //         icon-drawing   flags   
    );
      

  2.   


    给我也参考参考,可以吗?[email protected],谢谢了