
p c l W r i t e
Description
Writes MPCL packets to the Print subsystem.
You can send no more than one packet at a
time. It must be complete.
A batch packet starts a print job, which makes an asynchronous call to the Print subsystem. After submitting a print job, the application should call pclStatus in a loop, waiting until the printer becomes free. See “Pausing While Printing” in Chapter 6 for more information.
Syntax
short far pclWrite(char far* lpchBuffer, unsigned short usCount);
Parameters
lpchBuffer A pointer to the data to write.
usCount The number of bytes to write. The maximum size is 64K.
Return Values
0Successful.
Example
See “pclGetOnDemandSensor” for an example.