## Presentation Device Driver Reference for OS/2

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

### SplPdWrite - Parameters

hDevice (HFILE) - input Handle from SplPdOpen.

pchData (PVOID) - input Pointer to data buffer to write.

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

pcbWritten (ULONG) - input Pointer to count of bytes actually written to the device.

This value can be updated even when an unsuccessful return code is given, if some of the data was sent to the printer.

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. Specific error alerts should be sent to the spooler to better define the problem.

87(ERROR_INVALID_PARAMETER) Invalid buffer given.