10#define WIN32_NO_STATUS
17#define MAX_PRINTER_NAME 220
23 DWORD cchDefaultPrinter;
30 cchDefaultPrinter =
_countof(wszDefaultPrinter);
31 ok(
GetDefaultPrinterW(wszDefaultPrinter, &cchDefaultPrinter),
"GetDefaultPrinterW returns FALSE and requires %lu characters!\n", cchDefaultPrinter);
34 skip(
"Could not retrieve a handle to the default printer!\n");
60 ok(cbNeeded == cbTemp,
"cbNeeded is %lu, reference size is %lu for Level %lu!\n", cbNeeded, cbTemp,
Level);
#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