[LOCALMON]
authorColin Finck <colin@reactos.org>
Wed, 15 Jul 2015 18:15:33 +0000 (18:15 +0000)
committerColin Finck <colin@reactos.org>
Wed, 15 Jul 2015 18:15:33 +0000 (18:15 +0000)
commitafb3ba35d86b02fbccd5e2f73852d8e41de82599
treec74abf3427c9d955e63382b380dae0e5d4e73937
parent1f52401541b375c4347c785359fb6c0b36d5d7a6
[LOCALMON]
My idea to just care about COM, FILE: and LPT ports was too short-sighted.
Apart from selecting a FILE: port that prompts for the output filename at printing, you can also add a port "C:\bla.txt" to always output into that particular file.
Even shared network printers can be added as a local port "\\COMPUTERNAME\PrinterName" (and Windows even does that when auto-adding printers found on the network). Note that this is the exception though, shared network printers are normally handled by a different component.

Our localmon now handles all valid ports found in the registry.
Port name checks were modified to be extra-picky and not let any false positives happen (e.g. trying to print into a file starting with "LPT" shouldn't be treated as printing to an LPT port)

svn path=/branches/colins-printing-for-freedom/; revision=68402
reactos/win32ss/printing/monitors/localmon/main.c
reactos/win32ss/printing/monitors/localmon/ports.c
reactos/win32ss/printing/monitors/localmon/precomp.h
reactos/win32ss/printing/monitors/localmon/tools.c
reactos/win32ss/printing/monitors/localmon/xcv.c