testsys.h

来自「百色电信中继电话录音系统,是对于电话会议接入到本中继系统进行电话录音」· C头文件 代码 · 共 83 行

H
83
字号
#if !defined(AFX_TESTSYS_H__DD58DF8B_19EC_46E3_BCC6_61A452263DE0__INCLUDED_)
#define AFX_TESTSYS_H__DD58DF8B_19EC_46E3_BCC6_61A452263DE0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TestSys.h : header file
//



/////////////////////////////////////////////////////////////////////////////
// CTestSys thread
struct trkstate {
	int state;
	char filename[255];
	long tcount;
	char caller[20];
	char callee[20];
	long state_sp;
};
class CTestSys : public CWinThread
{
	DECLARE_DYNCREATE(CTestSys)
protected:
	CTestSys();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:
	long ramdig(long min,long max);
	
	trkstate trks[240];
int SsmPickup(int ch);
int SsmHangup(int ch);
int SsmAutoDial(int ch, LPSTR szPhoNum);
int SsmChkAutoDial(int ch);
int SsmGetAutoDialFailureReason(int ch);
int SsmGetChState(int ch);
int SsmSearchIdleCallOutCh(WORD wSearchMode, DWORD dwPrecedence,int ch);
int SsmSetAutoCallDirection(int ch, BOOL bEnAutoCall, int nDirection);
int SsmGetPhoNumStr(int ch, LPSTR pszPhoNum);
int SsmSetKB(int ch, BYTE btSigKB);
int SsmTalkWith(int ch1,int ch2);
int SsmStopTalkWith(int ch1,int ch2);
int SsmRecToFile(int ch, LPSTR pszFileName, int nFormat, DWORD dwStartPos, DWORD dwBytes, DWORD dwTime, int nMask);
int SsmStopRecToFile(int ch);
int SsmSetRecMixer(int ch, BOOL bEnRecMixer, int nMixerVolume);
int SsmSetRecVolume(int ch, int nVolume);
int SsmGetCallerId(int ch, LPSTR szCallerId);
int SsmSetTxCallerId(int ch, LPSTR pszTxCallerId);
void SsmGetLastErrMsg(LPSTR szErrMsgBuf);
void simulate();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestSys)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CTestSys();
	void OnTimer();
	// Generated message map functions
	//{{AFX_MSG(CTestSys)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTSYS_H__DD58DF8B_19EC_46E3_BCC6_61A452263DE0__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?