## Presentation Device Driver Reference for OS/2

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

### PrtQuery - Syntax

Description:

PrtQuery is called to get information about the print device.

    #define INCL_SPL

    #define INCL_SPLBIDI

    #include <os2.h>

    PSZ       pszComputerName;  /*  Destination computer name or NULL for local query. */

    PSZ       pszDeviceName;    /*  Port name on pszComputerName. */

    ULONG     ulType;           /*  Indicates type of query and options. */

    ULONG     ulCommand;        /*  Generic command code. */

    PVOID     pInData;          /*  May contain information required by PrtQuery. */

    ULONG     cbInData;         /*  Length of information in pInData, in bytes. */

    PVOID     pOutData;         /*  Return buffer. */

    PULONG    pcbOutData;       /*  Points to the length of the output buffer. */

    ULONG     rc;               /*  Return codes. */

    rc = PrtQuery(pszComputerName, pszDeviceName,

           ulType, ulCommand, pInData, cbInData,

           pOutData, pcbOutData);