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);


[Back: PrtOpen]
[Next: PrtOpen Parameter - pszDeviceName]