## Presentation Device Driver Reference for OS/2

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

### GreGetPickWindow - Parameters

hdc (HDC) - input The device context handle.

pPick (PRECTL) - input A pointer to a pick window.

The pick window is defined as a RECTL structure in page coordinate space:

xLeft Minimum x-coordinate of window
yBottom Minimum y-coordinate
xRight Maximum x-coordinate of window
yTop Maximum y-coordinate

pInstance (PVOID) - input A pointer to instance data.

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

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 handling routine must call WinSetErrorInfo to post the condition. Error codes for conditions that the handling routine is expected to check include:

PMERR_DEV_FUNC_NOT_INSTALLED
PMERR_INV_HDC