USB Printer Class Driver Interface
The USB printer class driver follows the standard Windows CE USB driver interface functions.
The driver is implemented as a USB client driver and it exposes the USBInstallDriver, USBDeviceAttach, and USBUnInstallDriver entry points to support Plug-and-play functionality.
The USB Printer driver is a transport driver similar to the parallel port driver. This driver exposes the stream interface and uses the index LPT for its name. This parallel port interface is also implemented in the USB printer class driver. From Print Monitor's perspective, the USB printer driver is just another parallel port printer driver. This way no changes are needed to the upper level printer architecture. In particular, the driver supports the following IOCTLs, which are defined in Pegdpar.h:
- IOCTL_PARALLEL_SET_TIMEOUTS
- IOCTL_PARALLEL_GET_TIMEOUTS
- IOCTL_PARALLEL_GETDEVICEID
- IOCTL_PARALLEL_WRITE
- IOCTL_PARALLEL_STATUS
The driver supports any USB printer device that has the following key parameters in Interface Descriptor.
Parameter | Value | Description |
---|---|---|
bInterfaceClass | 07 | Base Class for Printers |
bInterfaceSubClass | 01 | Printers |
bInterfaceProtocol | 01
02 |
Unidirectional Interface
Bidirectional Interface, default |
See Also
Support for Multiple USB Printer Devices | USB Driver Samples | USB Driver Architecture | USB Driver Registry Settings
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.