## Presentation Device Driver Reference for OS/2

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

### PrtOpen - Parameters

pszDeviceName (PSZ) - input A pointer to a string identifying the device.

phDevice (PHFILE) - input A pointer to a location for the returned spooler file handle for the device.

psAction (PUSHORT) - input A pointer to location for the returned value that identifies the action taken by the system.

cbFile (ULONG) - input The initial size in bytes, of the output file.

ulFat (ULONG) - input The file attribute.

fnOpen (ULONG) - input The Open function type.

flMode (ULONG) - input The Open mode of the file.

lRes (ULONG) - input Reserved. Must be zero.

rc (ULONG) - returns Return codes.

This function returns the same codes as DosOpen:

ERROR_ACCESS_DENIED
ERROR_CANNOT_MAKE
ERROR_DEVICE_IN_USE
ERROR_DISK_FULL
ERROR_DRIVE_LOCKED
ERROR_FILE_NOT_FOUND
ERROR_FILENAME_EXCED_RANGE
ERROR_INVALID_ACCESS
ERROR_INVALID_PARAMETER
ERROR_NOT_DOS_DISK
ERROR_OPEN_FAILED
ERROR_PATH_NOT_FOUND
ERROR_PIPE_BUSY
ERROR_SHARING_BUFFER_EXCEEDED
ERROR_SHARING_VIOLATION
ERROR_TOO_MANY_OPEN_FILES
NO_ERROR