## Presentation Device Driver Reference for OS/2

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

### GreGetPageUnits - Parameters

hdc (HDC) - input Device context handle.

pExtent (PSIZEL) - input Pointer to a SIZEL structure where the page dimensions are returned.

On completion, the SIZEL structure contains the actual dimensions of the page:

lWidth Page width.
lHeight Page height.

pInstance (PVOID) - input Pointer to instance data.

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

rc (ULONG) - returns Return codes.

This function returns the page units, or GPI_ERROR if an error occurred. The defined page units are described under GreSetPageUnits.

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_HDC_BUSY
PMERR_INV_HDC

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