资源简介
(1)实时监视远程电脑的桌面操作变化(2):快速准确的查看被监视电脑的实时桌面信息,具有远程桌面录像功能,可查看任意时间段的历史桌面信息。(3):具有远程桌面控制功能,可以象操作本地计算机一样操作远程计算机。(4):可以同时操控和查看10以上个电脑。(5):采用TCP/IP协议,高压缩率差异传图,保证图象快速稳定传输。
代码片段和文件信息
#include
#include
#include
#include “client.h“
#include “command.h“
#include “gdi.h“
#include “HuffCompress.h“
#include “RLE.h“
#include “time.h“
#define DEFAULT_PORT 5150
#define REFRESH_MSG “REFRESH“
#define SETFLAGS XP1_GUARANTEED_DELIVERY|XP1_GUARANTEED_ORDER
#define NOTSETFLAGS XP1_CONNECTIONLESS
#define LPBMIH LPBITMAPINFOHEADER
UINT port=DEFAULT_PORT;
BOOL bSendOnly = FALSE;
BOOL fSending = FALSE;
BOOL fReceiving = FALSE;
DWORD iLen;
char *pDIBitmap;
int iScreenWidthiScreenHeight;
int iWidthiHeightiWidthXiHeightY;
int iWidth1iWidth2iHeight1iHeight2;
int iCompressionLevel;
BOOL fDIBitmap = FALSE;
LPBMIH lpBitmapIH;
struct sockaddr_in server;
SOCKET sClient;
BOOL fRefreshing = FALSE;
BOOL fConnected = FALSE;
int nGridX = 8nGridY = 4;
BOOL fGridX = FALSEfGridY = FALSE;
WORD bmBitsPixel = 4;
struct GdiList GdiStart;
struct GdiList *pGdiNode;
int SelectProtocols(DWORD dwSetFlagsDWORD dwNotSetFlagsLPWSAPROTOCOL_INFO lpProtocolBufferLPDWORD lpdwBufferLengthWSAPROTOCOL_INFO *Protocol);
void InitGrids()
{
int iLoopjLoopnGrid;
struct GdiDS Gdi;
Gdi.fDIBitmap = FALSE;
GdiStart.pNext = NULL;
pGdiNode = &GdiStart;
if ((nGridX > 0) && (nGridY > 0))
{
for (iLoop = 0;iLoop < nGridX;iLoop++)
{
for (jLoop = 0;jLoop < nGridY;jLoop++)
{
Gdi.iGridX = iLoop;
Gdi.iGridY = jLoop;
pGdiNode = Add_Gdi(pGdiNodeGdi);
}
}
}
else
{
nGrid = max(nGridXnGridY);
for (iLoop = 0;iLoop < nGrid;iLoop++)
{
if (nGridX > 0)
Gdi.iGridX = iLoop;
else
Gdi.iGridX = 0;
if (nGridY > 0)
Gdi.iGridY = iLoop;
else
Gdi.iGridY = 0;
pGdiNode = Add_Gdi(pGdiNodeGdi);
}
}
if (nGridX > 0)
iWidthX = iWidth/nGridX;
else
iWidthX = iWidth;
if (nGridY > 0)
iHeightY = iHeight/nGridY;
else
iHeightY = iHeight;
}
int LoadWinsock(HWND hWndchar *szIP)
{
WSADATA wsd;
DWORD dwLen;
int nRetnZero;
LPBYTE pBuf;
WSAPROTOCOL_INFO Protocol;
char szString[81];
char szMessage[81];
if (WSAStartup(0x202&wsd) != 0)
{
MessageBox(NULL“hehe““Client Socket Error“MB_OK);
return 1;
}
dwLen = 0;
nRet = WSAEnumProtocols(NULLNULL&dwLen);
if (nRet == SOCKET_ERROR)
{
if (WSAGetLastError() != WSAENOBUFS)
return 1;
}
pBuf = malloc(dwLen);
nRet = SelectProtocols(SETFLAGSNOTSETFLAGS(LPWSAPROTOCOL_INFO)pBuf&dwLen&Protocol);
free(pBuf);
sClient = WSASocket(AF_INETSOCK_STREAMIPPROTO_IPNULL0SOCK_STREAM);
if (sClient == INVALID_SOCKET)
return 1;
nZero = 0;
setsockopt(sClientSOL_SOCKETSO_RCVBUF(char *)&nZerosizeof(nZero));
server.sin_family = AF_INET;
server.sin_port = htons(port);
server.sin_addr.s_addr = inet_addr(szIP);
if (connect(sClient(struct sockaddr *)&serversizeof(server)) == SOCKET_ERROR)
{
memset(szString‘\0‘sizeof(szString
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 52 2000-03-09 16:14 Client\RemoteControlClient\afiedt.buf
文件 32525 1998-06-15 00:00 Client\RemoteControlClient\AFXRES.H
文件 15027 2008-06-05 21:35 Client\RemoteControlClient\client.c
文件 688 2003-07-10 14:11 Client\RemoteControlClient\client.h
文件 5497 2000-05-01 08:46 Client\RemoteControlClient\ClientWindow.001
文件 5803 2003-07-09 17:45 Client\RemoteControlClient\ClientWindow.dsp
文件 547 2000-05-01 13:04 Client\RemoteControlClient\ClientWindow.dsw
文件 7290 2000-01-18 09:19 Client\RemoteControlClient\ClientWindow.mak
文件 304128 2008-06-05 22:07 Client\RemoteControlClient\ClientWindow.ncb
文件 53760 2008-06-05 22:07 Client\RemoteControlClient\ClientWindow.opt
文件 258 2008-06-05 21:35 Client\RemoteControlClient\ClientWindow.plg
文件 707 2008-06-05 21:35 Client\RemoteControlClient\ColorMode.cpp
文件 353 2008-06-05 21:35 Client\RemoteControlClient\ColorMode.h
文件 600 2003-07-10 15:47 Client\RemoteControlClient\Command.c
文件 350 2003-07-10 15:45 Client\RemoteControlClient\Command.h
文件 1329 2008-06-05 21:35 Client\RemoteControlClient\Compression.cpp
文件 367 2008-06-05 21:35 Client\RemoteControlClient\Compression.h
文件 1007 2003-07-10 15:47 Client\RemoteControlClient\Gdi.c
文件 482 2008-06-05 22:07 Client\RemoteControlClient\Gdi.h
文件 1596 2003-07-10 15:50 Client\RemoteControlClient\GridSpacing.cpp
文件 514 2008-06-05 21:35 Client\RemoteControlClient\GridSpacing.h
文件 23839 2003-07-10 15:52 Client\RemoteControlClient\HuffCompress.c
文件 958 2003-07-10 15:50 Client\RemoteControlClient\HuffCompress.h
文件 468 2000-01-21 12:57 Client\RemoteControlClient\IDB_NORECEIVE.BMP
文件 468 2000-01-21 12:57 Client\RemoteControlClient\IDB_NOSEND.BMP
文件 468 2000-01-21 12:57 Client\RemoteControlClient\IDB_RECEIVE.BMP
文件 468 2000-01-21 12:57 Client\RemoteControlClient\IDB_SEND.BMP
文件 15534 2008-06-05 21:20 Client\RemoteControlClient\MainWnd.cpp
文件 1895 2008-06-05 22:07 Client\RemoteControlClient\MainWnd.h
文件 1078 2003-07-09 17:27 Client\RemoteControlClient\Myfr
............此处省略283个文件信息
- 上一篇:中国矢量地图AI版
- 下一篇:win7和win10镜像制作心得
相关资源
- KT803C蓝牙wifi电信2G4G远程串口更新MP
- MVC4 根据IP查询天气
- MiniVCap-v5.6.7真正最新完美破解版
- 实现鼠标点击图形填充
- Spring+Springmvc+Hibernate+Bootstrap开发企业
- MVC+EF框架+EasyUI实现权限管理(内含源
- DirectX9.0+3D游戏开发编程基础PDF+源码
-
AutoCAD ob
jectARXVC开发基础与教程201 - Spring mvc + Spring + Spring jdbc 整合 demo
- spring mvc + spring + hibernate 全注解整合开
- H3CNE.GB0-191最新题库以及VCE考试模拟器
- 基于VC2013播放器配置程序(实现多语
- 基于嵌入式系统的远程家电控制系统
- vcxsrv-64.1.20.5.1.installer.exe
- Spring+SpringMVC+Mybatis框架+easyUI整合(
- 不需悬浮窗权限桌面弹出View
- SecureCRT8.1.4与SecureFX中文破解版
- Microsoft Remote Desktop for Mac 10.2.13
- VC锁屏屏蔽热键
- 基于ZigBee的远程抄表系统
- H12-221 HCIP-R&S题库+VCE模考软件.zip
- xftp_免费版
- 医院管理住院系统的研究与实现(源
- vce工具
- Maven+SpringMVC+Mybatis的增删改查Demo
- 06 canOpen PDO远程同步.zip
- VC自动点胶机
- springMVC+hibernate+spring+shiro整合
- VMware Horizon 7.6 官方中文版 产品手册
- Dundas系列控件仪表控件For.Net2008桌面版
评论
共有 条评论