winspool: [1/4] Add a missing export
Detlef Riekenberg
wine.dev at web.de
Wed Oct 3 04:33:18 CDT 2007
We now search for local Printers in winspool.drv,DllMain on every
DLL_PROCESS_ATTACH. ("WINSPOOL_LoadSystemPrinters")
This need a long time and is done much to often, because nearly all
GUI Application link to "winspool.drv", but should be only done, when
an Application use the Printer.
Writing the Postcript-Code to a File and send it to CUPS/LPR is
splitted in "winspool.drv" (CreateFile) and "wineps.drv" / "gdi.exe"
(WritePrinter16).
The correct location is the Local Portmonitor (StartDoc / WritePrinter)
GDI is also wrong, because it creates a file named "FILE:", but should
call winspool.drv (bug 3975)
This Patchset is the start to move the CUPS / LPR dependent code to
"localspl.dll". This allow us to use CUPS for printing and we need to
use UNICODE (bug 6437)
Since I do not like to create a wine-specific export in "localspl.dll"
for that, InitializePrintProvidor() is reused.
To avoid a crash with native "localspl.dll" or "spoolss.dll",
some stubs / missing exports are needed.
winspool: Add a missing export for SpoolerPrinterEvent
--
By by ... Detlef
-------------- next part --------------
More information about the wine-patches
mailing list