short Escape(hdc, QUERYESCSUPPORT, sizeof(int),lpEscNum, NULL)
The QUERYESCSUPPORT printer escape determines whether a particular escape is implemented by the device driver.
hdc
HDC Identifies the device context.
lpEscNum
LPINT Points to a short integer that specifies the escape function to be checked.
The return value specifies whether a particular escape is implemented. This value is nonzero for implemented escape functions. Otherwise, it is zero.
If the lpEscNum parameter is set to DRAWPATTERNRECT, the return value is one of the following values:
Value | Meaning |
0 | DRAWPATTERNRECT is not implemented. |
1 | DRAWPATTERNRECT is implemented for a printer other than the HP LaserJet IIP; this printer supports white rules. |
2 | DRAWPATTERNRECT is implemented for the HP LaserJet IIP. |