Zebra Technologies TTP 2030 Power Screwdriver User Manual


 
5
Windows CE Driver
Description
4/14/2013 TTP 2030™ Windows CE Software Integrator Guide P1055866-001
Port Monitor
The port monitor for the TTP 2030 is called TTPPort.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:
ReportPrinterStatus – the default function described in the MSDN documentation.
GetPrinterStatus – the function that returns the actual printer status (described below).
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 TTP 2030 status.
Table 1 • Driver Functions
Function Description