#include <stdio.h>
#include <windows.h>
Go to the source code of this file.
◆ Usage()
Definition at line 4 of file main.c.
◆ wmain()
Definition at line 9 of file main.c.
10{
13 DWORD dwRead, dwWritten;
18
20 {
22 return 0;
23 }
24
27 {
30 }
31
34 {
35 printf(
"File is too big, or GetFileSize failed; last error is %lu!\n",
GetLastError());
37 }
38
40 {
43 }
44
45
48
50 {
53 }
54
56 {
59 }
60
62 {
65 {
68 }
70
72 {
75 }
76 }
77
79 {
82 }
83
85 {
88 }
89
91
93 if (hPrinter)
95
98
100}
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)