26 const DWORD cbReadBuffer = 262144;
41 ERR(
"OpenPrinterW failed for \"%S\" with error %lu!\n", pwszPrinterAndJob,
GetLastError());
#define ERROR_NOT_ENOUGH_MEMORY
static const WCHAR Cleanup[]
BOOL WINAPI DllFreeSplMem(PVOID pMem)
PVOID WINAPI DllAllocSplMem(DWORD dwBytes)
DWORD PrintRawJob(PWINPRINT_HANDLE pHandle, PWSTR pwszPrinterAndJob)
DWORD WINAPI GetLastError(void)
WINBOOL WINAPI ReadPrinter(HANDLE hPrinter, LPVOID pBuf, DWORD cbBuf, LPDWORD pNoBytesRead)
DWORD WINAPI StartDocPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pDocInfo)
WINBOOL WINAPI OpenPrinterW(LPWSTR pPrinterName, LPHANDLE phPrinter, LPPRINTER_DEFAULTSW pDefault)
WINBOOL WINAPI EndDocPrinter(HANDLE hPrinter)
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
WINBOOL WINAPI WritePrinter(HANDLE hPrinter, LPVOID pBuf, DWORD cbBuf, LPDWORD pcWritten)