Author: Owen RansenOwen Ransen
Date: Jan 26, 2008 23:29
On Sat, 26 Jan 2008 14:37:21 -0800 (PST), pedronf65@ gmail.com wrote:
>I use this line of code:
>m_hFile = ::CreateFile(m_csCommPortName, GENERIC_READ | GENERIC_WRITE,
>0, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0);
It is a long times since I used this code, but you might
find something useful in it (especially the TRACE statements
after GetCommState() :
char gszPort [_MAX_PATH+1] = "COM2" ;
HANDLE hComm;
hComm = CreateFile( gszPort,
GENERIC_READ | GENERIC_WRITE,
0,
0,
OPEN_EXISTING,
0,// FILE_FLAG_OVERLAPPED,
0);
|