Go to the source code of this file.
|
|
- Parameters
-
pHandle | Pointer to a WINPRINT_HANDLE structure containing information about this job. |
pwszPrinterAndJob | String in the format "Printer, Job N" that is passed to OpenPrinterW to read from the spooled print job. |
- Returns
- An error code indicating success or failure.
|
DWORD | PrintRawJob (PWINPRINT_HANDLE pHandle, PWSTR pwszPrinterAndJob) |
|
◆ PrintRawJob()
Definition at line 23 of file raw.c.
24{
25
26 const DWORD cbReadBuffer = 262144;
27
36
37
39 {
41 ERR(
"OpenPrinterW failed for \"%S\" with error %lu!\n", pwszPrinterAndJob,
GetLastError());
43 }
44
45
47 {
51 }
52
53
57
58
60 {
64 }
65
67
68
71 {
75 }
76
77
79 {
80
82 }
83
85
89
90 if (bStartedDoc)
92
93 if (hPrintMonitor)
95
96 if (hPrintJob)
98
99 return dwErrorCode;
100}
#define ERROR_NOT_ENOUGH_MEMORY
static const WCHAR Cleanup[]
BOOL WINAPI DllFreeSplMem(PVOID pMem)
PVOID WINAPI DllAllocSplMem(DWORD dwBytes)
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)
Referenced by PrintDocumentOnPrintProcessor().