This function queries the hard-copy capabilities of a device.
#define INCL_DEV /* Or use INCL_PM, */ #include <os2.h> HDC hdc; /* Device-context handle. */ LONG lStartForm; /* Start-forms code. */ LONG lForms; /* Number of forms to query. */ PHCINFO phciHcInfo; /* Hard-copy capabilities information. */ LONG lFormsReturned; /* Details of forms: */ lFormsReturned = DevQueryHardcopyCaps(hdc, lStartForm, lForms, phciHcInfo);