Genprint

SUMMARY

A Print Processor is a user-mode DLL responsible for converting a print job's spooled data into a format that can be sent to a print monitor. Please refer to the DDK documentation for more information.

This print processor sample runs on the x86 platform and is 64-bit compliant.

BUILDING THE SAMPLE

To build the sample, use the build command. Once built, the sample produces the binary Genprint.dll.

To install the sample print processor, an installation application must call the spooler's AddPrintProcessor function. No INF file is needed to install the sample print processor.

Known issue: If used in a mixed Microsoft Windows NT® 4.0 / Windows® 2000 clustering environment, RAW only should be selected as data type. (No EMF).

CODE TOUR

File Manifest

File           Description
 
Emf.c          Handles EMF data type
Genprint.htm   Documentation for this sample (this file) 
Local.c        Contains debugging functions
Local.h        Local header file
Makefile       Makefile used by build
Parsparm.c     Routine to send formfeed to a printer
Raw.c          Handles RAW data type
Sources        File used by build
Support.c      Support routines for GenPrint
Text.c         Handles TEXT data type
Util.c         Other support routines for GenPrint
Winprint.c     Win32 print processor support functions
Winprint.def   Def file
Winprint.h     Header file for Win32 print processor support functions
Winprint.prf   .prf file
Winprint.rc    Resources      
 

Top of page

 

 

 
 

© 1999 Microsoft Corporation