Partager via


PrinterSend (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Printer Driver Functions
PrinterOpen