## Presentation Device Driver Reference for OS/2

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

### GreQueryDeviceCaps

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

None. This function is mandatory for all drivers.

Description:

GreQueryDeviceCaps supports DevQueryCaps() at the API. See Presentation Manager Programming Reference, Volume 1 for more information about DevQueryCaps(). The handling routine returns the required information in the device capabilities buffer addressed by paOutData.

This function must be supported by the presentation driver. GreQueryDeviceCaps is called by DevQueryCaps(), and is used to return information regarding the general capabilities of the device.

    #define INCL_GRE_DEVICE

    #include <os2.h>

    HDC      hdc;        /*  Device context handle. */

    LONG     lIndex;     /*  Identifies the first item required. */

    PLONG    paOutData;  /*  Pointer to an array where information is returned. */

    LONG     cOutData;   /*  Number of items of information to be returned at paOutData. */

    PVOID    pInstance;  /*  Pointer to instance data. */

    ULONG    lFunction;  /*  High-order WORD=flags; low-order WORD=NGreQueryDeviceCaps. */

    BOOL     rc;         /*  Return Code. */

    rc = GreQueryDeviceCaps(hdc, lIndex, paOutData,

           cOutData, pInstance, lFunction);