## Presentation Device Driver Reference for OS/2

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

### GreQueryHardcopyCaps Parameter - pInfo

pInfo (PHCINFO) - input Pointer to buffer for returned form data.

A pointer to the buffer for the returned data. The data is returned as a set of one or more HCINFO structures. When pInfo is not equal to NULL and lStart is greater than or equal to the number of form codes that the hardcopy drivers supports, the hardcopy driver should return 0 without modifying the memory block pointed to by pInfo.

szFormname[32] Character string containing the name of the form
cx Width (left-to-right) in millimeters
cy Height (top-to-bottom) in millimeters
xLeftClip Left clip limit in millimeters
yBottomClip Bottom clip limit in millimeters
xRightClip Right clip limit in millimeters
yTopClip Top clip limit in millimeters
xPels Number of pels between left and right clip limits
yPels Number of pels between bottom and top clip limits
flAttributes Attributes describing the availability of the form:
HCAPS_SELECTABLE The form is installed on the printer as given by the printer properties dialog (see OS2_PM_DRV_DEVMODE). It is available from an alternate form source without operator intervention. If the form does not have this bit set and is used (if the user selects it) in a print job, a " forms mismatch" error is generated by the printer object.
HCAPS_CURRENT The form is the one currently selected by pdriv (the job properties), a field in OS2_DRV_ENABLE (FillPhysicalDeviceBlock) (see FillPhysicalDeviceBlock). The HCAPS_SELECTABLE bit is not necessarily set. This is also the form size returned by GreQueryDeviceCaps capabilities of CAPS_WIDTH and CAPS_HEIGHT.