Jump to content

SplPdResetAbort

From EDM2
Revision as of 02:20, 12 December 2019 by Martini (talk | contribs) (Created page with "SplPdResetAbort is an API exported by port drivers. It is called by PrtResetAbort to reset an aborted device handle to again allow writes. After the reset is successful, the p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SplPdResetAbort is an API exported by port drivers. It is called by PrtResetAbort to reset an aborted device handle to again allow writes. After the reset is successful, the printer driver is allowed to call PrtWrite for the device handle to send the reset sequence to the printer.

Note
Resetting an aborted device handle does not initiate a new printer job. It only allows writes to be sent to the printer.

SplPdResetAbort is an optional API; it does not have to be exported by the port driver.

Syntax

SplPdResetAbort(hDevice);

Parameters

hDevice (HFILE) - input
Handle from SplPdOpen.

Returns

rc (ULONG) - returns
Return codes.
  • 0 Success
  • 6(ERROR_INVALID_HANDLE)
Invalid handle given.


Sample

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

HFILE    hDevice;  /*  Handle from SplPdOpen. */
ULONG    rc;       /*  Return codes. */

rc = SplPdResetAbort(hDevice);

Remarks

SplPdClose must still be issued to close the device connection.