[SPOOLSS]
authorColin Finck <colin@reactos.org>
Mon, 20 Jul 2015 16:15:52 +0000 (16:15 +0000)
committerColin Finck <colin@reactos.org>
Mon, 20 Jul 2015 16:15:52 +0000 (16:15 +0000)
commit3c798d710773ac83f24fb0362812aeeebe8f1094
tree48eab648230bb1dd126a23d533b47c63e76207c9
parent087c85a5d32fb490e960b94abb37517e17de9d44
[SPOOLSS]
Rewrite RevertToPrinterSelf and ImpersonatePrinterClient.
In contrast to what I first thought, they shall also work when the thread has no impersonation token. This occurs for example when spooler functions are called from a thread that doesn't originate from a RPC request.
The rewritten functions also provide proper error codes.

The native behaviour of these functions was verified through API Monitoring under Windows.

svn path=/branches/colins-printing-for-freedom/; revision=68472
reactos/win32ss/printing/base/spoolss/context.c