🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Using CreateFile with a modem

#7347
From: Joe Black
Date: Wed, 09 Feb 2005 16:55
19 lines
1534 bytes
Hi all,

I want to permanantly modify the settings of a modem that I have one my 
machine called "Standard 28800 bps Modem". I want to set the baud rate 
to 38400, data bits to 8, parity to none and the stop bits to one. So 
the questions:

1) Will the API functions GetCommState and SetCommState allow me to 
permanantly modify these settings, ie when I call close handle will they 
remain as above?

2) What do you need to pass to the CreateFile parameter  LPCTSTR 		 
      lpFileName,	// pointer to name of the file

    this is the first parameter, for comm ports it would be COM1.

Many thanks

Joe	
Technical Details
Message-ID: <420a4069$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7607afe9e9e2c05d,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 09 Feb 2005 16:55:11 +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: Using CreateFile with a modem
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 80.177.44.179
Message-ID: <420a4069$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1107968105 80.177.44.179 (9 Feb 2005 08:55:05 -0800)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail