Build a printer graphics DLL
Important
The modern print platform is Windows' preferred means of communicating with printers. We recommend that you use Microsoft's IPP inbox class driver, along with Print Support Apps (PSA), to customize the print experience in Windows 10 and 11 for printer device development.
For more information, see Modern print platform and the Print support app design guide.
When building a printer graphics DLL, you must be aware of the following differences between DLLs intended for user-mode execution and those intended for kernel-mode execution.
In Windows Vista, printer graphics DLLs can only execute in user mode. For more information, see Choosing user mode or kernel mode.
Rules for Building a Printer Graphics DLL
User-mode graphics DLL | Kernel-mode graphics DLL |
---|---|
Set TARGETTYPE=DYNLINK in source file. | Set TARGETTYPE=GDI_DRIVER in source file. |
Preprocessor macro USERMODE_DRIVER must be defined in source files before winddi.h is included. | Preprocessor macro USERMODE_DRIVER must not be defined. |
Object modules must be linked with the umpdddi.lib and gdi32.lib import libraries. | Object modules must be linked with the win32k.lib import library. |
The DrvQueryDriverInfo function must return TRUE for DRVQUERY_USERMODE. | The DrvQueryDriverInfo function must return FALSE for DRVQUERY_USERMODE. (Alternatively, the function can be omitted.) |