hdc (HDC) - input
lCode (LONG) - input
If the device context is of type OD_QUEUED with a PM_Q_STD spool file, some escapes are sent to the presentation driver and others are recorded in the spool file (depending on the escape code). If the device context is of type OD_METAFILE, all escapes are metafiled. If the device context is of any type other than OD_QUEUED (with a PM_Q_STD spool file) or OD_METAFILE, all escapes are sent to the presentation driver.
The description for each standard escape specifies which of these categories the escape falls into.
Devices can define additional escape functions using user lCode values, that have the following ranges:
32 768 through 40 959
DEVESC_QUERYESCSUPPORT
lInCount (LONG) - input
Number of bytes of data in the pbInData buffer.
pbInData (PBYTE) - input
plOutCount (PLONG) - in/out
plOutCount is the number of bytes of data in the pbOutData buffer.
If data is returned in pbOutData, plOutCount is updated to the number of bytes of data returned.
pbOutData (PBYTE) - output
pbOutData is a buffer that receives the output from this escape. If plOutCount is null, no data is returned.
lResult (LONG) - returns
DEVESC_ERROR