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.
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.