## Presentation Device Driver Reference for OS/2

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

### GreSaveXformData - Syntax

Simulation support:

This function is simulated by a handling routine in the graphics engine.

Description

GreSaveXformData stores the current transform state in pBuffer.

This function can be hooked by the presentation driver.

    #define INCL_GRE_XFORMS

    #include <os2.h>

    HDC      hdc;        /*  Device context handle. */

    ULONG    ulSize;     /*  Size in bytes required for pBuffer. */

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

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

    ULONG    rc;         /*  Return codes. */

    rc = GreSaveXformData(hdc, ulSize, pInstance,

           lFunction);