hdc (HDC) - input
pExtent (PSIZEL) - input
On completion, the SIZEL structure contains the actual dimensions of the page:
lWidth
pInstance (PVOID) - input
lFunction (ULONG) - input
rc (ULONG) - returns
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