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 Windows® 2000 DDK documentation for more information.
This print processor sample works on both x86 and Alpha platforms and is 64-bit compliant. Both checked and free builds are available.
To build the sample, use the build command. Microsoft® Visual C® must be present on your machine for the sample to build successfully.
Once built, the sample produces four binaries: Genprint.dll, Genprint.lib (an export lib), Genprint.exp, and, if built in a checked environment, Genprint.pdb.
To install the sample print processor, an installation application must call the spooler's AddPrintProcessor function.
Note: Theoretically, it's possible to build using Visual C. Then the user must look into sources and makefile and create a Visual C project. The user would also need to include some header files and link against libraries that come with the DDK.
Known issue: If used in a mixed Microsoft® Windows NT® 4.0/Windows® 2000 clustering environment, only RAW should be selected as data type, not EMF.
File DescriptionEmf.c Handles EMF data type Local.c Contains debugging functions Local.h Local header file Makefile Makefile used by build Messages.mc File for the message compiler, will generate messages.h, messages.rc and MSG00001.bin 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 Winppi.h Header file for GDI function used 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
© 1999 Microsoft Corporation