BOOL WritePrinter( HANDLE hPrinter, /* handle of printer object */ LPVOID pBuf, /* address of array containing printer dataa */ DWORD cbBuf, /* size, in bytes, of array */ LPDWORD lpdwWritten /* addr. of variable with written byte count */ );
Informs the print spooler that the specified data should be written to the specified printer.
hPrinter | Identifies the printer. |
pBuf | Points to an array of bytes that contains the data that should be written to the printer. |
cbBuf | Specifies the size, in bytes, of the array. |
lpdwWritten | Points to a value that specifies the number of bytes of data that were written to the printer. |