EndDoc

  int EndDoc(hDC)    
  HDC hDC; /* device-context handle */

The EndDoc function ends a print job. This function replaces the ENDDOC printer escape for Windows version 3.1 and later.

Parameters

hDC

Identifies the device context for the print job.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.

Comments

Applications should call the EndDoc function immediately after finishing a print job.

See Also

Escape, StartDoc