StartPagePrinter

  BOOL StartPagePrinter(hPrinter)    
  HANDLE hPrinter;    

This function informs the spool subsystem that a page is about to be started on this printer. To indicate the end of a page, the EndPagePrinter function can be called.

Parameters

hPrinter

Indicates the open printer handle that this function is to be performed upon. This handle is obtained with the OpenPrinter function.

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.