## Presentation Device Driver Reference for OS/2

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

### PrtWrite

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

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