Commit Graph

229 Commits

Author SHA1 Message Date
Huw Davies b9bc9a0cf2 winspool: Add a helper to open a printer's registry key. 2012-04-19 19:36:16 +02:00
Huw Davies 30d18c1165 winspool: Explicitly set CUPS options based on any job ticket lines, which otherwise get ignored by cupsPrintFile. 2012-04-16 17:49:30 +02:00
Huw Davies b2accddffe winspool: Simplify cups function loading. 2012-04-16 17:49:29 +02:00
Huw Davies 79aac9fabc winspool: Implement SetPrinterW for level 9. 2012-04-05 17:53:19 +02:00
Huw Davies 607b5d77bc winspool: Add a helper to set devmode data in the registry. 2012-04-05 17:53:19 +02:00
Huw Davies 9166fcb7a0 winspool: Forward SetPrinterA to SetPrinterW. 2012-04-05 17:53:18 +02:00
Huw Davies 2421519447 winspool: Generalise the A to W printer info conversion to cope with other levels. 2012-04-05 17:53:18 +02:00
Huw Davies b24da40410 winspool: Remove a FIXME now that we don't ignore the defaults. 2012-04-03 17:53:33 +02:00
Huw Davies fa00fce684 winspool: Correct the padding calculation when there is no buffer. 2012-04-03 17:53:22 +02:00
Huw Davies 25f9d6e33e winspool: Initialise portname. 2012-04-03 17:53:12 +02:00
Huw Davies 0b9a3f9de4 winspool: Propagate the printer's devmode to a new job. 2012-04-02 14:14:37 +02:00
Huw Davies b74c9a6472 winspool: Keep track of any supplied devmode. 2012-03-30 16:56:37 +02:00
Huw Davies 736fdbdec5 winspool: Add a helper to free a printer entry. 2012-03-30 16:56:32 +02:00
Huw Davies 2f78666a01 winspool: Add a helper to duplicate a devmode. 2012-03-30 16:56:24 +02:00
Francois Gouget 915ddc4026 winspool: Fix the compilation on Solaris by including errno.h instead of sys/errno.h. 2011-12-02 17:25:56 +01:00
Ken Thomases 6df7adfff1 winspool: Wait for and reap print spool child process. 2011-12-01 10:40:41 +01:00
Ken Thomases 7a88d5a1e4 winspool: No need to reset SIGCHLD because we're not changing it anymore. 2011-12-01 10:11:13 +01:00
Andrew Talbot 4c7f394b74 winspool.drv: Const-correctness fix. 2011-09-13 17:16:58 +02:00
Andrew Talbot f2e922c726 winspool.drv: Fix a logical operator typo. 2011-08-29 12:08:20 +02:00
David Hedberg a82f7cf446 winspool.drv: Add stubs for IsValidDevmodeW and IsValidDevmodeA. 2011-05-09 17:17:12 +02:00
Nicolas Le Cam 64111e2518 winspool.drv: Fix uninitialized variable warning. 2011-04-26 10:52:57 +02:00
Detlef Riekenberg 14fc2eff44 winspool: Do not mark AddPrinterA as stub. 2011-02-14 12:28:08 +01:00
Huw Davies 052cfad067 winspool.drv: Rewrite the lpr scheduler to use the pipe scheduler. 2010-12-07 16:10:30 +01:00
Hans Leidekker b8d0c0dcc7 winspool.drv: Return success from the AddPrintProcessorW stub. 2010-11-16 18:07:06 +01:00
Marcus Meissner c7f158824f winspool.drv: Check return value of EnumPrintersA. 2010-10-25 13:52:50 +02:00
Detlef Riekenberg e61f27299a winspool: Use Unicode for CUPS printer names. 2010-10-18 19:47:49 +02:00
Detlef Riekenberg d07673ecf3 winspool: Use Unicode to add a driver entry for a unix printer. 2010-10-18 19:47:49 +02:00
Detlef Riekenberg 815c24b369 winspool: Set devices and printerports in AddPrinterW. 2010-10-18 19:47:49 +02:00
Detlef Riekenberg f69a4ef07f winspool: Use CUPS for printing. 2010-10-13 11:35:07 +02:00
Detlef Riekenberg 178294a423 winspool: Implement SetDefaultPrinterA/W. 2010-10-13 11:34:44 +02:00
Detlef Riekenberg b23be05eef winspool: Remove unused code. 2010-10-05 12:07:38 +02:00
Vitaly Perov e8f56565cb winspool.drv: Support pDevMode field in {Get/Set}Job. 2010-09-23 19:21:39 +02:00
Vitaly Perov e1b9a5c892 winspool.drv: Set the printer name in AddJobW. 2010-09-13 16:47:00 -05:00
Huw Davies 246f741eb3 winspool.drv: Allow for spaces in either the printer name or the spool file. 2010-08-25 17:36:47 +02:00
Detlef Riekenberg bd1941c3c2 wineps: Use winspool.drv for job management. 2010-08-17 12:56:33 +02:00
Detlef Riekenberg 18193b193b winspool: Return ERROR_MORE_DATA, when the app probe for the needed buffer size. 2010-06-16 11:44:49 +02:00
Detlef Riekenberg ce51d9d0c9 winspool: Support the spooler in GetPrinterData. 2010-06-15 19:58:30 +02:00
Jeremy White b806e13001 winspool: Correctly zero printer driver buffer on failure, with tests. 2009-12-24 12:15:40 +01:00
Jeremy White 09401dd4b1 winspool: Test for failure using correct size. 2009-12-24 12:15:40 +01:00
Marcus Meissner faf1485e4e winspool.drv: Check ptr for being NULL (Coverity). 2009-12-03 12:05:52 +01:00
Jeremy White fa63234b52 winspool: Remove unvarying unicode parameter from WINSPOOL_GetDevModeFromReg. 2009-12-02 12:14:47 +01:00
Jeremy White 9d549a9c13 winspool: Remove unvarying unicode parameter from WINSPOOL_GetDefaultDevMode. 2009-12-02 12:14:42 +01:00
Jeremy White c0238d96b4 winspool: Remove unvarying unicode parameter from WINSPOOL_GetStringFromReg. 2009-12-02 12:14:15 +01:00
Jeremy White b378e0a3d4 winspool: Remove unvarying unicode parameter from WINSPOOL_GetPrinter_[1-9]. 2009-12-02 12:14:01 +01:00
Jeremy White 108230c19e winspool: Remove unvarying unicode parameter from WINSPOOL_GetDriverInfoFromReg. 2009-12-02 12:13:52 +01:00
Jeremy White 10e70fbd18 winspool: Revise EnumPrinterDriversW to fix the incorrect handling of 'all'. EnumPrinterDriversA is similarly fixed by using EnumPrinterDriversW. 2009-12-02 12:13:31 +01:00
Jeremy White 6994b721de winspool: Implement GetPrinterDriverA with GetPrinterDriverW, notably using the larger sizes, which fixes a bug in printing with Acrobat Reader 9.2. 2009-12-01 13:11:37 +01:00
Jeremy White c5a0f9316d winspool: When retrieving PRINTER_INFO_7, the lack of a directory service print queue object is represented with a NULL pointer and a successful return, not an error return. 2009-12-01 13:11:20 +01:00
Jeremy White eae3c3cacc winspool: Implement GetPrinterA via GetPrinterW, largely to support the eccentricity that GetPrinterA allocates buffers as large as those required by GetPrinterW. 2009-12-01 13:10:39 +01:00
Jeremy White 4c136a5df3 winspool: Remove unvarying unicode parameter from WINSPOOL_EnumPrinters. 2009-12-01 13:07:30 +01:00
Jeremy White 602d9058fb winspool: Remove unvarying unicode parameter from WINSPOOL_OpenDriverReg. 2009-12-01 13:05:54 +01:00
Marcus Meissner 0dca1ebecf winspool.drv: Remove useless assignments without NULL ptr check (Coverity). 2009-11-23 13:09:36 +01:00
Detlef Riekenberg 388aca4b9f winspool: Use the backend for GetPrintProcessorDirectory and update the tests. 2009-10-16 17:49:54 +02:00
Detlef Riekenberg fe4ba50bd9 winspool: Fix a copy & paste error in a comment. 2009-10-16 17:49:54 +02:00
Detlef Riekenberg 353fe2ed15 winspool: Implement EnumPrintProcessors[A|W]. 2009-10-15 12:06:18 +02:00
Detlef Riekenberg a916f74476 winspool: Use the backend for AddPortExW. 2009-09-30 14:31:58 +02:00
Detlef Riekenberg f6120c2aa4 winspool: Use the backend for AddPortW. 2009-09-29 14:50:28 +02:00
Detlef Riekenberg 6452e4d2bb winspool: Use the backend for DeletePortW. 2009-09-28 17:32:05 +02:00
Detlef Riekenberg 6a246a71eb winspool: Use the backend for ConfigurePortW. 2009-09-28 17:32:05 +02:00
Detlef Riekenberg 0bc112cfe4 winspool: Move remaining Xcv support to the backend. 2009-05-07 16:21:16 +02:00
Detlef Riekenberg b4120c7f27 localspl: Start implementation of OpenPrinter/ClosePrinter. 2009-05-06 13:24:06 +02:00
Hans Leidekker a01ba78546 winspool: Support special environment value "all" in EnumPrinterDrivers.
A custom action in the sp1 installer passes this value.
2009-03-24 13:32:55 +01:00
Alexandre Julliard ca5d2eabdc winspool.drv: Make sure the DEVMODE structure is fully initialized. 2009-03-12 14:29:17 +01:00
Aurimas Fischer 7ea4fcb7c6 winspool.drv: Properly free destinations list returned by CUPS. 2009-02-20 18:07:40 +01:00
Detlef Riekenberg 857e942992 winspool: Move EnumPortsW to the backend. 2009-02-09 14:49:00 +01:00
Detlef Riekenberg c0e11f663b winspool: Enable environment "Windows x64" for Win64. 2009-02-05 13:14:08 +01:00
Michael Stefaniuc 6c2aeaece7 winspool.drv: Remove superfluous pointer casts. 2009-01-29 14:06:13 +01:00
Francois Gouget dc46cd042c winspool.drv: Remove unneeded casts of zero. 2008-12-08 12:04:48 +01:00
Rob Shearman e47495c6e2 winspool.drv: Use CP_UNIXCP instead of CP_ACP for data that is going to or coming from system library functions. 2008-12-04 12:05:44 +01:00
Alexandre Julliard d6f7d50189 winspool.drv: Make some functions static. 2008-12-02 15:26:19 +01:00
Francois Gouget 9c5e97aa71 Assorted spelling fixes. 2008-11-24 14:25:10 +01:00
Lei Zhang aea5d3d14a winspool: Check the return results from schedule_* functions. 2008-09-29 17:22:27 -05:00
Detlef Riekenberg 6d0ffa50a0 winspool: Use the backend for AddMonitor. 2008-09-19 11:41:15 +02:00
Detlef Riekenberg f9a18b8fd7 winspool: Move DeleteMonitorW to the backend. 2008-07-11 14:22:25 +02:00
Detlef Riekenberg ee1cca5187 winspool: Move more parameter-checks for EnumMonitorsW to localspl. 2008-07-11 14:22:25 +02:00
Detlef Riekenberg 0848be6a60 winspool: Use the backend for EnumMonitors. 2008-07-02 12:36:16 +02:00
Huw Davies 4f6f415aaa winspool.drv: Make sure the printer driver registry entry exists. 2008-06-23 19:46:29 +02:00
Alexandre Julliard 8e2684fea4 winspool: Don't print NULL pointers in traces. 2008-06-23 17:10:04 +02:00
Detlef Riekenberg 473717fefd winspool: Set PrinterPorts for win3.x/win9.x compatibility. 2008-05-07 13:29:15 +02:00
Detlef Riekenberg 9e35ee852f winspool: Forward EnumPrintersA to EnumPrintersW. 2008-03-24 20:39:29 +01:00
Detlef Riekenberg 741fa21f95 winspool: Cleanup for DEVMODEdupWtoA. 2008-03-10 12:16:28 +01:00
Detlef Riekenberg 94a878414f winspool: Implement SpoolerInit. 2008-03-10 12:15:39 +01:00
Detlef Riekenberg 81dadcb1a1 winspool: Implement Level 9 for GetPrinter. 2008-02-29 12:48:50 +01:00
Detlef Riekenberg ae91e974eb winspool: Implement Level 6 + 7 for GetPrinter. 2008-02-27 14:52:25 +01:00
Rob Shearman 18d891986d winspool.drv: Fix the character count passed into RegEnumKeyExW in get_local_monitors.
len is used in RegEnumKeyExW and this takes a character count for the 
key argument, not a byte count.
2008-02-25 13:31:25 +01:00
Rob Shearman 35be5e1d1b winspool: Fix the character count passed into RegEnumKeyExW in get_local_monitors.
RegEnumKeyExW takes a character count for the key name, not a byte count.
2008-02-21 20:16:24 +01:00
Rob Shearman ee8dd6a19f Revert "winspool: Fix character count passed to RegQueryValueExW in get_local_monitors".
This reverts commit 6886a49c59.

