Language monitors are user-mode DLLs that serve two purposes:
They provide a full duplex communications path between the print spooler and bidirectional printers that are capable of providing software-accessible status information.
They add printer control information, such as commands defined by a printer job language, to the data stream.
Microsoft provides a language monitor, Pjlmon.dll, which supports printer job language (PJL), and provides bidirectional communication for PJL printers. For more information see, Sample language monitor.
Customized language monitors can be written to support other job control languages, for unidirectional or bidirectional printers.
Language monitors are optional and only associated with a particular printer type if included in the printer's INF file, as described in Installing a print monitor.
If you clear Enable bidirectional support check box in the Ports tab of the printer properties dialog box, the spooler will not call the StartDocPort, WritePort, EndDocPort, GetPrinterDataFromPort, ReadPort functions of the language monitor.
The spooler will continue to call the OpenPortEx, ClosePort, SendRecvBidiDataFromPort functions even when Enable bidirectional support is cleared. The Enable bidirectional support check box does not affect the calls to the language monitor that are made when an application calls functions in the bidirectional communication API.
If a language monitor is associated with a printer, the language monitor receives the printer's data stream from the print processor, modifies it, and passes it to the printer's port monitor. For more information, see Language and port monitor interaction.
Language monitors should always implement the SendRecvBidiDataFromPort function and include the function's address in the pfnSendRecvBidiDataFromPort member of the MONITOR2 structure.
In the event that the language monitor does not support bidi, or the request contains bidi schema values that the language monitor does not support, the language monitor should forward the calls to the port monitor's SendRecvBidiDataFromPort function.
Submit and view feedback for