EndPagePrinter

  BOOL EndPagePrinter(hPrinter)    
  HANDLE hPrinter;    

This function informs the Printer that the data sent with the WritePrinter function since the last BeginPage function constitutes a Page.

Parameters

hPrinter

Indicates the open Printer handle that this function is to be performed upon. This Handle is obtained with the OpenPrinter API. This function will fail if a StartPagePrinter has not already been issued on this Printer.

Return Value

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.