## Presentation Device Driver Reference for OS/2

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

### GreDeviceSetAttributes

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

None. This function is mandatory for all drivers.

Description:

GreDeviceSetAttributes sets attributes in the attribute bundle.

This function must be supported by the presentation driver.

    #define INCL_GRE_DEVMISC1

    #include <os2.h>

    HDC        hdc;          /*  Device context handle. */

    LONG       lBType;       /*  Bundle type. */

    ULONG      flDefsMask;

    ULONG      flAttrsMask;  /*  Mask indicating the attributes to be modified. */

    PBUNDLE    pAttrs;       /*  Pointer to a bundle structure. */

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

    ULONG      lFunction;

    BOOL       rc;           /*  Return Codes. */

    rc = GreDeviceSetAttributes(hdc, lBType, flDefsMask,

           flAttrsMask, pAttrs, pInstance, lFunction);