ReactOS
0.4.16-dev-470-g91b8923
ClosePrinter.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Print Spooler DLL API Tests
3
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4
* PURPOSE: Tests for ClosePrinter
5
* COPYRIGHT: Copyright 2015 Colin Finck (colin@reactos.org)
6
*/
7
8
#include <
apitest.h
>
9
10
#define WIN32_NO_STATUS
11
#include <
windef.h
>
12
#include <
winbase.h
>
13
#include <
wingdi.h
>
14
#include <
winspool.h
>
15
16
START_TEST
(
ClosePrinter
)
17
{
18
SetLastError
(0xDEADBEEF);
19
ok
(!
ClosePrinter
(
NULL
),
"ClosePrinter returns TRUE!\n"
);
20
ok
(
GetLastError
() ==
ERROR_INVALID_HANDLE
,
"ClosePrinter returns error %lu!\n"
,
GetLastError
());
21
}
apitest.h
ok
#define ok(value,...)
Definition:
atltest.h:57
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
NULL
#define NULL
Definition:
types.h:112
SetLastError
#define SetLastError(x)
Definition:
compat.h:752
ERROR_INVALID_HANDLE
#define ERROR_INVALID_HANDLE
Definition:
compat.h:98
winbase.h
GetLastError
DWORD WINAPI GetLastError(void)
Definition:
except.c:1042
windef.h
wingdi.h
winspool.h
ClosePrinter
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
Definition:
printers.c:176
modules
rostests
apitests
winspool
ClosePrinter.c
Generated on Wed Jan 15 2025 06:08:15 for ReactOS by
1.9.6