🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7351

Re: Using CreateFile with a modem

#7351
From: Joe Black
Date: Thu, 10 Feb 2005 09:09
23 lines
1927 bytes
Remy Lebeau (TeamB) wrote:

> You cannot change the settings permanently.  You can, however, change them
> for the duration of your session with the modem.  Every time you use
> CreateFile() to open a port, you should call SetCommState() to set up the
> session as you wish.  When you close the session later, there is no
> guarantee that the settings will still be in place when you open the same
> port again.
> 

Thanks Remy,

My problem is I need to create a phonebook entry that uses a specified 
modem with specific settings, which I've done using 
RasSetEntryProperties, this creates my phonebook entry, but the settings 
of the modem are incorrect, I would like to change these programatically 
and makes these changes permanent if possible. Do you know of a way I 
can do this? there seems to be no way but I would have assumed that 
others will have needed to do this.

Many thanks for for your response.

Joe
Technical Details
Message-ID: <420b24c7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.mesh.ad.jp!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <420a4069$1@newsgroups.borland.com> <420a556d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7607afe9e9e2c05d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 10 Feb 2005 09:09:26 +0000
From: Joe Black <JoeBlack@newsgroup.nospam>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Using CreateFile with a modem
References: <420a4069$1@newsgroups.borland.com> <420a556d@newsgroups.borland.com>
In-Reply-To: <420a556d@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 80.177.44.179
Message-ID: <420b24c7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108026567 80.177.44.179 (10 Feb 2005 01:09:27 -0800)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.mesh.ad.jp!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail