short Escape(hdc, ENDDOC, NULL, NULL, NULL)
The ENDDOC printer escape is maintained for backwards compatibility. Applications written for Windows 3.1 should use the EndDoc function.
This escape ends a print job started by a STARTDOC escape.
hdc
HDC Identifies the device context.
The return value specifies the outcome of the escape. This value is positive if the escape is successful. Otherwise, it is zero or negative.
The ENDDOC escape should not be used inside metafiles.