| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Async_Getbaudrate |
In a message to All , Gary Chambers writes:
GC> What am I supposed to do when I query the baud rate of the comm port
GC> and it's locked at 115.2kbps? Specifically, DosDevIOCtl(IOCTL_ASYNC,
GC> ASYNC_GETBAUDRATE, ... ) returns (supposedly) only USHORT; how do I
GC> get the actual baud rate, if it's above 65535 (sizeof(USHORT)) bps?
GC> Thanks...
ASYNC_GETBAUDRATE is function 61h. You need to use function 63h (IBM forgot
to give it a name in bsedev.h). This function is called Extended Query Bit
Rate.
This function returns the extended query bit rate in doublewords for a bit
rate greater than 19200 bits per second (bps). If a general failure is not
returned, the physical device driver returns the bit rate values as
defined. This function is extended from the current Function 61H - Query
Bit Rate.
Parameter Packet Format:
None. Packet pointer must be
NULL.
Data Packet Format:
Field Length Current Bit Rate DWORD Fraction of Current
Bit Rate
BYTE Minimum Bit Rate Supported
DWORD Fraction of Minimum Bit Rate Supported
BYTE Maximum Bit Rate Supported
DWORD Fraction of Maximum Bit Rate Supported
BYTE
Let me know if you need more info (Such as on Function 43h - Set Extended
Bit Rate - you guessed it, not ASYNC_* definition in bsedev.h).
---
Pick two: 1)Fast 2)Right 3)Cheap 4)Windows (counts as 2)
* PmQwk 32! 1.00b08c (NR)*
--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, Fairfax, VA: 703-385-4325 (1:109/347)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 109/347 2 7 3615/50 229/2 12/2442 711/409 54/54 711/808 809 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™.