## Presentation Device Driver Reference for OS/2

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

### SplProtWrite Return Value - rc

rc (ULONG) - returns Return codes.

0 Success

Note: *pcbWritten is updated with the number of bytes sent to the printer. If all bytes were not written, it should be considered an error.

6(ERROR_INVALID_HANDLE) Invalid handle given.

28(ERROR_OUT_OF_PAPER) The printer is out of paper.

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

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

87(ERROR_INVALID_PARAMETER) An invalid buffer given.