Description:
PrtWrite writes data to the device file identified by hDevice.
#include <os2.h> HFILE hDevice; /* The device handle returned by PrtOpen. */ PVOID pvoidData; /* A pointer to the data buffer. */ ULONG cData; /* The length of the data in bytes. */ PULONG cWritten; /* A pointer to a count of bytes actually written to the device. */ ULONG rc; /* Return codes. */ rc = PrtWrite(hDevice, pvoidData, cData, cWritten);