Article View: borland.public.cppbuilder.nativeapi
Article #11648Re: Retrieve modem status:how?
From: Bob Gonder
Date: Tue, 27 Jan 2004 18:45
Date: Tue, 27 Jan 2004 18:45
18 lines
1836 bytes
1836 bytes
Davide Puccioni wrote: >I've tried to pick a piece of code with GetCommModemStatus() function >that updates a label on main form with current DSR CTS and RLSD values. >When link between modem was established, all three values became 1 >contemporarily. >Hanging up one of the modems, all of them returns to 0. > >I don't understand... :-( Could be that MS has "simplified" the results for GetCommModemStatus as opposed to GetCommStatus. Are the DSR and CTS values different between the two different calls? You asked about detecting the connection dropping. RLSD should do that. Your test showed it happening (as well as the others I didn't expect to drop). In any case, the others could fluctuate during usage. RLSD should only drop when the connection does.
Technical Details
Message-ID:
<o0cd10tvbpghvdacth7daqmv11728p87i4@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40164011.60901@nospam.com> <ie1d10pgtqnaaqdp0bokqdn5m1ghmsegc1@4ax.com> <40168C96.2050400@nospam.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b4799acf7efcb3a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-27 11:10:39 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Retrieve modem status:how? Date: Tue, 27 Jan 2004 10:45:12 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <o0cd10tvbpghvdacth7daqmv11728p87i4@4ax.com> References: <40164011.60901@nospam.com> <ie1d10pgtqnaaqdp0bokqdn5m1ghmsegc1@4ax.com> <40168C96.2050400@nospam.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.165.2 X-Trace: newsgroups.borland.com 1075229111 67.31.165.2 (27 Jan 2004 10:45:11 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail