资源简介

(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\Myframe.ico

............此处省略283个文件信息

评论

共有 条评论