The port monitor manages all communication between printer drivers and physical communication ports on a Windows CE–based platform. Therefore, the printer driver does not need to support different types of printer ports explicitly; due to the port monitor’s management, the driver automatically works with any type of printer port. The port monitor supports serial ports, infrared ports, parallel ports, and network printing. Printer drivers should call the port monitor APIs, instead of calling low-level communication APIs directly.
The following table shows the port monitor functions.
Function |
Description |
GetPrinterInfo | Retrieves information about the capabilities of a printer. |
PrinterClose | Closes a handle to a printer. |
PrinterOpen | Opens a handle to a printer. |
PrinterSend | Sends blocks of data to a printer. |