Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreDestroyRegion deletes the specified region unless it has been selected as a clipping region. In this case, an error is raised. When a null region is specified, GreDestroyRegion does not delete any region and returns without logging an error.
This function can be hooked by the presentation driver.
#define INCL_GRE_REGIONS
#include <os2.h>
HDC hdc; /* Device context handle. */
HRGN hrgn; /* Region handle. */
PVOID pInstance; /* Pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreDestroyRegion. */
BOOL fSuccess; /* Reurn codes. */
fSuccess = GreDestroyRegion(hdc, hrgn, pInstance,
lFunction);