## Presentation Device Driver Reference for OS/2

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

### GreEndPath - Syntax

Simulation support:

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

Description

GreEndPath identifies the end of a sequence of figures that define a path. This function is valid outside a path definition but has no effect. When this function occurs outside a path, the handling routine should ignore it.

This function can be hooked by the presentation driver.

    #define INCL_GRE_PATHS

    #include <os2.h>

    HDC      hdc;        /*  Device context handle. */

    ULONG    flCancel;

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

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

    BOOL     fSuccess;   /*  Return codes. */

    fSuccess = GreEndPath(hdc, flCancel, pInstance,

                 lFunction);