| 12345678910111213141516171819202122232425262728293031 |
- // CommProcess.h: interface for the CCommProcess class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_COMMPROCESS_H__MOSTDEVICE__INCLUDED_)
- #define AFX_COMMPROCESS_H__MOSTDEVICE__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CCommProcess
- {
- public:
- CCommProcess();
- virtual ~CCommProcess();
- virtual int Write(BYTE * pBuf, int len);
- virtual int Read(BYTE * pBuf, int len);
- BOOL OpenComm(PPORTPARAM pPortParam);
- BOOL CloseComm();
- private:
- BOOL m_bOpen;
- int m_nPort;
- HANDLE m_hCom;
- // DWORD inQue, outQue;
-
- protected:
- };
- #endif
|