BOOL WritePrinter(hPrinter, pBuf, cbBuf, pcWritten) | |||
HANDLE hPrinter; | |||
LPVOID pBuf; | |||
DWORD cbBuf; | |||
LPDWORD pcWritten; |
This function informs the Spool Subsystem that the data pointed to by pBuf is to be sent to the Printer.
hPrinter
Indicates the open Printer handle that this function is to be performed upon. This Handle is obtained with the OpenPrinter API.
pBuf
Points to a buffer containing the Data to be written to the Printer.
cbBuf
Specifies the size of the buffer pointed to by pBuf.
pcWritten
This value points to a variable that will be set to amount of data that is written to the Printer.
The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.