[LOCALSPL_APITEST]
authorColin Finck <colin@reactos.org>
Tue, 9 Jun 2015 13:22:25 +0000 (13:22 +0000)
committerColin Finck <colin@reactos.org>
Tue, 9 Jun 2015 13:22:25 +0000 (13:22 +0000)
commit1e363204d67b9b58845dd2770d904218b7d87601
treefade2ff72caa815f07be274f882a950327c28626
parentf2a66788f8fae03f0c7cdec943081ee4a2745bb7
[LOCALSPL_APITEST]
- Add more tests for fpEnumPrinters.
  For some reason, using SEH here works only once. We experience a hang in the testing process when you run the test again for a second time without restarting spoolsv. Needs more investigation.
- Ensure that the spooler service is running before starting any testing.
- Do proper cleanup in every case.

[LOCALSPL]
- Implement LocalEnumPrinters level 1 based on the API-Tests.
- Use DllAllocSplMem/DllFreeSplMem instead of HeapAlloc/HeapFree.
- Use AllocSplStr with DllFreeSplStr now that DuplicateStringW is gone.
- Use _countof where applicable.

[SPOOLSS]
- Found out that I was not the only one needing a wcsdup equivalent. My DuplicateStringW from localspl is actually exported as AllocSplStr in spoolss.
  This is actually part of a range of undocumented memory functions in spoolss, so implement and document AllocSplStr, DllAllocSplMem, DllFreeSplMem, DllFreeSplStr, ReallocSplMem and ReallocSplStr.
  Information about some of them was gathered through black box testing and DDK samples (down to Win95 DDK), which at least contained prototypes of them.
- Implement SplInitializeWinSpoolDrv based on the API-Test and simply return FALSE for SplIsUpgrade.

[SPOOLSS_APITEST]
- Add a test for ReallocSplStr, which was actually the most undocumented function of spoolss' memory functions.

[WINSPOOL]
SplInitializeWinSpoolDrv shows that we can't just auto-assign an ordinal to all winspool.drv functions. We even need to export some nameless functions by ordinal only.
Redo the whole .spec file based on the ordinals found in Windows Server 2003's winspool.drv. Trust WINE for the nameless stubs.

svn path=/branches/colins-printing-for-freedom/; revision=68089
22 files changed:
reactos/win32ss/printing/base/spoolss/CMakeLists.txt
reactos/win32ss/printing/base/spoolss/main.c
reactos/win32ss/printing/base/spoolss/memory.c [new file with mode: 0644]
reactos/win32ss/printing/base/spoolss/precomp.h
reactos/win32ss/printing/base/spoolss/spoolss.spec
reactos/win32ss/printing/base/winspool/winspool.spec
reactos/win32ss/printing/include/spoolss.h
reactos/win32ss/printing/providers/localspl/CMakeLists.txt
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
reactos/win32ss/printing/providers/localspl/tools.c
rostests/apitests/localspl/dll/CMakeLists.txt
rostests/apitests/localspl/dll/fpEnumPrinters.c
rostests/apitests/localspl/dll/main.c
rostests/apitests/localspl/tests.c
rostests/apitests/spoolss/CMakeLists.txt
rostests/apitests/spoolss/ReallocSplStr.c [new file with mode: 0644]
rostests/apitests/spoolss/SplInitializeWinSpoolDrv.c
rostests/apitests/spoolss/testlist.c