Specifications

7
Windows CE Driver
Description
3/1/2011 KR203 Windows CE Software Integrator Guide P1028251-001 Rev. A
Note • The table includes links to descriptions of the driver functions.
Port Monitor
The port monitor for the KR203 is called KRPort.DLL. Printing is supported over universal
serial bus (USB) port only. The printing architecture provides application programming
interfaces (APIs) that are exposed by the Graphics, Windowing, and Events Subsystem
(GWES) to communicate with the printer driver. The printer driver communicates with the
port driver that sends the print data over the supported bus. Therefore, the printer driver is
independent of the bus and the corresponding bus driver.
Print Spooling
No separate printer spooler component exists in Windows CE, unlike the desktop versions
of the Windows OS. With Windows CE, spooling or background printing is implemented in
the printer driver itself. However, because print spooling typically consumes a lot of
memory, limited memory might be a problem. A practical print spooler usually has to
implement a complicated compression scheme to store spooled documents before
printing.
Status Monitoring
In order to allow applications to get status from the printer, there are two functions
implemented: 1) the default ReportPrinterStatus function described in the MSDN
documentation, and; 2) a new function GetPrinterStatus that returns the actual printer
status (see Table 2-2, Printer Status Codes on page 8).
DrvGetModes Lists the modes supported by a specified device.
DrvStartDoc Called by the GDI to start a print job.
DrvStartPage Called by the GDI to start printing the next page of a
print job.
GetPrinterInfo Obtains information about printers, such as the name
of the printer or whether the printer can print in color.
PrinterClose Closes a printer handle previously opened by a call to
the PrinterOpen function.
PrinterOpen Opens a specified printer port and returns a handle to
the printer.
PrinterSend Sends a block of data to a printer.
ReportPrinterStatus Returns the status of a printer or printing operation that
is in progress.
GetPrinterStatus Returns a specific KR203 status.
Table 2-1 • Driver Functions
Function Description