## Presentation Device Driver Reference for OS/2

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

### PrtWrite - Parameters

hDevice (HFILE) - input The device handle returned by PrtOpen.

pvoidData (PVOID) - input A pointer to the data buffer.

cData (ULONG) - input The length of the data in bytes.

cWritten (PULONG) - input A pointer to a count of bytes actually written to the device.

rc (ULONG) - returns Return codes.

This function returns the same codes as DosWrite:

ERROR_ACCESS_DENIED
ERROR_BAD_UNIT
ERROR_BROKEN_PIPE
ERROR_INVALID_HANDLE
ERROR_LOCK_VIOLATION
ERROR_NOT_DOS_DISK
ERROR_OUT_OF_PAPER
ERROR_WRITEFAULT
NO_ERROR