Intermec 6100 Reference Guide

Page of 328
SECTION 3
Supporting Windows Applications
PEN*KEY
R
 6100 Computer Programmer’s Reference Guide    3-23
An example of an OpenDriver call is as follows:
hDRVR = OpenDriver(“61SCAN.DRV”, (LPCSTR)NULL, (LPARAM)NULL);
The scanner is powered on, and scanner data is delivered to the application with
the input focus as WM_CHAR messages.  These messages are distinguishable
from standard" WM_CHAR messages in that the virtual key code in wParam is
the ASCII value of a scanned character and lParam is sent as 0x00000000 (in
particular, the OEM nibble (bits 16ć23) that contains the OEM scan code of 0).
An example of an CloseDriver call is as follows:
CloseDriver(hDRVR, (LPARAM)NULL, (LPARAM)NULL);
This turns the scanner off.
"
NOTE:
See the Borland C++ help for OpenDriver / CloseDriver.  See also Windows 3.1 SDK for
additional information.
NPCP Printing for Windows: NOR4800.DRV,
UNIDRV.DLL
NPCP printing support under Windows consists of DOS device driver
NORNPCP.SYS, a DOS TSR NORPAPI.EXE, and Windows printer driver
NOR4800.DRV/UNIDRV.DLL.  These device drivers work together to 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
Place the files in the following directories:
File
Directory
NORNPCP.DRV 
WINDOWS\SYSTEM
NOR4800.DRV 
WINDOWS\SYSTEM
UNIDRV.DLL 
WINDOWS\SYSTEM
Configuration
Required WIN.INI Entries
[windows] 
spooler=
DosPrint=no
device=NORAND 4800 Series,NOR4800,LPT1.DOS
where:
spooler= tells Windows not to use Print Manager to spool printing.
DosPrint=no tells Windows not print directly to the printer port.
device=NORAND 4800 Series,NOR4800,LPT1.DOS specifies the default printer for
Windows.  See the following 
[PrinterPorts]
 and 
[
devices
]
 sections of the
WIN.INI file.
[PrinterPorts]
NPCP Printer=NOR4800,LPT1.DOS,15,45
3. Windows
Applications