## Presentation Device Driver Reference for OS/2

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

### GreEscape DEVESC_DBE_FONTMANAGEMENT - Parameters

hdc (HDC) - input Device context handle.

lEscape (LONG) - input DEVESC_DBE_FONTMANAGEMENT (24450) escape code.

cInCount (LONG) - input The number of bytes pointed to by pInData.

pInData (PBYTE) - input Pointer to the FONTMGRPARM structure.

pcOutCount (PLONG) - input The handling routine ignores this parameter.

pOutData (PLONG) - input When fdi.fdi_lFunctionID in pInData is QUERY_VIO_ FONTATTRIBUTE, pOutData points to the FATTRS structure. FATTRS correspondS to the specified cell size, which is one of size returned by the GreEscape DEVESC_QUERYVIOCELLSIZES escape function.

The handling routine must fill lMatch number in the FATTRS structure. Be sure that the lMaxBaselineExt and lAveCharWidth field are returned in device coordinates. For other fdi.fdi_lFunctionID, the handling routine ignores this parameter.

pInstance (PVOID) - input Pointer to instance data.

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

rc (LONG) - returns Return Code.

The handling routine returns:

DEV_OK Successful
DEVESC_NOTIMPLEMENTED Escape not implemented for specified code
DEVESC_ERROR 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_LENGTH_OR_COUNT

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