## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### PrtAbortDoc - Parameters

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

pchData (PVOID) - input Pointer to the data buffer to write after flushing all current write data.

cbData (ULONG) - input Length of data, in bytes, in pchData buffer.

ulFlags (ULONG) - input Abort processing flags.

Value is as follows:

FLG_COMPLETE_DATA - 0x00000001 If this flag is set, all prior data for this job must be sent to the printer. If this flag is clear, any buffers waiting to be sent to the printer can be flushed.

rc (ULONG) - returns Return codes.

0 Success

6(ERROR_INVALID_HANDLE) Invalid handle given.

29(ERROR_WRITE_FAULT) Failure attempting to write reset sequence to the device.

32(ERROR_SHARING_VIOLATION) Another thread has access to this port using this Prt handle. This can occur if another thread is in the middle of a PrtClose using this Prt handle.