2 * PROJECT: ReactOS Spooler Router API Tests
3 * LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
4 * PURPOSE: Tests for SplInitializeWinSpoolDrv
5 * COPYRIGHT: Copyright 2015 Colin Finck <colin@reactos.org>
10 #define WIN32_NO_STATUS
15 START_TEST(SplInitializeWinSpoolDrv
)
20 hWinspool
= LoadLibraryW(L
"winspool.drv");
23 skip("Could not load winspool.drv, last error is %lu!\n", GetLastError());
27 ok(SplInitializeWinSpoolDrv(Table
), "SplInitializeWinSpoolDrv returns FALSE!\n");
28 ok(Table
[0] == GetProcAddress(hWinspool
, "OpenPrinterW"), "Table[0] is %p\n", Table
[0]);
29 ok(Table
[1] == GetProcAddress(hWinspool
, "ClosePrinter"), "Table[1] is %p\n", Table
[1]);
30 ok(Table
[2] == GetProcAddress(hWinspool
, "SpoolerDevQueryPrintW"), "Table[2] is %p\n", Table
[2]);
31 ok(Table
[3] == GetProcAddress(hWinspool
, "SpoolerPrinterEvent"), "Table[3] is %p\n", Table
[3]);
32 ok(Table
[4] == GetProcAddress(hWinspool
, "DocumentPropertiesW"), "Table[4] is %p\n", Table
[4]);
33 ok(Table
[5] == GetProcAddress(hWinspool
, (LPSTR
)212), "Table[5] is %p\n", Table
[5]);
34 ok(Table
[6] == GetProcAddress(hWinspool
, (LPSTR
)213), "Table[6] is %p\n", Table
[6]);
35 ok(Table
[7] == GetProcAddress(hWinspool
, (LPSTR
)214), "Table[7] is %p\n", Table
[7]);
36 ok(Table
[8] == GetProcAddress(hWinspool
, (LPSTR
)215), "Table[8] is %p\n", Table
[8]);