Win32 LPR/LPRM/LPQ	        Angus Duggan	$Date: 2000/08/31 22:09:33 $

This archive contains clients for Berkeley lpd daemons, to allow printing from
Win32 (Windows NT/Windows95) machines to lpd-hosted printers on a network.
The programs implement RFC 1179 clients.

They have been compiled under Windows NT 4.0


The files contained are:
-r--r--r--   1 angus    None         1310 Oct 23  1999 LICENSE
-r--r--r--   1 angus    None         2650 Aug 31 15:05 README
-r--r--r--   1 angus    None        12894 Aug 31 15:05 common.c
-r--r--r--   1 angus    None         1433 Aug 31 15:05 common.h
-r--r--r--   1 angus    None         2260 Aug 31 15:05 lpq.c
-rwxr-xr-x   1 angus    None        52736 Aug 31 14:58 lpq.exe
-r--r--r--   1 angus    None         9132 Oct 23  1999 lpr.c
-rwxr-xr-x   1 angus    None        67584 Aug 31 14:58 lpr.exe
-r--r--r--   1 angus    None         2361 Aug 31 15:05 lprm.c
-rwxr-xr-x   1 angus    None        52736 Aug 31 14:58 lprm.exe
-r--r--r--   1 angus    None          964 Oct 23  1999 makefile

The makefile is for Visual C++, but will probably work for other


Copy lpr.exe, lpq.exe, and lprm.exe into a directory on your PATH.
Alternatively, recompile with your favourite compiler and install those


These programs use the registry key HKEY_LOCAL_MACHINE\SOFTWARE\FreeWare\Lpr
to store the sequence number for LPR, and printer to host associations. If you
want to add a new association (which will allow you to print with 
"lpr -Pprinter" instead of the full specification "lpr -Pprinter@host"), add a
value "printer" to that key, with the host as a string type value (REG_SZ or
REG_EXPAND_SZ). The environment variables PRINTER and PRINTHOST supply the
default printer and lpd host respectively. If just PRINTER is specified, the
default host will be looked up in the registry.


See the file LICENSE for details.


Bug fixes and suggestions to


The definitive archive sites for these lpd clients updates are in the directory pub/ajcd/, and, in the
directory users/ajcd. The latest version will be in


Thanks to the following people for bugs reports and suggestions:

	Arnon Kanfi	
	Philippe Simard	


First (unnumbered) release 14/10/96

Bugfixes for send return values and lpr default printer host 13/4/98

Bugfixes for socket options, LPRng -Z options, host support 20/9/1999

Bugfix for lprm to keep socket open, 31/8/2000

[Home] [Up]
Wrapped on 2nd October 1998 by