PJLMon: Sample Language Monitor

[This is preliminary documentation and subject to change.]

SUMMARY

A language monitor provides a full duplex communications path between the print spooler and bidirectional printers that are capable of providing software-accessible status information and adds printer control information, such as commands defined by a printer job language, to the data stream.

PJLMon.dll supports Printer Job Language (PJL) and provides bidirectional communication for PJL printers.

Please refer to the DDK documentation for more information about print monitors.

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

BUILDING THE SAMPLE

The code must be built using the build environment shipped with the DDK. To build the sample, run build from this directory. The DLL will be placed in the i386 platform directory.

To install a language monitor, its file name must be listed in an .inf file by using a LanguageMonitor entry. This entry must be included for every printer driver that controls a printer requiring the use of the language monitor.

Once built, the sample will produce four binaries: Pjlmon.dll, Pjlmon.lib (an export lib), Pjlmon.exp, and, if the sample is built in a checked environment, Pjlmon.pdb.

CODE TOUR

File Manifest

File           Description
 
 
Local.h         Header for global declarations and function prototypes
Makefile       Generic file for building the code sample
Parsepjl.c     Source module that handles parsing of PJL printer response streams
Parsepjl.h     Header for PARSEPJL.C 
Pjlmon.c       Source module that contains the exported functions
Pjlmon.def     File that list the exported functions
Pjlmon.rc      Resource file for the module
Precomp.h      Header that includes the headers to pre-compile
Pjlmon.htm     Documentation for this sample (this file)
Sources         Generic file for building the code sample
Spltypes.h     Header for PJLMON.C 
Util.c          The source module for utility routines

Top of page

 

 

 
 

© 1999 Microsoft Corporation