Commit Graph

142 Commits

Author SHA1 Message Date
Francois Gouget 3efacb0acf Remove extra #include directives from winspool.h. 2003-01-07 23:09:22 +00:00
Dimitrie O. Paun 297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Stefan Leichter facaee4fd0 Moved implementation of GetPrinterDriverDirectory from ascii to unicode. 2003-01-03 03:04:46 +00:00
Alexandre Julliard 37516b3621 The name of the driver should be the 16-bit one in case the app tries
to load it.
2002-12-24 00:29:40 +00:00
Dimitrie O. Paun 6d267e93f2 Added stubs for {Start,End}{Doc,Page}Printer. 2002-12-17 21:00:38 +00:00
Alexandre Julliard dbf8b78acd Added .spec.def files. 2002-12-12 22:04:04 +00:00
Marcus Meissner f061f76704 Do not link against -lcups directly, but dynamically load it if
present (just like freetype etc.)
2002-11-12 02:22:24 +00:00
Alexandre Julliard 1e1313d54c Made the dll entry point default to DllMain and removed most of the
'init' spec file declarations.
2002-11-04 23:53:41 +00:00
Michael Stefaniuc ea335dd036 Compile the winspool dll with STRICT defined. 2002-10-22 00:47:33 +00:00
Alexandre Julliard 23bb3715f7 Added support for building certain dlls with -DSTRICT.
Added -DWINE_NO_STRICT flag to dlls that don't support STRICT yet.
2002-10-18 23:46:28 +00:00
Alexandre Julliard 613ead7f0f Fixed some handle conversions in prevision of void* handles. 2002-10-04 00:27:10 +00:00
Marcus Meissner 228a2b3ae5 New CUPS libraries return "none" as default printer instead of NULL. 2002-09-12 00:52:59 +00:00
Marcus Meissner 75e4e943e6 If the default CUPS printer has no ppd file, just use the first
printer that has one as Windows default printer.
Support PRINTER_ENUM_CONNECTIONS in the default way.
2002-09-09 19:19:18 +00:00
Alexander Gottwald 9c071eaefd Avoid crash if no default cups printer is set. 2002-08-27 22:33:09 +00:00
Alexandre Julliard 77afd6c47e Made some more spec file entries optional or unnecessary.
Fixed a few DLLName/DLLFileName mismatches.
2002-06-21 19:15:45 +00:00
Alexandre Julliard 1c40426e95 Removed install_libdir targets and centralized the symlinks creation
in the main dll makefile.
2002-06-14 02:09:08 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Vincent Béron 8e2cbcab7b Fixed warnings. 2002-05-28 22:42:11 +00:00
Alexandre Julliard 8c08ceb56c Replaced -dosver and -winver options by config file parameters. 2002-05-23 19:35:18 +00:00
Andreas Mohr 11b35c0b4c Better error messages. 2002-05-20 18:11:08 +00:00
Alexandre Julliard 2ab7625934 Removed most imports of ntdll since we no longer import Wine internal
functions from there.
2002-05-17 03:37:12 +00:00
Bill Medland dff78edb02 Remove leading whitespace from printcap entries. 2002-05-17 00:10:15 +00:00
Alexandre Julliard ad53383f9b Added winebuild support for generating a .dbg.c file containing the
debug channels definitions.
Made win32 the default type for spec files.
Ignore C compiler in winebuild so we can simply pass it $(DEFS).
Removed type win32 and debug_channels from spec files.
Fixed winebuild to always generate correct C identifiers (reported by
Vincent Béron).
2002-05-14 20:54:58 +00:00
Alexandre Julliard 67371bcc8d Added -res option to specify resources on winebuild command-line.
Added -exe mode to generate a .spec.c for an exe without having to
provide a .spec.
Removed some no longer needed spec files.
Removed .dll extension in makefiles import specifications.
2002-05-11 23:06:32 +00:00
Alexandre Julliard 32459912dc Moved imports specification from the .spec into the Makefile so that
it can be used on platforms that don't build a .spec.c file.
2002-05-09 00:05:48 +00:00
Alexandre Julliard c1bfca04e1 Changed builtin dlls file names to make it clear they are not normal
Unix libraries, and install them in $libdir/wine instead of $libdir to
avoid name conflicts in /usr/lib.
2002-03-20 22:19:06 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Andreas Mohr 8bc7f16caa Spelling/alignment fixes. 2002-02-27 01:34:08 +00:00
Patrik Stridvall 651a8ba880 Added some defines for compatibility with Windows headers. 2002-02-15 19:12:35 +00:00
Patrik Stridvall 57e5784c21 Move __stdcall/__cdecl to the right place. 2002-02-02 18:42:11 +00:00
Patrik Stridvall 74e4d21ebe Avoid wildcards in .cvsignore. 2002-01-29 03:05:12 +00:00
Mark G. Adams a0324f7172 Add GetDefaultPrinter() functions. 2002-01-22 00:49:24 +00:00
Dmitry Timoshkov 588200fcee Force ordinal allocation start from 100 as in Windows. 2002-01-15 20:25:40 +00:00
Gerard Patel 14c9429698 Fix RegSetValueEx calls and crash when DriverName="" in registry. 2001-10-28 21:16:38 +00:00
Francois Gouget b60c4ce0f0 Don't print NULL strings (crashes on Solaris).
Small code maintainability tweak in ShellExecuteExA.
Two typo fixes in winmm.
2001-10-14 16:15:05 +00:00
Hidenori Takeshima b544637ce7 Use a default DevMode if no DevMode information is available in
registry.
2001-09-07 18:35:58 +00:00
Huw D M Davies 1e0b41ba1c OpenPrinter should fail if pPrinterName is "". 2001-09-07 15:26:51 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Patrik Stridvall 3ca9823941 Documentation ordinal fixes. 2001-06-20 23:03:14 +00:00
Patrik Stridvall 8b216b3d02 Documentation ordinal fixes. 2001-06-19 18:20:47 +00:00
Patrik Stridvall dae8de69e2 Documentation ordinal fixes (using winapi_fixup). 2001-06-13 20:13:18 +00:00
Marcus Meissner 6d3e81b9e0 Use older cupsGetPrinters() API so we support CUPS 1.0.x too (as found
in Debian Potato).
Only set the default printer if there is no entry yet or it is not
WINEPS driven.
2001-05-18 20:57:36 +00:00
Ian Pilcher 5328782d88 Disable /etc/printcap parsing if no PPD file specified. 2001-05-16 20:05:40 +00:00
Marcus Meissner 0c63012b6d Implemented /etc/printcap based printing support.
Changed 'CUPS:printername' to 'LPR:printername'.
Some fixes in AddPrinterW().
2001-05-09 17:10:41 +00:00
Marcus Meissner ab8b7dba77 Added CUPS printing support. 2001-04-27 18:02:46 +00:00
Alexandre Julliard e1635e9a63 Removed dependency on comctl32. 2001-02-28 05:26:08 +00:00
Ian Pilcher ccfe6e9c9b Implement EnumPrinterDataEx{A|W}. 2001-02-21 04:00:40 +00:00
Francois Gouget b87a83866f Change the callback declarations to a safer format. 2001-02-12 03:51:04 +00:00
Huw D M Davies d2b850e8aa Implement Set/GetPrinterData[Ex].
Remove ordinals from winspool.drv.spec .
2001-02-12 01:26:47 +00:00
Huw D M Davies 87f98a5831 Handle the EnumPrinters() flag PRINTER_ENUM_DEFAULT in the same way
that NT does - that is ignore it and return TRUE.
2001-01-09 20:52:17 +00:00
Alexandre Julliard f6168db690 Fixed some warnings. 2000-12-13 20:03:53 +00:00
Patrik Stridvall 2b3aa616e8 Added/modified documentation for function arguments. 2000-12-01 23:58:28 +00:00
David Elliott ea186796eb Remove libXXXX.so.1.0 lines from .cvsignore files. 2000-11-30 19:57:34 +00:00
Alexandre Julliard 49556bcbf5 Cleaned up some more dependencies on Wine internal functions. 2000-11-29 18:38:24 +00:00
Alexandre Julliard 89b18a7e1a Moved EnumPortsA to dlls/winspool. 2000-11-28 22:33:46 +00:00
Dimitrie O. Paun 529da54394 Require {DECLARE,DEFAULT}_DEBUG_CHANNEL statements to end in a ; 2000-11-27 23:54:25 +00:00
Alexandre Julliard 5b971f009a Moved wsprintf functions to dlls/user. 2000-11-26 22:39:50 +00:00
Alexandre Julliard 8c540c657e Replaced a few internal functions by exported ones. 2000-11-13 04:16:05 +00:00
Stefan Leichter a2053ab1c5 Made WINSPOOL_GetPrinterDriver work again. 2000-11-12 03:39:53 +00:00
Stefan Leichter 695f2394cf Corrected used registry key. 2000-11-10 01:04:29 +00:00
Stefan Leichter ca1661c3e1 Enable the functions AddPrinterW, WINSPOOL_GetPrinterDriver,
AddPrinterDriverA, WINSPOOL_EnumPrinterDrivers to distinguish the
registry entrys of Win9[58] and WinNT printer drivers.
2000-11-06 05:26:00 +00:00
Alexandre Julliard eb58e1d597 Declare debug channels in all dlls that need them; added imports of
ntdll where necessary.
2000-11-05 04:53:07 +00:00
Stefan Leichter 5cfe17702e - moved some code from WINSPOOL_GetPrinterDriver into new function
WINSPOOL_GetDriverInfoFromReg
- bug fix in function GetPrinterDirectoryW: free local variable not
  the one from function interface
