Share via


PrinterSend (Compact 2013)

3/26/2014

Sends a block of data to a printer.

Syntax

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

Parameters

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

Return Value

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.

Requirements

Header

prnport.h

See Also

Reference

Printer Driver Functions
PrinterOpen