Quand je fais :
if ((COMDEV( npTTYInfo ) =
CreateFile( szPort, GENERIC_READ | GENERIC_WRITE,
0, // exclusive access
NULL, // no security attrs
OPEN_EXISTING,
// FILE_ATTRIBUTE_NORMAL |
FILE_FLAG_OVERLAPPED, // overlapped I/O
NULL )) == (HANDLE) -1 )
return ( FALSE ) ;
else
{
// get any early notifications
SetCommMask( COMDEV( npTTYInfo ), /*EV_RXCHAR*/0 ) ;
// setup device buffers
SetupComm( COMDEV( npTTYInfo ), 4096, 4096 ) ;
// purge any information in the buffer
PurgeComm( COMDEV( npTTYInfo ), PURGE_TXABORT | PURGE_RXABORT |
PURGE_TXCLEAR | PURGE_RXCLEAR ) ;
// set up for overlapped I/O
CommTimeOuts.ReadIntervalTimeout = 0xFFFFFFFF ;
CommTimeOuts.ReadTotalTimeoutMultiplier = 0 ;
CommTimeOuts.ReadTotalTimeoutConstant = 1000 ;
CommTimeOuts.WriteTotalTimeoutMultiplier = 0 ;
CommTimeOuts.WriteTotalTimeoutConstant = 1000 ;
SetCommTimeouts( COMDEV( npTTYInfo ), &CommTimeOuts ) ;
}
est ce que le Handle de mon CreatFile peut me servir pour configurer mon modem??