PrinterSend

Sends a block of data to a printer.

Syntax

BOOL WINAPI PrinterSend( HANDLE hPrint, LPCVOID lpBuffer,
DWORD dwBytes );

Parameters

hPrint
Handle to the port opened by the PrinterOpen function.
lpBuffer
Pointer to the data buffer containing the rendered band prepared by the printer driver.
dwBytes
Specifies the number of bytes in the buffer.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This function writes dwBytes of data stored at the location pointed to by the parameter lpBuffer to a printer previously opened through a call to the PrinterOpen function.