mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
22 lines
605 B
C
22 lines
605 B
C
|
/*
|
||
|
* PROJECT: ReactOS Print Spooler DLL API Tests
|
||
|
* LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
|
||
|
* PURPOSE: Tests for ClosePrinter
|
||
|
* COPYRIGHT: Copyright 2015 Colin Finck <colin@reactos.org>
|
||
|
*/
|
||
|
|
||
|
#include <apitest.h>
|
||
|
|
||
|
#define WIN32_NO_STATUS
|
||
|
#include <windef.h>
|
||
|
#include <winbase.h>
|
||
|
#include <wingdi.h>
|
||
|
#include <winspool.h>
|
||
|
|
||
|
START_TEST(ClosePrinter)
|
||
|
{
|
||
|
SetLastError(0xDEADBEEF);
|
||
|
ok(!ClosePrinter(NULL), "ClosePrinter returns TRUE!\n");
|
||
|
ok(GetLastError() == ERROR_INVALID_HANDLE, "ClosePrinter returns error %lu!\n", GetLastError());
|
||
|
}
|