Commit Graph

232 Commits

Author SHA1 Message Date
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
Detlef Riekenberg 8506125cb9 winspool: Add always the Win9x and the NT printerdriver. 2007-08-23 12:38:50 +02:00
Detlef Riekenberg 4ff59a8320 winspool: Implement AddPrinterDriverExA. 2007-08-16 12:09:40 +02:00
Detlef Riekenberg 29444b4aa3 winspool: Implement AddPrinterDriverExW. 2007-08-16 12:09:20 +02:00
Detlef Riekenberg 5c04d1fe41 winspool/tests: Add tests for EnumPrinterDrivers. 2007-08-10 13:34:45 +02:00
Detlef Riekenberg f976fc8ead winspool: Add a TRACE when wine_dlopen for SONAME_LIBCUPS failed. 2007-07-30 23:37:58 +02:00
Detlef Riekenberg 510c4dc749 winspool: Return most fields for DRIVER_INFO_4 and 6. 2007-07-27 12:43:13 +02:00
Detlef Riekenberg 7a2c4fb1df winspool: Return the full path in DRIVER_INFO_2 and 3. 2007-07-27 12:42:58 +02:00
Detlef Riekenberg a2daf754c2 winspool: Enable all levels for EnumPrinterDrivers + GetPrinterDriver. 2007-07-27 12:42:41 +02:00
Detlef Riekenberg 4b53154f36 winspool: Return the full path for the driver. 2007-07-27 12:42:24 +02:00
Detlef Riekenberg 36a6515d4e winspool: Use correct path for 16bit drivers. 2007-07-27 12:41:49 +02:00
Detlef Riekenberg 92f843d7ed winspool: Use printenv_t for GetDriverInfoFromReg. 2007-07-23 11:59:14 +02:00
Pedro Araujo Chaves Jr ffbd30dd88 winspool.drv: Fallback to the first found printer as default printer. 2007-07-05 19:54:46 +02:00
Alexandre Julliard 702d35560b configure: Make the libcups soname check depend on the header check. 2007-07-02 19:42:52 +02:00
Alexandre Julliard 5a95cfbd9c configure: Export the shared library extension instead of hardcoding .so. 2007-07-02 14:35:05 +02:00
Detlef Riekenberg 4307f6428f winspool/tests: Add tests for AddPortEx. 2007-06-18 13:36:56 +02:00
Detlef Riekenberg a2db0b83f7 winspool: Remove outdated comment. 2007-06-06 20:34:13 +02:00
Stefan Leichter 06b64a1a2e winspool.drv: Replace WINSPOOL_SHDeleteKeyW with RegDeleteTreeW. 2007-06-06 12:10:32 +02:00
Detlef Riekenberg 0c71799d02 winspool: Implement AddPortEx. 2007-06-05 10:57:16 +02:00
Detlef Riekenberg 6b7c482cb6 winspool: Avoid crash on NULL parameter (XcvOpenPort in OpenPrinter). 2007-04-30 12:37:44 +02:00
Detlef Riekenberg fc78034638 winspool: Return the correct errorcode in OpenPrinter (Xcv). 2007-04-30 12:37:37 +02:00
Michael Stefaniuc 5f62da109e janitorial: Pass HEAP_ZERO_MEMORY as flag to HeapAlloc() instead of zeroing out the allocated memory in a later call. 2007-04-25 12:26:07 +02:00
Huw Davies 09a2c89a60 winspool.drv: Implement level 1 support for EnumPrinters. 2007-04-12 16:19:39 +02:00
Detlef Riekenberg 4cd9d539dd winspool.drv: Do not cache the port names. 2007-03-29 21:02:33 +02:00
Stefan Huehner 4d1d01f266 Mark several functions as static. 2007-03-13 13:35:12 +01:00
Ken Thomases 1f420967f0 winspool.drv: Use exec() and _exit() instead of system() and exit(). 2007-02-28 21:29:34 +01:00
Andrew Talbot 54d578ba21 winspool.drv: Eliminate some W-to-A cross calls. 2007-02-28 14:03:43 +01:00
Vitaly Lipatov c9d78fc520 winspool: Constify some parameters in some functions. 2007-02-19 12:36:21 +01:00
Detlef Riekenberg 055d8d4611 winspool: Do not access NULL when HeapAlloc failed. 2007-02-15 11:14:58 +01:00
Huw Davies 37b671c59a winspool.drv: We don't need to check for the PPD Files key before using /etc/printcap. 2007-02-05 12:27:06 +01:00
Detlef Riekenberg bc85a34f50 winspool: Make fixme for PRINTER_ENUM_CONNECTIONS more silent. 2007-01-22 12:49:44 +01:00
Francois Gouget b0bde6b87c Assorted spelling fixes. 2007-01-18 12:56:52 +01:00
Francois Gouget 42c4114401 winspool.drv: Use '%u' to print GetLastError(). 2007-01-18 12:55:25 +01:00
Francois Gouget 0c31ca34cb winspool.drv: Reorder a couple of functions and remove the forward declarations. 2007-01-18 12:00:05 +01:00
Detlef Riekenberg b86a7644d9 winspool: More error checks for XcvDataW. 2007-01-16 11:18:34 +01:00
Detlef Riekenberg 619621d9ea winspool: Improve trace for ClosePrinter. 2007-01-16 11:18:25 +01:00
Detlef Riekenberg 5012fa06fc winspool: Support xcv in AddPortW. 2007-01-16 11:18:05 +01:00
Detlef Riekenberg 917b0eed55 winspool: Support xcv in DeletePortW. 2007-01-16 11:17:56 +01:00
Detlef Riekenberg e576b09a85 winspool: Support Xcv for ConfigurePortW. 2007-01-12 11:22:41 +01:00
Detlef Riekenberg 9bdd900e71 winspool: Support monitors without a name. 2007-01-12 11:22:15 +01:00
James Hawkins 6840693371 winspool.drv: Check for get_filename failure. 2007-01-11 12:05:36 +01:00
Detlef Riekenberg e82d2285f4 winspool: Implement XcvDataW. 2007-01-06 11:41:26 +01:00
Detlef Riekenberg 72b126b220 winspool: Call the Portmonitor for XcvMonitor and XcvPort in OpenPrinter. 2007-01-06 11:41:15 +01:00
Detlef Riekenberg f85b02b6ad winspool: Start support for XcvMonitor and XcvPort in OpenPrinter. 2007-01-06 11:41:04 +01:00
Detlef Riekenberg 58d1e2fa4d winspool: Support the local computername as servername for OpenPrinter. 2007-01-06 11:40:46 +01:00
Huw Davies 9108eede84 winspool.drv: Outlook 2003 relies on the buffer size returned by EnumPrintersA being big enough to hold the buffer returned by EnumPrintersW. 2006-12-04 20:18:50 +01:00
Detlef Riekenberg a7481a93c0 winspool: Load the local monitor only once. 2006-11-30 16:35:17 +01:00
Detlef Riekenberg 1f3c289a30 winspool: Implement AddPortA. 2006-11-29 14:06:31 +01:00
Detlef Riekenberg 03daa6088c winspool: Implement AddPortW. 2006-11-29 14:06:21 +01:00
Detlef Riekenberg bcfa90e182 winspool: Implement DeletePortA. 2006-11-29 14:05:58 +01:00
Detlef Riekenberg c587d1ad0d winspool: Implement DeletePortW. 2006-11-29 14:05:39 +01:00
Dmitry Timoshkov 1804900163 winspool.drv: Make some data const. 2006-11-29 12:44:19 +01:00
Andrew Talbot 972826b267 winspool.drv: Cast-qual warning fix + make function static. 2006-11-24 12:56:23 +01:00
Alexandre Julliard 2731998ae6 include: Get rid of heap.h. 2006-11-17 15:29:40 +01:00
Detlef Riekenberg 6d88e4352b winspool: Implement ConfigurePortA. 2006-11-09 12:48:44 +01:00
Detlef Riekenberg a44e0ac6e3 winspool: Implement ConfigurePortW. 2006-11-09 12:48:33 +01:00
Huw Davies d510bdc71b winspool.drv: Associate a printer driver with each printer, rather than share a common one between all printers. 2006-11-08 11:25:10 +01:00
Huw Davies 1ad05ac701 winspool.drv: Fix AddPrinterDriverA so that the strings actually get written.
Include the size of the terminating zero in set_reg_szW.
2006-11-08 11:24:56 +01:00
Huw Davies 388fd47ce2 winspool.drv: Implement DeletePrinterDriverExW. 2006-11-08 11:23:56 +01:00
Huw Davies 7ce85a8d60 winspool.drv: Forward DeletePrinterDriverExA -> DeletePrinterDriverExW. 2006-11-08 11:23:47 +01:00
Huw Davies d4fb1c3869 winspool.drv: Forward DeletePrinterDriver -> DeletePrinterDriverEx. 2006-11-08 11:23:40 +01:00
Detlef Riekenberg ecce2d898b winspool: Implement EnumPortsA. 2006-11-06 13:47:03 +01:00
Detlef Riekenberg 412acdeb79 winspool: Implement EnumPortsW. 2006-11-06 13:46:52 +01:00
Detlef Riekenberg 0bd336a573 winspool: EnumPorts: Read driver from registry. 2006-11-06 13:44:07 +01:00
Alexandre Julliard b0ea577ae5 Avoid usage of sizeof in traces that causes warnings on MacOSX. 2006-10-20 12:16:45 +02:00
Hans Leidekker 61faa6bb11 winspool.drv: Win64 printf format warning fixes. 2006-10-13 12:08:52 +02:00
Hans Leidekker ab85b653f5 winspool.drv: Cast-qual warnings fix. 2006-10-06 17:49:53 +02:00
Detlef Riekenberg 1e2b9b7d36 winspool: Fix missing backslash. 2006-09-20 11:18:22 +02:00
Detlef Riekenberg ec1c7cc0d3 winspool: Manage loaded monitors in a list. 2006-09-08 13:43:57 +02:00
Detlef Riekenberg 1e177382a3 winspool: Minimal load/unload printmonitors; use it to get a test working. 2006-09-08 13:41:22 +02:00
Andrew Talbot 02c04ea252 winspool.drv: Write-strings warnings fix. 2006-08-23 16:54:06 +02:00
Andrew Talbot 8c56ffdde0 winspool.drv: Write-strings warning fix. 2006-08-17 11:24:15 +02:00
Detlef Riekenberg 89ed2d973d winspool/tests: Tests for EnumForms and set an error value in our stub. 2006-06-21 13:40:46 +02:00
Detlef Riekenberg dde6d8b185 winspool: An empty string as server name is valid for AddPrinterDriver. 2006-06-21 12:11:03 +02:00
Detlef Riekenberg 698a8a0b86 winspool: AddMonitor: Test the driver entry before return an error. 2006-06-19 09:22:02 +02:00
Huw Davies 7afe18ec27 printing: Don't limit the printer name length to CCHDEVICENAME characters. 2006-06-15 18:05:58 +02:00
Detlef Riekenberg 94543cb630 winspool: Add GetPrintProcessorDirectoryA. 2006-06-09 21:13:00 +02:00
Detlef Riekenberg f0a62dd633 winspool.drv: Add GetPrintProcessorDirectoryW. 2006-06-02 11:26:24 +02:00
Detlef Riekenberg aff1b33192 winspool: Documentation for GetPrintProcessorDirectory. 2006-05-28 18:27:11 +02:00
Alexandre Julliard 3098199e0b winspool: Renamed the directory to winspool.drv. 2006-05-23 17:10:52 +02:00