TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Schuller
from: David Muir
date: 1996-07-23 03:41:46
subject: Re: Modem and Direct Screen Writes

-=> Quoting Peter Schuller to David Muir <=-

 PS> As I just told Mikko, this is what I did:

 PS> HFILE hCom = 0L;
 PS> ULONG ulAction = 0;
 PS> ULONG ulBytesRead = 0;
 PS> ULONG ulWrote = 0;
 PS> ULONG ulLocal = 0;
 PS> APIRET rc = NO_ERROR;


 PS> rc = DosOpen (_argv[1], &hCom, &ulAction, 100L,
 PS> FILE_NORMAL,
 PS> OPEN_ACTION_OPEN_IF_EXISTS,
 PS> OPEN_ACCESS_READWRITE, 0L);


 PS> DosOpen returner 12, the porthandle was "5", for COM2 passed on by
 PS> Maximus/2. Any id*?

    now i haven't done anything 'port' wise for a bit, but it seems to me that 
if MAX is opassing you a file handle then that file is already open (and 
naturally dosopen will report an error). Try just writing to it (reading from 
it) as it should already be open.

Dave...

... THD ProScan support on the web, http://www.naples.net/~nfn03274
~~~ TGWave v1.20 Beta-07+
--- Telegard 3.01/Gecho
* Origin: fks Online! * Ontario, Canada * (905)820-7273 * (1:259/423)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 259/423 400 99 250/99 3615/50 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™.