[SPOOLSS]
authorColin Finck <colin@reactos.org>
Thu, 13 Apr 2017 16:48:40 +0000 (16:48 +0000)
committerColin Finck <colin@reactos.org>
Thu, 13 Apr 2017 16:48:40 +0000 (16:48 +0000)
commita737c007e802ee94140db714aff3573dd6e262c2
treea7d9402266d9a47c63d763ec7ff406e8c2e16097
parent6790e320bd9378275bbb300552fb82e20a39929a
[SPOOLSS]
Implement the undocumented AlignRpcPtr and UndoAlignRpcPtr functions used by many Rpc* functions in spoolsv according to traced callchains.
I could reverse engineer them entirely using rohitab.com's API Monitor and black-box testing.
I also add documented tests covering all cases I found out. We now pass 17/17 tests on Windows Server 2003 and ReactOS.

Also const-ify a parameter in PackStrings.

svn path=/trunk/; revision=74297
reactos/win32ss/printing/base/spoolss/memory.c
reactos/win32ss/printing/base/spoolss/spoolss.spec
reactos/win32ss/printing/base/spoolss/tools.c
reactos/win32ss/printing/include/spoolss.h
rostests/apitests/spoolss/AlignRpcPtr.c [new file with mode: 0644]
rostests/apitests/spoolss/CMakeLists.txt
rostests/apitests/spoolss/testlist.c