SECTION 3
Supporting Windows Applications
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide 3-29
NPCP Printing for Windows
The NPCP printing support under Windows consists of the device driver
NORNPCP.DRV
and Windows printer driver
NOR4800.DRV/UNIDRV.DLL
.
These device drivers provide transparent NPCP printing. Applications use the
standard Windows printing API (
StartDoc()
,
EndDoc()
, etc.) to print to a printer
set up for LPT1.DOS output.
Installation and Configuration
Place the files in the following directories:
File
Directory
NORNPCP.DRV
WINDOWS\SYSTEM
NOR4800.DRV
WINDOWS\SYSTEM
UNIDRV.DLL
WINDOWS\SYSTEM
Required WIN.INI Entries
[windows]
spooler=
DosPrint=no
device=NORAND 4800,NOR4800,LPT1.DOS
spooler=
tells Windows not to use Print Manager to spool printing.
DosPrint
=
no
tells Windows not to print directly to the printer port.
device=NORAND 4800, NOR4800,LPT1.DOS
specifies the default printer for
Windows. See the following [PrinterPorts] and [devices] sections.
[PrinterPorts]
NORAND 4800=NOR4800,LPT1.DOS,15,45
NORAND 4800=NOR4800,LPT1.DOS,15,45
tells Windows that there is a
printer named NORAND 4800 that uses the NOR4800 printer driver to print,
using the DOS device LPT1 with 15Ćsecond device timeout and 45Ćsecond retry
timeout.
[devices]
NORAND 4800=NOR4800,LPT1.DOS
NORAND 4800=NOR4800,LPT1.DOS
tells Windows that there is a printer
named NORAND 4800 that uses the NOR4800 printer driver to print, using the
DOS device LPT1 This section is included for compatibility with older Windows
applications and should agree with the entry in the [PrinterPorts] section.
Required SYSTEM.INI Entries
[boot]
drivers= ... npcp ...
drivers=
tells Windows to load installable driver npcp. The actual driver name is
specified in the following [drivers] section:
[drivers]
npcp=nornpcp.drv
npcp=
tells Windows the actual name of the installable driver named in the
[boot] section.
3. Windows
Applications