Jump to content

PrtResetAbort

From EDM2
Revision as of 20:36, 30 May 2021 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

PrtResetAbort resets an aborted print job to allow a print driver to send multiple reset sequences to the printer. After PrtResetAbort is called successfully, the print driver can issue PrtWrite for this device handle.

Syntax

PrtResetAbort(hDevice)

Parameters

hDevice (HFILE) - input
The device handle returned by PrtOpen.

Return Code

rc (ULONG) - returns
Return codes.
  • 0 : Success
  • 6 (ERROR_INVALID_HANDLE) : Invalid handle given.
  • 127 (ERROR_PROC_NOT_FOUND) : Port driver does not export the SplPdResetAbort API.

Remarks

This function was added to OS/2 Warp, Version 3, to allow print drivers to abort jobs more quickly. The print drivers do this by checking for PrtResetAbort during the print driver's abort processing. If the API exists, the print driver calls PrtAbort to cancel all output being sent to the printer. After all output is aborted, the print driver calls PrtResetAbort, which allows the print driver to call PrtWrite to send the reset sequence to the printer.

PrtClose must still be issued to close the device connection.