## Presentation Device Driver Reference for OS/2

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

### GreQueryHardcopyCaps

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

This function is mandatory for hardcopy drivers, but may simply return a DEVESC_NOTIMPLEMENTED code. For other drivers, it is simulated by a handling routine in the graphics engine.

Description:

GreQueryHardcopyCaps stores information about the hardcopy capabilities of the device in the buffer addressed by pInfo. The information is stored as a sequence of one or more HCINFO structures defining the hardcopy capabilities for one or more form codes.

This function must be supported by hardcopy drivers. It is not required for display drivers. GreQueryHardcopyCaps is called by the function DevQueryHardcopyCaps.

    #define INCL_GRE_DEVICE

    #include <os2.h>

    HDC        hdc;        /*  Device context handle. */

    LONG       lStart;     /*  Index. */

    LONG       cCount;     /*  Number of forms. */

    PHCINFO    pInfo;      /*  Pointer to buffer for returned form data. */

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

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

    LONG       rc;         /*  Return Code. */

    rc = GreQueryHardcopyCaps(hdc, lStart, cCount,

           pInfo, pInstance, lFunction);