Article View: borland.public.cppbuilder.nativeapi
Article #11093Re: restore default settings of COM port
From: Boba
Date: Thu, 26 Feb 2004 20:27
Date: Thu, 26 Feb 2004 20:27
11 lines
1465 bytes
1465 bytes
"Martin Moeller" <martin.moeller@moema.it> wrote in message news:403d063a@newsgroups.borland.com... > > > Please tell me how to <subj> programmatically. > > I don't think there is default for COM ports. What you can do is to get & > save the DCB before modifying by your prog and restoring it on exit. > There are default driver settings for COM port. An API call to set'em is SetDefaultCommConfig. In my case the driver itself was faulty and the function didn't work. Replacing the driver solved the problem. Boba
Technical Details
Message-ID:
<403e5665@newsgroups.borland.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:
<403cf36c$1@newsgroups.borland.com> <403d063a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,470b36a47306072b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-26 12:40:36 PST From: "Boba" <Boba@somewhere.world> Newsgroups: borland.public.cppbuilder.nativeapi References: <403cf36c$1@newsgroups.borland.com> <403d063a@newsgroups.borland.com> Subject: Re: restore default settings of COM port Date: Thu, 26 Feb 2004 14:27:53 -0600 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 208.210.156.61 Message-ID: <403e5665@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077827173 208.210.156.61 (26 Feb 2004 12:26:13 -0800) 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