Language monitor functions

The following table lists the functions that a language monitor must define.

Function name Description
DllEntryPoint A DLL entry point, typically called DllMain.
ClosePort Closes a port when there are no printers connected to it.
EndDocPort Performs end-of-print-job tasks on a port.
GetPrinterDataFromPort Optional. Polls a port for values that are stored in the registry.
InitializePrintMonitor2 Initializes the print monitor and returns an instance handle.
OpenPortEx Opens a port for a newly connected printer.
ReadPort Reads data from a printer port.
"SendRecvBidiDataFromPort Optional. Supports bidirectional communication between an application and a printer or print server.
Shutdown Optional. Deletes a monitor instance. This function is required for cluster support.
StartDocPort Performs the tasks required to start a print job on a port.
WritePort Writes data to a printer port.