## Presentation Device Driver Reference for OS/2

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

### PrtOpen - Syntax

Description:

PrtOpen opens a device (port), file, named pipe, or UNC name, and returns its spooler handle in the location addressed by phDevice.

    #include <os2.h>

    PSZ        pszDeviceName;

    PHFILE     phDevice;

    PUSHORT    psAction;

    ULONG      cbFile;

    ULONG      ulFat;          /*  The file attribute. */

    ULONG      fnOpen;         /*  The Open function type. */

    ULONG      flMode;         /*  The Open mode of the file. */

    ULONG      lRes;           /*  Reserved.  Must be zero. */

    ULONG      rc;             /*  Return codes. */

    rc = PrtOpen(pszDeviceName, phDevice, psAction,

           cbFile, ulFat, fnOpen, flMode, lRes);