EndPage function (wingdi.h)
The EndPage function notifies the device that the application has finished writing to a page. This function is typically used to direct the device driver to advance to a new page.
int EndPage( [in] HDC hdc );
A handle to the device context for the print job.
If the function succeeds, the return value is greater than zero.
If the function fails, the return value is less than or equal to zero.
When a page in a spooled file exceeds approximately 350 MB, it may fail to print and not send an error message. For example, this can occur when printing large EMF files. The page size limit depends on many factors including the amount of virtual memory available, the amount of memory allocated by calling processes, and the amount of fragmentation in the process heap.
For a sample program that uses this function, see How To: Print Using the GDI Print API.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|