- implemented EnumPrinterDriversA|W
2000-09-29 21:05:11 +00:00
Alexandre Julliard 83f52d11c1 Moved all Win16 definitions out of the standard Windows headers. 2000-09-26 22:20:14 +00:00
Albert den Haan 343dd1a1b9 Remove unused critical section global variable PRINT32_RegistryBlocker. 2000-08-18 23:04:12 +00:00
Gerard Patel aaaee1be84 Add an error message if devmode structure in registry is invalid;
attempt to provide plausible values.
2000-08-16 12:43:00 +00:00
Alexandre Julliard c7e7df8b17 Replaced all lstr* calls from inside Wine code by their str* equivalent. 2000-08-14 14:41:19 +00:00
Alexandre Julliard e514103971 Added imports of kernel32.dll where necessary. 2000-08-06 03:47:29 +00:00
Alexandre Julliard 6c9d83aa4c Added imports of user32/gdi32/kernel32 wherever necessary. 2000-08-03 00:04:24 +00:00
Andreas Mohr 2caee712a2 Spelling fixes. 2000-07-16 15:44:22 +00:00
Francois Gouget 105e6adf16 Merged DeviceCapabilities and DeviceCapabilitiesA. 2000-06-23 15:34:52 +00:00
Alexandre Julliard 6953d6756c For dlls, derive SPEC_SRCS from MODULE and ALTNAMES. 2000-06-20 20:24:14 +00:00
Huw D M Davies 7aaabc3f14 Move winspool to unicode.
Minor bug fixes.
2000-05-25 23:02:46 +00:00
Eric Pouech 44af98cb36 Fixed winspool(.drv) loading. 2000-04-25 19:57:27 +00:00
Patrik Stridvall 2d6457c11a Added/fixed some documentation reported by winapi_check. 2000-03-28 20:22:59 +00:00
Alexandre Julliard d0edc5fecd Moved dll-specific make rules to a separate Makedll.rules file. 2000-03-04 22:31:27 +00:00
Ulrich Czekalla 6a80c8a260 This patch initializes the return buffer used in GetPrinterDriverA to
zeros. This prevents buffer overruns caused by accessing garbage data.
Some improvements to the NULL check patch.

Gautam Jain
EnumPrinters is not returning the number of printers found in case the
parameter dwLevel is 1.
2000-02-25 21:38:17 +00:00
Alexandre Julliard 318f4cefd2 Build most dlls as separate shared libraries. 2000-01-31 05:02:49 +00:00
Huw D M Davies 6d149d85d8 Use RegQueryInfoKey to count number of printers. 1999-11-28 19:47:58 +00:00
Huw D M Davies cb6aa38d2f Rewrite of EnumPrinters. 1999-10-31 17:34:31 +00:00
Patrik Stridvall d7da486c96 Added spec file declarations for already implemented functions. 1999-10-24 21:35:16 +00:00
Eric Pouech d629ca4c6c Added missing (and now required) filename directive. 1999-10-13 16:01:10 +00:00
Huw D M Davies c7665ebf40 Fixes DeviceCapabilities for DC_PAPERSIZE.
Various fixes for OpenPrinter and EnumPrinters.
Separation of GetPrinter in preparation for unification with EnumPrinters.
1999-09-10 14:37:29 +00:00
Huw D M Davies 685fa2d22d Added loads of types, defines and declarations to winspool.h. 1999-09-04 14:30:33 +00:00
Huw D M Davies 44d6fec90e Fix off by one error in WINSPOOL_GetOpenedPrinterA. 1999-09-03 12:20:57 +00:00
Thuy Nguyen 6374cd231c Replaced a static ten element array with a dynamic pointer array. 1999-08-15 16:34:22 +00:00
Ulrich Weigand daed93ee99 Moved .spec files to corresponding dlls/ directory. 1999-07-25 13:14:13 +00:00
Huw D M Davies 284d63ca72 Let through more flags to EnumPrinters.
Fixes for GetPrinter/GetPrinterDriver.
1999-07-24 10:12:41 +00:00
Huw D M Davies bb14056c16 EnumJobs stub.
Update graphics/psdrv/README.
Add warnings to DRIVER_GetDriverName.
1999-07-23 19:23:49 +00:00
Huw D M Davies 450270bb03 Implemented GetPrinterA and GetPrinterDriverA. 1999-07-10 11:58:50 +00:00
Huw D M Davies ee2d9d5849 Implemented AddPrinterA, AddPrinterDriverA and GetPrinterDriverDirectory
Moved some 16bit GDI function declarations from winspool.h -> wingdi16.h
1999-05-22 18:53:56 +00:00
Huw D M Davies e39b676ae9 Implement DocumentProperties, DeviceCapabilities, beginnings of
Open/Get/ClosePrinter.  Additions to PSDRV_DeviceCapabilities.
Split off WINSPOOL into its own directory.
Several functions added to DC_Funcs.
Based largely on a patch by Pascal Lessard <pascal@macadamian.com>
1999-05-17 16:20:51 +00:00