## Presentation Device Driver Reference for OS/2

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

### GreQueryNumberSetIds - Syntax

Description

GreQueryNumberSetIds returns the total number of lcids, such as logical fonts and bit-map IDs, that have been created.

This function is supported by the graphics engine.

    #define INCL_GRE_SETID

    #include <os2.h>

    HDC      hdc;        /*  Device context handle. */

    ULONG    lRange;     /*  Indicates whether GPI, or AVIO lcids, or both are to be returned. */

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

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

    LONG     fSuccess;   /*  Return codes. */

    fSuccess = GreQueryNumberSetIds(hdc, lRange,

                 pInstance, lFunction);