Mail Archives: djgpp/1999/02/04/19:09:39
Message-ID: | <36BA4BB7.7940@linetap.com>
|
From: | nebo <nebo AT linetap DOT com>
|
Organization: | neboland
|
X-Mailer: | Mozilla 3.04Gold (Win16; I)
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | PCI printing
|
Lines: | 37
|
Date: | Thu, 04 Feb 1999 17:39:03 -0800
|
NNTP-Posting-Host: | 209.205.49.226
|
X-Complaints-To: | Abuse Role <abuse AT cancom DOT net>, We Care <abuse AT newsread DOT com>
|
X-Trace: | newshog.newsread.com 918167886 209.205.49.226 (Thu, 04 Feb 1999 17:38:06 EDT)
|
NNTP-Posting-Date: | Thu, 04 Feb 1999 17:38:06 EDT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
I've long used this little bit of code to determine if a
particular printer port is available or not. It works
fine on my old 486, returning false and true when it
should. But alas, I upgraded... and am now running a P75
with a PCI Board, and this code no longer works. subfunction
00h prints no problem but when a different port is selected,
LPT2, etc, it hangs until my printer is On-line, and then it
attempts to print(for an average 1 page document this takes
about 2 minuutes of my computer sitting there doing nothing).
I took a look at a few PCI docs, including Ralf Browns stuff,
but couldn't find any applicable information, does anyone out
there know any more about this ??
__dpmi_regs r;
r.h.ah = 2;
r.h.dh = port;
__dpmi_int(0X17, &r);
if( (r.h.ah&0X08) != 0 ) return TRUE;
return FALSE;
--
Nb
nebo AT LTS MajorNet
nebo AT linetap DOT com Internet
I'll stop drinking when I can't pour,
I'll stop standing when I fall over,
I'll stop moving when I pass out,
I'll stop dreaming when I die.
- Raw text -