## Presentation Device Driver Reference for OS/2

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

### GreEscape DEVESC_QUERYFB - Syntax

Simulation support:

None.

Description

GreEscape DEVESC_QUERYFB is called by EnDIVE users to get information describing the characteristics of the frame buffer.

    #define INCL_GRE_DEVICE

    #include <os2.h>

    HDC      hdc;         /*  Device context handle. */

    LONG     ICODE;       /*  DEVESC_QUERYFB escape code. */

    LONG     lInCount;    /*  Zero (0). */

    PBYTE    pbInData;    /*  NULL. */

    PLONG    plOutCount;  /*  Number of bytes pointed to by pbOutData. */

    PLONG    pbOutData;   /*  Pointer to FBINFO data structure. */

    LONG     rc;          /*  Return Codes. */

    rc = GreEscape(hdc, ICODE, lInCount, pbInData,

           plOutCount, pbOutData);