RegQueryValueExW takes a byte count, not a character count (spotted by 
Detlef Riekenberg).
2008-02-21 20:16:20 +01:00
Rob Shearman 6886a49c59 winspool: Fix character count passed to RegQueryValueExW in get_local_monitors. 2008-02-18 12:41:36 +01:00
Detlef Riekenberg 6ec7c2dca0 winspool: Use the backend for AddPrinterDriverEx. 2008-02-08 12:48:21 +01:00
Detlef Riekenberg 36130b4d77 winspool: Use the backend for GetPrinterDriverDirectory. 2008-02-06 11:35:55 +01:00
Lionel Debroux 87b33ccb58 winspool: Fix memory leak (found by Smatch). 2007-12-17 12:31:34 +01:00
Vitaly Lipatov 914e78aeb5 winspool.drv: Fix buffer sizes. 2007-12-05 13:32:24 +01:00
Detlef Riekenberg d244a55cce winspool: Use unsigned type to avoid a compiler warning. 2007-11-07 13:34:37 +01:00
Detlef Riekenberg d6d0239f73 winspool: Error check in add_printer_driver() was to strict.
Reported by Dan Sawyer.
2007-11-06 13:02:41 +01:00
Dmitry Timoshkov d43fdc5ab0 include: Synchronize DEVMODE layout with PSDK. 2007-11-01 12:41:21 +01:00
Francois Gouget b2bc712323 Assorted spelling fixes. 2007-09-27 20:12:53 +02:00
Detlef Riekenberg 449fa0d204 winspool: Powerpoint XP expect a valid pointer on Win9x. 2007-08-30 20:05:12 +02:00
Francois Gouget a116879507 Assorted spelling fixes. 2007-08-30 12:26:02 +02:00
Detlef Riekenberg b068ce5c2c winspool: Forward AddPrinterDriver to AddPrinterDriverEx. 2007-08-24 10:57:16 +02:00
Detlef Riekenberg 9be4cc3abf winspool: Strings can be NULL in AddPrinterDriverExA. 2007-08-23 14:08:53 +02:00