Share via


PrinterSend

Sends a block of data to a printer.

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 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.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Prnport.h.

See Also

PrinterOpen | Printer Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.