## Presentation Device Driver Reference for OS/2

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

### GreRestorePath

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

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

Description

GreRestorePath is called during RestoreDC and CloseDC to allow the path handling routines to restore their local data structures. When a DC is closed, GreRestorePath is called with a count of 0 to free its local data.

This function can be hooked by the presentation driver.

    #define INCL_GRE_PATHS

    #include <os2.h>

    HDC      hdc;        /*  Device context handle. */

    LONG     cSave;      /*  DC save level. */

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

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

    BOOL     fSuccess;   /*  Return codes. */

    fSuccess = GreRestorePath(hdc, cSave, pInstance,

                 lFunction);