mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 12:53:33 +00:00
3a69fd4e96
* Pass the correct handle to _RpcGetPrinter in GetPrinterW. * Pass an empty string instead of a NULL pointer as wszComputerName to the GetPrinterLevel* functions, because this variable is later used as source for StringCbCopyExW. * Don't check for GetLastError() == ERROR_SUCCESS in tests. Windows apparently only sets the last error in case of failure. The Printing code should probably be changed similarly in a future commit. Should fix CORE-14072
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
/*
|
|
* PROJECT: ReactOS Print Spooler DLL API Tests
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: Test list
|
|
* COPYRIGHT: Copyright 2015-2017 Colin Finck (colin@reactos.org)
|
|
*/
|
|
|
|
#define __ROS_LONG64__
|
|
|
|
#define STANDALONE
|
|
#include <apitest.h>
|
|
|
|
extern void func_ClosePrinter(void);
|
|
extern void func_EnumPrinters(void);
|
|
extern void func_EnumPrintProcessorDatatypes(void);
|
|
extern void func_GetDefaultPrinterA(void);
|
|
extern void func_GetDefaultPrinterW(void);
|
|
extern void func_GetPrinter(void);
|
|
extern void func_GetPrinterData(void);
|
|
extern void func_GetPrintProcessorDirectoryA(void);
|
|
extern void func_GetPrintProcessorDirectoryW(void);
|
|
extern void func_IsValidDevmodeA(void);
|
|
extern void func_IsValidDevmodeW(void);
|
|
extern void func_OpenPrinter(void);
|
|
extern void func_StartDocPrinter(void);
|
|
|
|
const struct test winetest_testlist[] =
|
|
{
|
|
{ "ClosePrinter", func_ClosePrinter },
|
|
{ "EnumPrinters", func_EnumPrinters },
|
|
{ "EnumPrintProcessorDatatypes", func_EnumPrintProcessorDatatypes },
|
|
{ "GetDefaultPrinterA", func_GetDefaultPrinterA },
|
|
{ "GetDefaultPrinterW", func_GetDefaultPrinterW },
|
|
{ "GetPrinter", func_GetPrinter },
|
|
{ "GetPrinterData", func_GetPrinterData },
|
|
{ "GetPrintProcessorDirectoryA", func_GetPrintProcessorDirectoryA },
|
|
{ "GetPrintProcessorDirectoryW", func_GetPrintProcessorDirectoryW },
|
|
{ "IsValidDevmodeA", func_IsValidDevmodeA },
|
|
{ "IsValidDevmodeW", func_IsValidDevmodeW },
|
|
{ "OpenPrinter", func_OpenPrinter },
|
|
{ "StartDocPrinter", func_StartDocPrinter },
|
|
|
|
{ 0, 0 }
|
|
};
|