#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winspool.h>
Go to the source code of this file.
◆ WIN32_NO_STATUS
◆ START_TEST() [1/2]
Definition at line 16 of file GetDefaultPrinter.c.
17{
18 DWORD cchDefaultPrinter;
19 PSTR pszDefaultPrinter;
20
21
25
26
27 cchDefaultPrinter = 0;
31
32
35 ok(
GetDefaultPrinterA(pszDefaultPrinter, &cchDefaultPrinter),
"GetDefaultPrinterA returns FALSE!\n");
36
37
40
41
44
45
49
51}
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
DWORD WINAPI GetLastError(void)
#define ERROR_INVALID_PRINTER_NAME
WINBOOL WINAPI SetDefaultPrinterA(LPCSTR pszPrinter)
WINBOOL WINAPI GetDefaultPrinterA(LPSTR pszBuffer, LPDWORD pcchBuffer)
◆ START_TEST() [2/2]
Definition at line 53 of file GetDefaultPrinter.c.
54{
55 DWORD cchDefaultPrinter;
56 PWSTR pwszDefaultPrinter;
57
58
62
63
64 cchDefaultPrinter = 0;
68
69
72 ok(
GetDefaultPrinterW(pwszDefaultPrinter, &cchDefaultPrinter),
"GetDefaultPrinterW returns FALSE!\n");
73
74
77
78
81
82
86
88}
WINBOOL WINAPI GetDefaultPrinterW(LPWSTR pszBuffer, LPDWORD pcchBuffer)
WINBOOL WINAPI SetDefaultPrinterW(LPCWSTR pszPrinter)