TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Neil Spring
from: Craig Morrison
date: 1994-07-29 00:06:08
subject: COM device programming

Neil Spring doth sayeth in a message unto All:

NS> anyone out there know how to flush the transmit queue?

  This will flush the output buffers for a file:

  BYTE devParm = 0;
  BYTE devData = 0;
  ULONG cbParm, cbData;
  HFILE hFile;

  DosDevIOCtl(hFile, IOCTL_GENERAL, DEV_FLUSHOUTPUT, &devParm,
              sizeof(devParm), &cbParm, &devData, sizeof(devData),
              &cbData);

 See ya,

Craig
.
craig.morrison{at}nfe.com

... I'm the person your mother warned you about!

--- timEd/2-B9

* Origin: Workplace Connection * (317) 742-2680 * (1:201/60)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 201/60 1 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™.