## Presentation Device Driver Reference for OS/2

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

### GreSetDeviceSurface

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

GreSetDeviceSurface allows printer devices to dynamically optimize their frame buffer's height, width, bits per pel and DevCaps.

    #include <os2.h>

    HDC               hdc;  /*  The device context handle. */

    PDEVICESURFACE    pDS;  /*  Pointer to information needed by the graphics engine. */

    LONG              rc;   /*  Return codes. */

    rc = GreSetDeviceSurface(hdc, pDS);