short Escape(hdc, FLUSHOUTPUT, NULL, NULL, NULL)
The FLUSHOUTPUT printer escape clears all output from the device's buffer.
hdc
HDC Identifies the device context.
The return value specifies the outcome of the escape. This value is greater than zero if the escape is successful. Otherwise, it is less than zero.