## Presentation Device Driver Reference for OS/2

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

### GreSetProcessControl - Parameters

hdc (HDC) - input Device context handle.

flMask (ULONG) - input Only those flags with the corresponding bit in this parameter set are modified.

flProcess (ULONG) - input Indicates which process-control flags to set.

Process-control flags:

PCTL_DRAW Has no effect on GreErasePS. If set, drawing primitives should appear on screen. Otherwise, output operations such as GreBitblt, GrePaintRegion, GreSetPel and other drawing primitives are not displayed.

PCTL_BOUND Set to indicate that GPI_BOUNDS must be accumulated.

PCTL_CORRELATE Set to indicate that correlation is to be done.

PCTL_USERBOUNDS When set, indicates that USER_BOUNDS are to be collected for the window manager.

pInstance (PVOID) - input Pointer to instance data.

lFunction (ULONG) - input High-order WORD=flags; low-order WORD= NGreSetProcessControl.

fSuccess (BOOL) - returns Return codes.

On completion, the handling routine must return BOOLEAN (fSuccess).

TRUE Successful
FALSE Error

Possible Errors Detected: When an error is detected, the graphics engine calls WinSetErrorInfo to post the condition. Reasons for failure of this function include:

PMERR_HDC_BUSY
PMERR_INV_HDC

Refer to the "Error Explanations" section of the Presentation Manager Programming Reference for further explanation.