Description:

PrtAbortDoc resets the printer after current print data is flushed. If FLG_COMPLETE_DATA is set, all prior data for this job is sent to the printer. If this flag is clear, PrtAbortDoc first flushes all current write requests for this job and then sends the buffer of data to reset the printer.

#define INCL_SPL
#define INCL_SPLDOSPRINT
#include <os2.h>

HFILE    hDevice;  /*  The device handle returned by PrtOpen. */
PVOID    pchData;  /*  Pointer to the data buffer to write after flushing all current write data. */
ULONG    cbData;   /*  Length of data, in bytes, in pchData buffer. */
ULONG    ulFlags;  /*  Abort processing flags. */
ULONG    rc;       /*  Return codes. */

rc = PrtAbortDoc(hDevice, pchData, cbData,
       ulFlags);


[Back: PrtAbortDoc]
[Next: PrtAbortDoc Parameter - hDevice]