ReactOS 0.4.15-dev-8236-g99f0937
ClosePrinter.c File Reference
#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winspool.h>
Include dependency graph for ClosePrinter.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Functions

 START_TEST (ClosePrinter)
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 10 of file ClosePrinter.c.

Function Documentation

◆ START_TEST()

START_TEST ( ClosePrinter  )

Definition at line 16 of file ClosePrinter.c.

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}
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
#define SetLastError(x)
Definition: compat.h:752
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
Definition: printers.c:176