Subj : Re: COM Ring Indicator To : borland.public.cpp.borlandcpp From : Jack Sawatzky Date : Sat Jul 16 2005 09:02 pm Bob Gonder wrote: >Take a look at SetCommMask() >Something along the lines of > > DWORD EvtMask > GetCommMask( h, &EvtMask ); > EvtMask |= EV_RING; > SetCommMask( h, EvtMask ); > > if( WaitCommEvent( h, &EvtMask, &Overlapped ) ) > { > GetCommModemStatus() > } > > > > Should this work with GetCommModemStatus() alone, or is it necessary to use the WaitCommEvent()? I wanted to pole the status at regular intervals, rather than waiting for a signal change. I tried adding SetCommMask(hcom, EV_RING); to my code, but it didn't help. Thanks. .