Windows Printer Driver Development Notes (1)

Source: Internet
Author: User
In Windows, a printer driver is used to write a set of interfaces. Application ProgramThe calling of the GDI function will become the corresponding DDI function. The interface provided by the printer driver is responsible for converting the DDI function into the instructions recognized by the printer. As a result, it is the responsibility of printer moniter, not the responsibility of printer driver, to connect to a real printer through interfaces such as the network port and serial port.

The printer driver is generally divided into two parts.
1. Printer graphics DLL
2. printer interface DLL
Both printer graphics DLL and printer interface DLL are numbered, And the plugin interface is left. Programmers can write the corresponding plugin.

Because Microsoft provides the universal printer driver, writing the driver is easier.
The enhanced universal printer driver can be divided into three parts:
1. Add a file named GPD, which defines some parameters. The universal printer driver will read the file, which is also called the mini driver.
2. The plug-in related to printer graphics DLL is called rendering plug-ins.
3. The plug-in related to printer interface DLL is called User Interface plug-ins.

The printer driver must complete the following interfaces:
Devqueryprintex
Drvconvertdevmode
...
Drvupgradeprinter
These functions are implemented separately in the universal printer driver in unidrvui. dll and unidrv. dll.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.