13 DWORD dwRead, dwWritten;
35 printf(
"File is too big, or GetFileSize failed; last error is %lu!\n",
GetLastError());
UINT32 void void ** ReturnValue
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
static const WCHAR Cleanup[]
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
DWORD WINAPI GetLastError(void)
#define INVALID_FILE_SIZE
WINBOOL WINAPI EndPagePrinter(HANDLE hPrinter)
DWORD WINAPI StartDocPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pDocInfo)
WINBOOL WINAPI StartPagePrinter(HANDLE hPrinter)
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)