🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.os.ms-windows
Article #8

Re: Set CommPorts with Win32s

#8
From: Ralf Casperson
Date: Sat, 27 Jul 1996 00:00
28 lines
1977 bytes
> Hallo!                                  Hello!
>
> Wie kann ich die CommPorts (COM1:,      How can I set the comm ports
> COM2:, ...) unter Win32s setzen         (COM1:, COM2, ..) with Win32s
> (Baudrate, Parity, ..)?                 (baudrate, parity, ..)
>
> Unter Win32 kann ich die Funktionen     With Win32 I can use the functions
>    BuildCommDCB(lpszDef, lpdcb) und       BuildCommDCB(lpszDef, lpdcb)
>    SetCommState(hCommDef, lpdcb)          SetCommState(hCommDef, lpdcb)
> benutzen.
>
> Fuer Win32s sind die 32Bit-Varianten     In Win32s the 32bit functions all
> nicht verfuegbar (nach MS-DEV-CD),       defined as dummys (s.a.MS-DEV-CD).
> sie liefern konstant einen Fehlerwert.  The func. return an error value.
>

GetCommState(lpdcb);
lpdcb->BaudRate=9600;
lpdcb->ByteSize=8;
lpdcb->Parity  =NOPARITY;
lpdcb->StopBits=ONESTOPBIT;
SetCommState(lpdcb);

--------------------------------------------------------------------------
Ralf Casperson                                http://www.snafu.de/~caspers
                                              mail:caspers@berlin.snafu.de
## CrossPoint v3.02 ##
Technical Details
Message-ID: <6Df_a0xiTOB@caspers.snafu.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6CyK-kzAX3B@mtonne55.trashcan.mcnet.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 12779d,2030c9bb851a68b7
X-Google-Attributes: gid12779d,public
X-Google-Thread: f43b7,2030c9bb851a68b7
X-Google-Attributes: gidf43b7,public
X-Google-Thread: 10591b,2030c9bb851a68b7
X-Google-Attributes: gid10591b,public
X-Google-Thread: f4621,2030c9bb851a68b7
X-Google-Attributes: gidf4621,public
X-Google-Thread: 1115d3,2030c9bb851a68b7
X-Google-Attributes: gid1115d3,public
From: caspers@caspers.snafu.de (Ralf Casperson)
Subject: Re: Set CommPorts with Win32s
Date: 1996/07/27
Message-ID: <6Df_a0xiTOB@caspers.snafu.de>
X-Deja-AN: 170483329
references: <6CyK-kzAX3B@mtonne55.trashcan.mcnet.de>
organization: Dipl.-Ing. Ralf Casperson
newsgroups: de.comp.os.ms-windows,-trashcan-.kneipe,braunschweig.hochschule,ger.ct.support,z-netz.rechner.ibm.windows