hDevice (HFILE) - input
pchData (PVOID) - input
cbData (ULONG) - input
pcbWritten (ULONG) - input
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
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.