📄 sendms.cpp
字号:
// SENDMS.cpp: implementation of the CSENDMS class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ModemSMS.h"
#include "SENDMS.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CSENDMS::CSENDMS()
{
}
CSENDMS::~CSENDMS()
{
}
BOOL CSENDMS::GetRecvMessage(SM_PARAM *pparam)
{
BOOL fSuccess = FALSE;
int MAX_SM_RECV;
EnterCriticalSection(&m_csRecv);
if (m_nRecvOut != m_nRecvIn)
{
memcpy(pparam, &m_SmRecv[m_nRecvOut], sizeof(SM_PARAM));
m_nRecvOut++;
if (m_nRecvOut >= MAX_SM_RECV) m_nRecvOut = 0;
fSuccess = TRUE;
}
LeaveCriticalSection(&m_csRecv);
return fSuccess;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -