[WINSPOOL]
authorColin Finck <colin@reactos.org>
Tue, 23 Jun 2015 13:46:14 +0000 (13:46 +0000)
committerColin Finck <colin@reactos.org>
Tue, 23 Jun 2015 13:46:14 +0000 (13:46 +0000)
commit7e4bcf78c4b3fffc5110d2d4daa029f337be4c9b
tree1851240cb9deb5b446a46b726b4144aef4d2d487
parent5df5a009e20968dbca3fc8083af9a41cabcf4d0a
[WINSPOOL]
Don't rely on pure magic to transmit the error code of the RPC call to the calling application. Instead use SetLastError on the return value of the call (this is what all these DWORD return values are for!)

[SPOOLSV]
For every RPC function, return the error code of the called Spooler Router function instead of the error code of RpcRevertToSelf.

[LOCALSPL, WINPRINT]
- Change the code structure in every function called from the Spooler Router to always set an error code, especially ERROR_SUCCESS on success.
- Store Attributes and Status values for a local printer.
- Fail in LocalAddJob if an invalid handle has been supplied or the printer is set to do direct printing.

svn path=/branches/colins-printing-for-freedom/; revision=68247
15 files changed:
reactos/win32ss/printing/base/spoolss/main.c
reactos/win32ss/printing/base/spoolsv/init.c
reactos/win32ss/printing/base/spoolsv/jobs.c
reactos/win32ss/printing/base/spoolsv/printers.c
reactos/win32ss/printing/base/spoolsv/printprocessors.c
reactos/win32ss/printing/base/winspool/jobs.c
reactos/win32ss/printing/base/winspool/main.c
reactos/win32ss/printing/base/winspool/printers.c
reactos/win32ss/printing/base/winspool/printprocessors.c
reactos/win32ss/printing/processors/winprint/main.c
reactos/win32ss/printing/providers/localspl/jobs.c
reactos/win32ss/printing/providers/localspl/main.c
reactos/win32ss/printing/providers/localspl/precomp.h
reactos/win32ss/printing/providers/localspl/printers.c
reactos/win32ss/printing/providers/localspl/printprocessors.c