Commit Graph

45 Commits

Author SHA1 Message Date
Huw Davies 649821071c localspl: Implement GetForm().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-19 17:05:02 +02:00
Huw Davies bb51415904 localspl: Implement EnumForms().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-19 17:05:02 +02:00
Huw Davies 7d4a7f8557 winspool: Forward the unicode forms functions to localspl.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-19 16:58:26 +02:00
Alexandre Julliard ade15558db localspl: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-26 11:40:42 +01:00
Michael Stefaniuc b1e6ce9171 localspl: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 18:39:39 +01:00
Dmitry Timoshkov 29ecb6f4bc localspl: Add MONITORREG stub callbacks for InitializePrintMonitor2.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:56 +02:00
Dmitry Timoshkov 01d6835835 localspl: Fix MONITOR2 callback prototypes.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:56 +02:00
Dmitry Timoshkov 24a16c0037 localspl: Fix MONITOR2.cbSize calculation when converting from MONITOREX.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:56 +02:00
Dmitry Timoshkov e620a3f359 localspl: Use the monitor handle returned by InitializePrintMonitor2.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:56 +02:00
Dmitry Timoshkov db4d01e191 localspl: Unload monitor in DeleteMonitor.
Some print monitors are very sensitive to loads/unloads being done
in a quick succession like AddMonitor() does, and that even leads to
crashes because the monitor I have here creates a thread on load and
when the thread starts - the monitor dll is already unloaded.
A solution to this is moving the monitor unloading to DeleteMonitor.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-06 13:08:40 +02:00
Dmitry Timoshkov d9518240c3 localspl: Add support for monitors providing the MONITOR2 interface.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-06 13:08:37 +02:00
Dmitry Timoshkov 64a5720d25 localspl: AddMonitor should create registry entry for a monitor before initializing it.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-06 13:08:33 +02:00
Dmitry Timoshkov c113c5b9e7 localspl: Remove useless NULL checks from AddMonitor trace.
AddMonitor dereferences pMonitors later without any checks.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-05 19:52:22 +02:00
Alexandre Julliard 8c98417cfd localspl: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-10 10:55:52 +02:00
Michael Stefaniuc 84b7a8f05e localspl: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:38:46 +02:00
Michael Stefaniuc b5f4647f90 localspl: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 10:00:03 +01:00
Detlef Riekenberg 54e52897f8 localspl: Clear LastError on success in AddMonitor.
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-08 10:46:54 +01:00
Detlef Riekenberg 5d6f96fd9d localspl: Accept valid environments in AddMonitor.
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-02 19:33:26 +01:00
Francois Gouget dc9684b663 localspl: Remove uneeded NONAMELESSUNION directives. 2015-03-13 21:57:29 +09:00
André Hentschel f1cd8d4ac9 localspl: Remove unused strings (Clang). 2014-12-02 10:31:07 +01:00
Frédéric Delanoy 91f2435469 Assorted spelling fixes. 2014-01-09 17:39:59 +01:00
Frédéric Delanoy 6a512d0d3c localspl: Use BOOL type where appropriate. 2013-11-19 18:48:47 +01:00
Frédéric Delanoy da6c728195 Assorted spelling fixes. 2013-11-07 19:01:20 +01:00
Huw Davies 69164eac3e localspl: Have GetPrinterDriverDirectory create the driver directory.
This is needed so that during wineprefix creation, winspool.drv can succeed in printer initialisation.
2012-06-14 18:20:33 +02:00
Huw Davies af8228f02a localspl: Remove a bunch of casts. 2012-06-13 21:35:37 +02:00
Huw Davies 25bb808cf1 localspl: Calling AddPrinterDriver on an existing driver should succeed. 2012-05-17 17:44:24 +02:00
Huw Davies 67886fe54f localspl: Only store the file part of the filenames in the registry. 2012-05-16 18:30:26 +02:00
André Hentschel 975d9ed97a localspl: Fix printing a NULL string. 2011-09-01 18:06:36 +02:00
Mikhail Maroukhine 1637d402d9 localspl: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:14:11 +02:00
Detlef Riekenberg 836ca78fd5 localspl: Accept environment 'Windows IA64'. 2009-10-23 15:54:07 +02:00
Marcus Meissner 1aee359542 localspl: Check for NULL return from HeapAlloc. 2009-10-19 14:43:57 +02:00
Detlef Riekenberg 065599a4dc localspl: Implement fpGetPrintProcessorDirectory. 2009-10-16 17:49:54 +02:00
Detlef Riekenberg 212d1e36bf localspl: Implement fpEnumPrintProcessors. 2009-10-15 12:06:18 +02:00
Detlef Riekenberg cb6f9bbdb2 localspl: Implement fpAddPortEx. 2009-09-30 14:31:58 +02:00
Detlef Riekenberg 9d5377f50f localspl: Implement fpAddPort. 2009-09-29 14:50:17 +02:00
Detlef Riekenberg 650f85174a localspl: Fix type of a WCHAR buffer. 2009-09-29 14:50:02 +02:00
Detlef Riekenberg 068e861d06 localspl: Unload only portmonitors in monitor_unloadall. 2009-09-29 14:49:51 +02:00
Detlef Riekenberg a9c5145972 localspl: Implement fpDeletePort. 2009-09-28 17:32:05 +02:00
Detlef Riekenberg 5ec8387d8f localspl: Implement fpConfigurePort. 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 b0b8a2fb8b localspl: Support XcvMonitor/XcvPort in OpenPrinter. 2009-05-06 13:24:33 +02:00
Detlef Riekenberg b4120c7f27 localspl: Start implementation of OpenPrinter/ClosePrinter. 2009-05-06 13:24:06 +02:00
Detlef Riekenberg e1413faeb7 localspl: Return 0 for the local computer. 2009-03-13 13:21:08 +01:00
Detlef Riekenberg 857e942992 winspool: Move EnumPortsW to the backend. 2009-02-09 14:49:00 +01:00
Detlef Riekenberg 51f078bd4a localspl: Move provider functions to a seperate file. 2009-02-09 14:48:53 +01:00