## Presentation Device Driver Reference for OS/2

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

### GreEscape DEVESC_NEWFRAME_WPROP

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Simulation support:

This function is mandatory for hardcopy drivers and must be implemented in order to have a valid OS/2 hardcopy driver.

Description:

Based on the new job properties that are passed in, GreEscape DEVESC_ NEWFRAME_WPROP, will reset the device context information and presentation space information. This action should be equivalent to the result of a new DevOpenDC with the new job properties. Refer to Dynamic Job Properties for related information.

    #define INCL_DEV

    #define INCL_DEVDJP

    #include <os2.h>

    HDC      hdc;         /*  Device context handle. */

    LONG     lEscape;     /*  DEVESC_NEWFRAME_WPROP escape code. */

    LONG     cInCount;    /*  Not used-should be 0. */

    PBYTE    pInData;     /*  Not used-should be NULL. */

    PLONG    pcOutCount;  /*  A pointer to the number of bytes pointed to by pOutData. */

    PLONG    pOutData;    /*  Pointer to the printer driver's job properties */

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

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

    LONG     rc;          /*  Return Code. */

    rc = GreEscape(hdc, lEscape, cInCount, pInData,

           pcOutCount, pOutData, pInstance, lFunction);