| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | SpeedPascal/2 |
Gary Chambers wrote in a message to All:
GC> Anyhow, I'm attempting to get the DosDevIOCtl call working.
GC> Given the following, I receive a "Variable reference
required" error:
GC> Program TestDevices;
GC> rc := DosDevIOCtl(FileHandle, IOCTL_ASYNC, ASYNC_GETBAUDRATE,
GC> {at}Dummy, Dummy, Dummy, <-----PULONG
GC> pusBaud, sizeof(USHORT), {at}Dummy);
BOOL IsCarrier(HFILE hfModem)
{
APIRET rc;
USHORT msr=0;
ULONG ulpinout=0, uldinout=0;
rc = DosDevIOCtl(hfModem, IOCTL_ASYNC, ASYNC_GETMODEMINPUT,
NULL, 0, &ulpinout,
&msr, sizeof(msr), &uldinout);
...
}
//above code stolen from : Peter Fitzsimmons {at}1:250/292.0
The 6th parameter should be a pointer to a ULONG.
Lionel.
--- timEd/2-B11
* Origin: Nemesis... the OS/2 Resource (604) 383-0493 (1:340/303)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 340/303 2 1 3615/50 396/1 270/101 105/103 42 712/515 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™.