#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winspool.h>
Go to the source code of this file.
◆ MAX_PRINTER_NAME
◆ WIN32_NO_STATUS
◆ START_TEST()
Definition at line 19 of file GetPrinter.c.
20{
23 DWORD cchDefaultPrinter;
28
29
30 cchDefaultPrinter =
_countof(wszDefaultPrinter);
31 ok(
GetDefaultPrinterW(wszDefaultPrinter, &cchDefaultPrinter),
"GetDefaultPrinterW returns FALSE and requires %lu characters!\n", cchDefaultPrinter);
33 {
34 skip(
"Could not retrieve a handle to the default printer!\n");
35 return;
36 }
37
38
40 {
41
45
46
50
51
55
56
60 ok(cbNeeded == cbTemp,
"cbNeeded is %lu, reference size is %lu for Level %lu!\n", cbNeeded, cbTemp,
Level);
62 }
63
65}
#define ERROR_INSUFFICIENT_BUFFER
#define HeapFree(x, y, z)
#define ERROR_INVALID_HANDLE
DWORD WINAPI GetLastError(void)
#define RPC_X_NULL_REF_POINTER
WINBOOL WINAPI GetDefaultPrinterW(LPWSTR pszBuffer, LPDWORD pcchBuffer)
WINBOOL WINAPI GetPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD pcbNeeded)
WINBOOL WINAPI OpenPrinterW(LPWSTR pPrinterName, LPHANDLE phPrinter, LPPRINTER_DEFAULTSW pDefault)
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level