| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: DosDevIOCtl for COM ports |
-22 Oct 96 19:27:00-
=Charles Gaefke babbled to All about DosDevIOCtl for COM ports=
CG> A) what INCL_xxxx lines do I need?
I find it much simpler to #define INCL_BASE. That way you don't have to
remember :)
CG> B) Could someone explain to me the "best" way to open a
COM port for
CG> reading and writing?
With the sharing mode OPEN_SHARE_DENYREADWRITE. Access should be passed
to child processes by passing the handle returned by DosOpen.
CG> C) For DosDevIOCtl, would someone explain, in detail (if at all
CG> possible) what the ParmList is, and how/when to use it.. what the
CG> DataArea is, and how/when to use it, what the ParmLengthMax,
CG> DataLengthMax, DataLengthInOut, and ParmLengthInOut are, and how to
CG> use them.
Look for Ray Gwinn's SIO driver. It contains full documentation for
the IOCtl functions relavant to asynchronous communications.
CG> Also, just to make sure, a "word" is an "int"
or "short", correct?
unsigned short int
CG> And a "dword" is a "long", correct?
unsigned long int
which is basically the same as
unsigned int
if you're using a 32-bit compiler.
CG> And a "byte" is a "char", correct?
unsigned char
CG> If above is correct, then ParmLengthMax would be 5 ("dword" is 4
CG> bytes + "byte" which is 1 byte). What about DataLengthInOut,
CG> ParmLengthInOut, and DataLengthMax?
Use sizeof().
CG> And if a port is "locked", do you have to
"unlock" it before you
CG> can change the rate, then do you have to "relock" it?
That is the concept of "locking" :)
Mike Phillips
INTERNET: phil4086{at}utdallas.edu
... ELECTRICIANS check your shorts.
--- FMail 1.0g
* Origin: oOo The Pit Viper oOo (1:124/2145)SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1 @PATH: 124/2145 2342 1 396/1 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.