EndDoc

3.1

  int EndDoc(hdc)    
  HDC hdc; /* handle of device context */

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

Parameters

hdc

Identifies the device context for the print job.

Return Value

The return value is greater than or equal to zero if the function is successful. Otherwise, it is less than zero.

Comments

An application should call the EndDoc function immediately after finishing a successful print job. To terminate a print job because of an error or if the user chooses to cancel the job, an application should call the AbortDoc function.

Do not use the EndDoc function inside metafiles.

See Also

AbortDoc, Escape, StartDoc